Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
68 commits
Select commit Hold shift + click to select a range
3e996d3
[ADD] product_analytic
alexis-via Nov 30, 2015
08473e3
[IMP] product_analytic: Several things:
Jan 5, 2016
645bdfa
Spanish translation
antespi Jan 26, 2016
a85b556
Fix travis error (#74)
andhit-r Dec 3, 2016
af378f8
OCA Transbot updated translations from Transifex
oca-transbot Aug 5, 2016
3b05765
[MIG] product_analytic: Migrated to 10.0
luismontalba Jun 13, 2017
ec6030e
OCA Transbot updated translations from Transifex
oca-transbot Jun 23, 2017
1a3155a
product_analytic: add method _get_product_analytic_accounts() similar…
alexis-via Jul 17, 2017
3d9ae0e
OCA Transbot updated translations from Transifex
oca-transbot Feb 23, 2018
e5cdddf
[MIG] product_analytic: Migration to 11.0
chienandalu May 18, 2018
d47d09c
OCA Transbot updated translations from Transifex
oca-transbot Jun 1, 2018
2d6022d
[UPD] Update product_analytic.pot
oca-travis Jun 23, 2018
800f8d4
Translated using Weblate (Arabic)
yaseentai Sep 22, 2018
3163b99
Translated using Weblate (Catalan)
Oct 12, 2018
132d699
[ADD] icon.png
OCA-git-bot Apr 3, 2019
fa057a8
[12.0][MIG] product_analytic
tbaden May 26, 2019
d7b62b5
[UPD] Update product_analytic.pot
oca-travis May 29, 2019
59f6b84
Update translation files
oca-transbot Jun 16, 2019
e2e83ec
[UPD] README.rst
OCA-git-bot Jul 29, 2019
6d060a4
Translated using Weblate (Portuguese (Brazil))
marcelsavegnago Aug 2, 2019
147329e
Translated using Weblate (Finnish)
jarmokortetjarvi Dec 31, 2019
def4536
[IMP] product_analytic: black, isort
ps-tubtim Jan 8, 2020
7092391
[MIG] product_analytic: Migration to 13.0
ps-tubtim Jan 8, 2020
ca9f58f
[UPD] Update product_analytic.pot
oca-travis Feb 20, 2020
54f22d5
pre-commit update
OCA-git-bot Mar 14, 2020
f4927dc
Update translation files
oca-transbot Mar 14, 2020
04d471a
Translated using Weblate (Portuguese (Brazil))
Aug 12, 2020
8512187
Translated using Weblate (Catalan)
eduardgm Mar 26, 2021
2f24e7a
Translated using Weblate (Spanish)
eduardgm Mar 26, 2021
20e4100
[14.0][MIG] product_analytic: Migration to 14.0
Reyes4711-S73 May 13, 2021
32abc8e
[14.0][IMP] product_analytic: Use onchange multi implementation
rousseldenis Oct 21, 2021
e6f859d
[14.0][IMP] product_analytic: Separate models files
rousseldenis Oct 21, 2021
efa4e3c
[14.0][IMP] product_analytic: Update CONTRIBUTORS
rousseldenis Oct 21, 2021
d014181
[14.0][IMP] product_analytic: Improve tests
rousseldenis Oct 21, 2021
8a14cfa
[UPD] Update product_analytic.pot
oca-travis Oct 24, 2021
a85a12f
[UPD] README.rst
OCA-git-bot Oct 24, 2021
f5bdd8c
[MIG] product_analytic: Migration to 15.0
Dariosi Jan 28, 2022
4f878cd
[UPD] Update product_analytic.pot
Mar 18, 2022
a1f68ee
[UPD] README.rst
OCA-git-bot Mar 18, 2022
7529d02
Translated using Weblate (Italian)
mymage Dec 28, 2022
3ec746f
Translated using Weblate (Italian)
mymage Jun 20, 2023
a7a31b4
Translated using Weblate (Italian)
francesco-ooops Jul 17, 2023
4c5b7d6
[MIG] product_analytic: Migration to 16.0
CLaurelB Sep 25, 2023
89905ef
[UPD] Update product_analytic.pot
Oct 9, 2023
0dae716
[BOT] post-merge updates
OCA-git-bot Oct 9, 2023
33812a6
Update translation files
weblate Oct 10, 2023
f4070e8
Translated using Weblate (Spanish)
Ivorra78 Oct 10, 2023
e5731fe
Translated using Weblate (Portuguese (Brazil))
adrianojprado Oct 13, 2023
02c3e2a
Translated using Weblate (French)
remi-filament Feb 1, 2024
7c9c898
Translated using Weblate (Italian)
mymage Feb 22, 2024
6c12cd6
Translated using Weblate (Swedish)
jakobkrabbe Feb 27, 2024
15e5ba4
[FIX] product_analytic: compatibility with pos_analytic_by_config
chienandalu Feb 28, 2024
7ee6c3a
Translated using Weblate (Croatian)
badbole Jun 17, 2024
2325f35
Translated using Weblate (Catalan)
jaumeplanas Sep 11, 2024
911ac13
product_analytic: use _get_distribution
jbaudoux Apr 15, 2025
4647732
[UPD] Update product_analytic.pot
May 19, 2025
34836ea
[BOT] post-merge updates
OCA-git-bot May 19, 2025
6f71df1
Update translation files
weblate May 19, 2025
180ee84
Translated using Weblate (Italian)
mymage May 20, 2025
ae8fdd9
[FIX] product_analytic: Use record and not recordset in compute method
rousseldenis May 22, 2025
e083b02
[FIX] product_analytic: Don't depends on context on stored fields
rousseldenis May 22, 2025
107ee44
[BOT] post-merge updates
OCA-git-bot May 24, 2025
af63a4b
[IMP] product_analytic: black, isort, prettier
angelgarciadelachica Jun 3, 2025
de066c5
[MIG]product_analytic: Migration to 17.0
angelgarciadelachica Jun 3, 2025
ec4c6a5
[UPD] Update product_analytic.pot
Jun 18, 2025
3ffb21e
[BOT] post-merge updates
OCA-git-bot Jun 18, 2025
aa91c50
[MIG] product_analytic: Migration to 18.0
Saran440 Oct 2, 2025
b258520
[REF] product_analytic: add analytic_distribution_models to products …
ThiagoMForgeFlow Nov 11, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
152 changes: 152 additions & 0 deletions product_analytic/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,152 @@
================
Product Analytic
================

..
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:24840186e5210a569c3582e9559fce3ce779f66cfb0c85fe243f9d03f7396677
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
:target: https://odoo-community.org/page/development-status
:alt: Beta
.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Faccount--analytic-lightgray.png?logo=github
:target: https://github.com/OCA/account-analytic/tree/18.0/product_analytic
:alt: OCA/account-analytic
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/account-analytic-18-0/account-analytic-18-0-product_analytic
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
:target: https://runboat.odoo-community.org/builds?repo=OCA/account-analytic&target_branch=18.0
:alt: Try me on Runboat

|badge1| |badge2| |badge3| |badge4| |badge5|

This module allows to define analytic distribution models at product or
category level for using it when creating invoices.

**Table of contents**

.. contents::
:local:

Usage
=====

This module allows you to configure analytic distribution models on
products and on product categories. When you select the product in an
invoice line, it will check if this product has analytic distribution
models configured; if it doesn't find any, it checks if the category of
the product has; if some analytic distribution model is found, it will
be set by default on the invoice line.

Changelog
=========

15.0.1.0.0 (2022-01-28)
-----------------------

Migrated to odoo 15.

14.0.1.0.0 (2021-10-24)
-----------------------

Migrated to odoo 14.

13.0.1.0.0 (2020-01-08)
-----------------------

Migrated to odoo 13.

12.0.1.0.0 (2019-05-26)
-----------------------

Migrated to odoo 12.

11.0.1.0.0 (2018-05-18)
-----------------------

Migrated to odoo 11.

10.0.1.0.1 (2017-07-18)
-----------------------

[ADD] Demo data and feature to set analytic account for products.

10.0.1.0.0 (2017-06-13)
-----------------------

Migrated to odoo 10.

8.0.1.0.2 (2016-12-03)
----------------------

[FIX] Travis errors.

8.0.1.0.1 (2016-01-05)
----------------------

[IMP] Analytic account creating invoice lines.

8.0.1.0.0 (2015-11-30)
----------------------

First version.

Bug Tracker
===========

Bugs are tracked on `GitHub Issues <https://github.com/OCA/account-analytic/issues>`_.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us to smash it by providing a detailed and welcomed
`feedback <https://github.com/OCA/account-analytic/issues/new?body=module:%20product_analytic%0Aversion:%2018.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.

Do not contact contributors directly about support or help with technical issues.

Credits
=======

Authors
-------

* Akretion
* Tecnativa

Contributors
------------

- Alexis de Lattre <alexis.delattre@akretion.com>
- Javier Iniesta <javieria@antiun.com>
- Luis M. Ontalba <luis.martinez@tecnativa.com>
- David Vidal <david.vidal@tecnativa.com>
- Thore Baden
- Pimolnat Suntian <pimolnats@ecosoft.co.th>
- Reyes4711
- Denis Roussel <denis.roussel@acsone.eu>
- Darius Žižys <darius@vialaurea.lt>
- Jacques-Etienne Baudoux (BCIM) <je@bcim.be>
- Saran Lim. <saranl@ecosoft.co.th>
- Thiago Mulero <thiago.mulero@forgeflow.com>

Maintainers
-----------

This module is maintained by the OCA.

.. image:: https://odoo-community.org/logo.png
:alt: Odoo Community Association
:target: https://odoo-community.org

OCA, or the Odoo Community Association, is a nonprofit organization whose
mission is to support the collaborative development of Odoo features and
promote its widespread use.

This module is part of the `OCA/account-analytic <https://github.com/OCA/account-analytic/tree/18.0/product_analytic>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
3 changes: 3 additions & 0 deletions product_analytic/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).

from . import models
18 changes: 18 additions & 0 deletions product_analytic/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Copyright 2015 Akretion (http://www.akretion.com/) - Alexis de Lattre
# Copyright 2016 Antiun Ingeniería S.L. - Javier Iniesta
# Copyright 2017 Tecnativa - Luis Martínez
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).

{
"name": "Product Analytic",
"version": "18.0.1.0.0",
"category": "Accounting & Finance",
"license": "AGPL-3",
"summary": "Add analytic distribution models on products and product categories",
"author": "Akretion, Tecnativa, Odoo Community Association (OCA)",
"website": "https://github.com/OCA/account-analytic",
"depends": ["account"],
"data": ["views/product_view.xml"],
"demo": ["demo/product_demo.xml"],
"installable": True,
}
47 changes: 47 additions & 0 deletions product_analytic/demo/product_demo.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
<?xml version="1.0" encoding="utf-8" ?>
<!--
Copyright 2017 Akretion (Alexis de Lattre <alexis.delattre@akretion.com>)
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
-->
<odoo noupdate="1">
<record
id="analytic_distribution_model_product_product_1"
model="account.analytic.distribution.model"
>
<field name="product_id" ref="product.product_product_1" />
<field
name="analytic_distribution"
eval="{ref('analytic.analytic_our_super_product'): 100}"
/>
</record>
<record
id="analytic_distribution_model_product_product_3"
model="account.analytic.distribution.model"
>
<field name="product_id" ref="product.product_product_3" />
<field
name="analytic_distribution"
eval="{ref('analytic.analytic_integration_c2c'): 100}"
/>
</record>
<record
id="analytic_distribution_model_product_delivery_01"
model="account.analytic.distribution.model"
>
<field name="product_id" ref="product.product_delivery_01" />
<field
name="analytic_distribution"
eval="{ref('analytic.analytic_our_super_product'): 100}"
/>
</record>
<record
id="analytic_distribution_model_product_product_10"
model="account.analytic.distribution.model"
>
<field name="product_id" ref="product.product_product_10" />
<field
name="analytic_distribution"
eval="{ref('analytic.analytic_seagate_p2'): 100}"
/>
</record>
</odoo>
61 changes: 61 additions & 0 deletions product_analytic/i18n/ar.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * product_analytic
#
# Translators:
# OCA Transbot <transbot@odoo-community.org>, 2017
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 10.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-06-21 02:40+0000\n"
"PO-Revision-Date: 2018-09-22 15:16+0000\n"
"Last-Translator: yaseentai <eltahiryaseen@outlook.com>\n"
"Language-Team: Arabic (https://www.transifex.com/oca/teams/23907/ar/)\n"
"Language: ar\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=6; plural=n==0 ? 0 : n==1 ? 1 : n==2 ? 2 : n%100>=3 "
"&& n%100<=10 ? 3 : n%100>=11 ? 4 : 5;\n"
"X-Generator: Weblate 3.1.1\n"

#. module: product_analytic
#: model:ir.model,name:product_analytic.model_account_analytic_distribution_model
msgid "Analytic Distribution Model"
msgstr ""

#. module: product_analytic
#: model:ir.model.fields,field_description:product_analytic.field_product_category__expense_analytic_account_id
#: model:ir.model.fields,field_description:product_analytic.field_product_product__expense_analytic_account_id
#: model:ir.model.fields,field_description:product_analytic.field_product_template__expense_analytic_account_id
msgid "Expense Analytic Account"
msgstr "حساب المنصرفات التحليلي"

#. module: product_analytic
#: model:ir.model.fields,field_description:product_analytic.field_product_category__income_analytic_account_id
#: model:ir.model.fields,field_description:product_analytic.field_product_product__income_analytic_account_id
#: model:ir.model.fields,field_description:product_analytic.field_product_template__income_analytic_account_id
msgid "Income Analytic Account"
msgstr "حساب الدخل التحليلي"

#. module: product_analytic
#: model:ir.model,name:product_analytic.model_account_move_line
msgid "Journal Item"
msgstr ""

#. module: product_analytic
#: model:ir.model,name:product_analytic.model_product_template
msgid "Product"
msgstr ""

#. module: product_analytic
#: model:ir.model,name:product_analytic.model_product_category
msgid "Product Category"
msgstr "فئة المنتج"

#~ msgid "Product Template"
#~ msgstr "قالب المنتج"

#~ msgid "Invoice Line"
#~ msgstr "خط الفاتورة"
57 changes: 57 additions & 0 deletions product_analytic/i18n/bs.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * product_analytic
#
# Translators:
# OCA Transbot <transbot@odoo-community.org>, 2017
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 10.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-06-21 02:40+0000\n"
"PO-Revision-Date: 2017-06-21 02:40+0000\n"
"Last-Translator: OCA Transbot <transbot@odoo-community.org>, 2017\n"
"Language-Team: Bosnian (https://www.transifex.com/oca/teams/23907/bs/)\n"
"Language: bs\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && "
"n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n"

#. module: product_analytic
#: model:ir.model,name:product_analytic.model_account_analytic_distribution_model
msgid "Analytic Distribution Model"
msgstr ""

#. module: product_analytic
#: model:ir.model.fields,field_description:product_analytic.field_product_category__expense_analytic_account_id
#: model:ir.model.fields,field_description:product_analytic.field_product_product__expense_analytic_account_id
#: model:ir.model.fields,field_description:product_analytic.field_product_template__expense_analytic_account_id
msgid "Expense Analytic Account"
msgstr ""

#. module: product_analytic
#: model:ir.model.fields,field_description:product_analytic.field_product_category__income_analytic_account_id
#: model:ir.model.fields,field_description:product_analytic.field_product_product__income_analytic_account_id
#: model:ir.model.fields,field_description:product_analytic.field_product_template__income_analytic_account_id
msgid "Income Analytic Account"
msgstr ""

#. module: product_analytic
#: model:ir.model,name:product_analytic.model_account_move_line
msgid "Journal Item"
msgstr ""

#. module: product_analytic
#: model:ir.model,name:product_analytic.model_product_template
msgid "Product"
msgstr ""

#. module: product_analytic
#: model:ir.model,name:product_analytic.model_product_category
msgid "Product Category"
msgstr ""

#~ msgid "Invoice Line"
#~ msgstr "Stavka fakture"
Loading