Skip to content

Commit

Permalink
Merge 49ce078 into 6538090
Browse files Browse the repository at this point in the history
  • Loading branch information
ps-tubtim committed Jan 30, 2020
2 parents 6538090 + 49ce078 commit 4237c67
Show file tree
Hide file tree
Showing 56 changed files with 2,931 additions and 0 deletions.
143 changes: 143 additions & 0 deletions product_analytic/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,143 @@
================
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/13.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-13-0/account-analytic-13-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/13.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:%2013.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>

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/13.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": "13.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,
}
31 changes: 31 additions & 0 deletions product_analytic/demo/product_demo.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
<?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="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>
50 changes: 50 additions & 0 deletions product_analytic/i18n/ar.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
# 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.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_invoice_line
msgid "Invoice Line"
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 "قالب المنتج"
49 changes: 49 additions & 0 deletions product_analytic/i18n/bs.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
# 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.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_invoice_line
msgid "Invoice Line"
msgstr "Stavka fakture"

#. 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 ""
49 changes: 49 additions & 0 deletions product_analytic/i18n/ca.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * product_analytic
#
# Translators:
# Carles Antoli <carlesantoli@hotmail.com>, 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: 2018-10-12 20:32+0000\n"
"Last-Translator: Harald Panten <harald.panten@qubiq.es>\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 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 "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_invoice_line
msgid "Invoice Line"
msgstr "Línia factura"

#. 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"
48 changes: 48 additions & 0 deletions product_analytic/i18n/cs.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
# 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: Czech (https://www.transifex.com/oca/teams/23907/cs/)\n"
"Language: cs\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=3; plural=(n==1) ? 0 : (n>=2 && n<=4) ? 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_invoice_line
msgid "Invoice Line"
msgstr "Řádek faktury"

#. 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 ""

0 comments on commit 4237c67

Please sign in to comment.