Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
56 commits
Select commit Hold shift + click to select a range
e7cbf83
[ADD] product_analytic
alexis-via Nov 30, 2015
a46186a
[IMP] product_analytic: Several things:
Jan 5, 2016
a1d1f5a
Spanish translation
antespi Jan 26, 2016
699f3e4
Fix travis error (#74)
andhit-r Dec 3, 2016
d1e895c
OCA Transbot updated translations from Transifex
oca-transbot Aug 5, 2016
9806511
[MIG] product_analytic: Migrated to 10.0
luismontalba Jun 13, 2017
83f78e8
OCA Transbot updated translations from Transifex
oca-transbot Jun 23, 2017
486d048
product_analytic: add method _get_product_analytic_accounts() similar…
alexis-via Jul 17, 2017
c1f1c89
OCA Transbot updated translations from Transifex
oca-transbot Feb 23, 2018
de37a0e
[MIG] product_analytic: Migration to 11.0
chienandalu May 18, 2018
9342bf3
OCA Transbot updated translations from Transifex
oca-transbot Jun 1, 2018
9df1098
[UPD] Update product_analytic.pot
oca-travis Jun 23, 2018
3d1f92a
Translated using Weblate (Arabic)
yaseentai Sep 22, 2018
b0e7b96
Translated using Weblate (Catalan)
Oct 12, 2018
57f797a
[ADD] icon.png
OCA-git-bot Apr 3, 2019
5bf222f
[12.0][MIG] product_analytic
tbaden May 26, 2019
c528946
[UPD] Update product_analytic.pot
oca-travis May 29, 2019
51f684c
Update translation files
oca-transbot Jun 16, 2019
ea60d22
[UPD] README.rst
OCA-git-bot Jul 29, 2019
ebadb91
Translated using Weblate (Portuguese (Brazil))
marcelsavegnago Aug 2, 2019
ede784a
Translated using Weblate (Finnish)
jarmokortetjarvi Dec 31, 2019
97ec5cc
[IMP] product_analytic: black, isort
ps-tubtim Jan 8, 2020
a389a28
[MIG] product_analytic: Migration to 13.0
ps-tubtim Jan 8, 2020
b0aa19d
[UPD] Update product_analytic.pot
oca-travis Feb 20, 2020
6550aae
pre-commit update
OCA-git-bot Mar 14, 2020
e17447a
Update translation files
oca-transbot Mar 14, 2020
d78ef93
Translated using Weblate (Portuguese (Brazil))
Aug 12, 2020
5829cfd
Translated using Weblate (Catalan)
eduardgm Mar 26, 2021
1f47171
Translated using Weblate (Spanish)
eduardgm Mar 26, 2021
94101b7
[14.0][MIG] product_analytic: Migration to 14.0
Reyes4711-S73 May 13, 2021
c9a55f0
[14.0][IMP] product_analytic: Use onchange multi implementation
rousseldenis Oct 21, 2021
81b8e94
[14.0][IMP] product_analytic: Separate models files
rousseldenis Oct 21, 2021
9f8a788
[14.0][IMP] product_analytic: Update CONTRIBUTORS
rousseldenis Oct 21, 2021
89b5ac3
[14.0][IMP] product_analytic: Improve tests
rousseldenis Oct 21, 2021
f423236
[UPD] Update product_analytic.pot
oca-travis Oct 24, 2021
372ee0d
[UPD] README.rst
OCA-git-bot Oct 24, 2021
ee307d0
[MIG] product_analytic: Migration to 15.0
Dariosi Jan 28, 2022
5b94356
[UPD] Update product_analytic.pot
Mar 18, 2022
3350d9b
[UPD] README.rst
OCA-git-bot Mar 18, 2022
26da5d7
Translated using Weblate (Italian)
mymage Dec 28, 2022
fbdf8db
Translated using Weblate (Italian)
mymage Jun 20, 2023
96387f9
Translated using Weblate (Italian)
francesco-ooops Jul 17, 2023
f063bb0
[MIG] product_analytic: Migration to 16.0
CLaurelB Sep 25, 2023
b9a75d9
[UPD] Update product_analytic.pot
Oct 9, 2023
816cc29
[BOT] post-merge updates
OCA-git-bot Oct 9, 2023
a52f4ef
Update translation files
weblate Oct 10, 2023
1151aac
Translated using Weblate (Spanish)
Ivorra78 Oct 10, 2023
0f65425
Translated using Weblate (Portuguese (Brazil))
adrianojprado Oct 13, 2023
16c6d70
Translated using Weblate (French)
remi-filament Feb 1, 2024
0a44b5b
Translated using Weblate (Italian)
mymage Feb 22, 2024
0cb159b
Translated using Weblate (Swedish)
jakobkrabbe Feb 27, 2024
a79fc83
[FIX] product_analytic: compatibility with pos_analytic_by_config
chienandalu Feb 28, 2024
e499ae9
Translated using Weblate (Croatian)
badbole Jun 17, 2024
5d9326f
Translated using Weblate (Catalan)
jaumeplanas Sep 11, 2024
c47c53e
[IMP] product_analytic: pre-commit auto fixes
Apr 17, 2025
11e161e
[18.0][MIG] product_analytic : migration to 18.0
Apr 17, 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
151 changes: 151 additions & 0 deletions product_analytic/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,151 @@
================
Product Analytic
================

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

.. |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 an analytic account at product or category
level for using it when creating invoices.

**Table of contents**

.. contents::
:local:

Usage
=====

This module allows you to configure an **income analytic account** and
an **expense analytic account** on products and on product categories.
When you select the product in an invoice line, it will check if this
product has an income analytic account (for customer invoice/refunds) or
an expense analytic account (for supplier invoice/refunds) ; if it
doesn't find any, it checks if the category of the product has an income
or expense analytic account ; if an analytic account 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 <[email protected]>
- Javier Iniesta <[email protected]>
- Luis M. Ontalba <[email protected]>
- David Vidal <[email protected]>
- Thore Baden
- Pimolnat Suntian <[email protected]>
- Reyes4711
- Denis Roussel <[email protected]>
- Darius Žižys <[email protected]>

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 account 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,
}
38 changes: 38 additions & 0 deletions product_analytic/demo/product_demo.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
<?xml version="1.0" encoding="utf-8" ?>
<!--
Copyright 2017 Akretion (Alexis de Lattre <[email protected]>)
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
-->
<odoo noupdate="1">
<record id="product.product_product_1" model="product.product">
<field
name="income_analytic_account_id"
ref="analytic.analytic_our_super_product"
/>
<field
name="expense_analytic_account_id"
ref="analytic.analytic_our_super_product"
/>
</record>
<record id="product.product_product_3" model="product.product">
<field
name="income_analytic_account_id"
ref="analytic.analytic_integration_c2c"
/>
<field name="expense_analytic_account_id" ref="analytic.analytic_agrolait" />
</record>
<record id="product.product_delivery_01" model="product.product">
<field
name="income_analytic_account_id"
ref="analytic.analytic_our_super_product"
/>
<field
name="expense_analytic_account_id"
ref="analytic.analytic_our_super_product"
/>
</record>
<record id="product.product_product_10" model="product.product">
<field name="income_analytic_account_id" ref="analytic.analytic_seagate_p2" />
<field name="expense_analytic_account_id" ref="analytic.analytic_seagate_p2" />
</record>
</odoo>
56 changes: 56 additions & 0 deletions product_analytic/i18n/ar.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * product_analytic
#
# Translators:
# OCA Transbot <[email protected]>, 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 <[email protected]>\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.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 "خط الفاتورة"
52 changes: 52 additions & 0 deletions product_analytic/i18n/bs.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * product_analytic
#
# Translators:
# OCA Transbot <[email protected]>, 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 <[email protected]>, 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.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"
55 changes: 55 additions & 0 deletions product_analytic/i18n/ca.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * product_analytic
#
# Translators:
# Carles Antoli <[email protected]>, 2017
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 8.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-01-13 23:06+0000\n"
"PO-Revision-Date: 2024-09-11 16:05+0000\n"
"Last-Translator: Jaume Planas <[email protected]>\n"
"Language-Team: Catalan (https://www.transifex.com/oca/teams/23907/ca/)\n"
"Language: ca\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=n != 1;\n"
"X-Generator: Weblate 5.6.2\n"

#. 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 "Compte analític per a despeses"

#. 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 "Compte analític per a ingressos"

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

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

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

#~ msgid "Product Template"
#~ msgstr "Plantilla del producte"

#~ msgid "Invoice Line"
#~ msgstr "Línia factura"
Loading
Loading