Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[15.0][MIG] product_analytic #435

Merged
merged 38 commits into from
Mar 18, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
6661376
[ADD] product_analytic
alexis-via Nov 30, 2015
db39acb
[IMP] product_analytic: Several things:
Jan 5, 2016
8420a72
Spanish translation
antespi Jan 26, 2016
7c1a964
Fix travis error (#74)
andhit-r Dec 3, 2016
b03ce54
OCA Transbot updated translations from Transifex
oca-transbot Aug 5, 2016
ea5dfdd
[MIG] product_analytic: Migrated to 10.0
luismontalba Jun 13, 2017
5527452
OCA Transbot updated translations from Transifex
oca-transbot Jun 23, 2017
4a80654
product_analytic: add method _get_product_analytic_accounts() similar…
alexis-via Jul 17, 2017
07a30e0
OCA Transbot updated translations from Transifex
oca-transbot Feb 23, 2018
81bbf8b
[MIG] product_analytic: Migration to 11.0
chienandalu May 18, 2018
7069a62
OCA Transbot updated translations from Transifex
oca-transbot Jun 1, 2018
bece780
[UPD] Update product_analytic.pot
oca-travis Jun 23, 2018
791137e
Translated using Weblate (Arabic)
yaseentai Sep 22, 2018
562ee8c
Translated using Weblate (Catalan)
Oct 12, 2018
c65d2ce
[ADD] icon.png
OCA-git-bot Apr 3, 2019
32623eb
[12.0][MIG] product_analytic
tbaden May 26, 2019
de1786d
[UPD] Update product_analytic.pot
oca-travis May 29, 2019
dc78089
Update translation files
oca-transbot Jun 16, 2019
de0539e
[UPD] README.rst
OCA-git-bot Jul 29, 2019
8422462
Translated using Weblate (Portuguese (Brazil))
marcelsavegnago Aug 2, 2019
a88c413
Translated using Weblate (Finnish)
jarmokortetjarvi Dec 31, 2019
96e32c9
[IMP] product_analytic: black, isort
ps-tubtim Jan 8, 2020
5c723f0
[MIG] product_analytic: Migration to 13.0
ps-tubtim Jan 8, 2020
91d550c
[UPD] Update product_analytic.pot
oca-travis Feb 20, 2020
65de621
pre-commit update
OCA-git-bot Mar 14, 2020
a8ca10e
Update translation files
oca-transbot Mar 14, 2020
39fa57c
Translated using Weblate (Portuguese (Brazil))
Aug 12, 2020
a8f955c
Translated using Weblate (Catalan)
eduardgm Mar 26, 2021
24101f7
Translated using Weblate (Spanish)
eduardgm Mar 26, 2021
c8938c7
[14.0][MIG] product_analytic: Migration to 14.0
Reyes4711-S73 May 13, 2021
03d5a08
[14.0][IMP] product_analytic: Use onchange multi implementation
rousseldenis Oct 21, 2021
7fd09d5
[14.0][IMP] product_analytic: Separate models files
rousseldenis Oct 21, 2021
8bfad34
[14.0][IMP] product_analytic: Update CONTRIBUTORS
rousseldenis Oct 21, 2021
c098c73
[14.0][IMP] product_analytic: Improve tests
rousseldenis Oct 21, 2021
c8a90bd
[UPD] Update product_analytic.pot
oca-travis Oct 24, 2021
6846278
[UPD] README.rst
OCA-git-bot Oct 24, 2021
38e0fa1
[IMP] product_analytic: black, isort, prettier
Dariosi Jan 27, 2022
b32904b
[MIG] product_analytic: Migration to 15.0
Dariosi Jan 28, 2022
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
145 changes: 145 additions & 0 deletions product_analytic/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,145 @@
================
Product Analytic
================

.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

.. |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/14.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-14-0/account-analytic-14-0-product_analytic
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png
:target: https://runbot.odoo-community.org/runbot/87/14.0
:alt: Try me on Runbot

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

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

This module is an alternative to the official module
*account_analytic_default*. The advantages of this module are:

* it only depends on the *account* module, whereas the
*account_analytic_default* module depends on *sale_stock* ;

* the analytic account is configured on the product form or the product
category form, and not on a separate object.

**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
=========

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 smashing it by providing a detailed and welcomed
`feedback <https://github.com/OCA/account-analytic/issues/new?body=module:%20product_analytic%0Aversion:%2014.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]>

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/14.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": "15.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>
53 changes: 53 additions & 0 deletions product_analytic/i18n/ar.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
# 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_category
msgid "Product Category"
msgstr "فئة المنتج"

#. module: product_analytic
#: model:ir.model,name:product_analytic.model_product_template
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_category
msgid "Product Category"
msgstr ""

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

#~ msgid "Invoice Line"
#~ msgstr "Stavka fakture"
52 changes: 52 additions & 0 deletions product_analytic/i18n/ca.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:
# 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: 2021-03-26 18:46+0000\n"
"Last-Translator: eduardgm <[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 4.3.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_category
msgid "Product Category"
msgstr "Categoria de producte"

#. module: product_analytic
#: model:ir.model,name:product_analytic.model_product_template
msgid "Product Template"
msgstr "Plantilla del producte"

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