diff --git a/hr_expense_fleet/__init__.py b/hr_expense_fleet/__init__.py new file mode 100755 index 0000000..0650744 --- /dev/null +++ b/hr_expense_fleet/__init__.py @@ -0,0 +1 @@ +from . import models diff --git a/hr_expense_fleet/__manifest__.py b/hr_expense_fleet/__manifest__.py new file mode 100755 index 0000000..0d77183 --- /dev/null +++ b/hr_expense_fleet/__manifest__.py @@ -0,0 +1,21 @@ +# Copyright 2024 Onestein () +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). +{ + "name": "Hr Expense Fleet", + "version": "16.0.1.0.0", + "category": "Human Resources/Expenses", + "license": "LGPL-3", + "summary": "Allows to create expenses for fleet", + "depends": [ + "hr_expense", + "hr_fleet", + "product_analytic" + ], + "data": [ + "data/hr_expense_data.xml", + "views/fleet_vehicle_odometer_view.xml", + "views/fleet_vehicle_view.xml", + "views/hr_expense_view.xml", + "views/product_view.xml", + ], +} diff --git a/hr_expense_fleet/data/hr_expense_data.xml b/hr_expense_fleet/data/hr_expense_data.xml new file mode 100755 index 0000000..1d2327f --- /dev/null +++ b/hr_expense_fleet/data/hr_expense_data.xml @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/hr_expense_fleet/models/__init__.py b/hr_expense_fleet/models/__init__.py new file mode 100755 index 0000000..1871584 --- /dev/null +++ b/hr_expense_fleet/models/__init__.py @@ -0,0 +1,4 @@ +from . import fleet_vehicle +from . import fleet_vehicle_odometer +from . import hr_expense +from . import product_template \ No newline at end of file diff --git a/hr_expense_fleet/models/fleet_vehicle.py b/hr_expense_fleet/models/fleet_vehicle.py new file mode 100644 index 0000000..89e3995 --- /dev/null +++ b/hr_expense_fleet/models/fleet_vehicle.py @@ -0,0 +1,9 @@ +from odoo import api, fields, models + + +class FleetVehicle(models.Model): + _inherit = "fleet.vehicle" + + product_id = fields.Many2one("product.product", string="Expense Category", + domain="[('can_be_expensed', '=', True),('can_be_used_for_fleet', '=', True)]", + help="Defines default expense category for this vehicle's trips") diff --git a/hr_expense_fleet/models/fleet_vehicle_odometer.py b/hr_expense_fleet/models/fleet_vehicle_odometer.py new file mode 100644 index 0000000..6f6d7e5 --- /dev/null +++ b/hr_expense_fleet/models/fleet_vehicle_odometer.py @@ -0,0 +1,74 @@ +from odoo import api, fields, models + + +class FleetVehicleOdometer(models.Model): + _inherit = "fleet.vehicle.odometer" + + partner_id = fields.Many2one("res.partner", "Contact Visited", + help="Defines the contact visited for the trip if any") + from_address = fields.Text("From", help="Defines the from address for the trip") + to_address = fields.Text("To", help="Defines the to address for the trip") + distance = fields.Float("Distance For Single Way Trip", help="Defines the distance covered for the trip") + is_roundtrip = fields.Boolean("Is Roundtrip", help="Defines whether it is a round trip or not") + total_distance = fields.Float("Total Distance", compute="_compute_total_distance", + help="Defines the total distance covered including round trip") + is_private_trip = fields.Boolean("Is Private Trip", help="Defines whether it is a private trip or not") + value = fields.Float("Odometer End Value", group_operator="max", copy=False, ) + start_value = fields.Float("Odometer Start Value", group_operator="max", copy=False, ) + expense_id = fields.Many2one("hr.expense", "Expense", help="Defines expense record for this trip", copy=False) + product_id = fields.Many2one("product.product", string="Expense Category", + domain="[('can_be_expensed', '=', True),('can_be_used_for_fleet', '=', True)]", + help="Defines expense category for this trip") + status = fields.Selection( + [("not_to_expense", "Not To Expense"), ("to_expense", "To Expense"), ("expense_created", "Expense Created")], + "Status", help="Defines expense status for this trip", default="to_expense", copy=False) + + @api.depends("distance", "is_roundtrip") + def _compute_total_distance(self): + for rec in self: + rec.total_distance = rec.distance * 2 if rec.is_roundtrip else rec.distance + + @api.onchange("is_private_trip") + def _onchange_is_private_trip(self): + if self.is_private_trip: + self.status = "not_to_expense" + else: + self.status = "to_expense" + + @api.onchange("vehicle_id") + def _onchange_vehicle(self): + super()._onchange_vehicle() + if self.vehicle_id: + self.product_id = self.vehicle_id.product_id + + def action_create_expense(self): + hr_expense_obj = self.env["hr.expense"] + product_uom_km = self.env.ref("uom.product_uom_km") + product_uom_mi = self.env.ref("uom.product_uom_mile") + to_expense_odometers = self.filtered(lambda o: o.status == "to_expense" and ( + o.driver_employee_id == self.env.user.employee_id or not o.driver_employee_id)) + products = to_expense_odometers.mapped("product_id") + for product in products: + odometers = to_expense_odometers.filtered(lambda o: o.product_id == product) + product_uom = product.uom_id + if product_uom == product_uom_km: + product_unit = "kilometers" + odometer_uom_to_convert = product_uom_mi + else: + product_unit = "miles" + odometer_uom_to_convert = product_uom_km + total_distance = sum( + line.total_distance for line in odometers.filtered(lambda ol: ol.unit == product_unit)) + for odometer in odometers.filtered(lambda ol: ol.unit != product_unit): + total_distance += odometer_uom_to_convert._compute_quantity(odometer.total_distance, product_uom) + ana_accounts = product.product_tmpl_id._get_product_analytic_accounts() + ana_account = ana_accounts["expense"] + hr_expense_rec = hr_expense_obj.create({ + "product_id": product.id, + "quantity": total_distance, + "analytic_distribution": ( + {ana_account.id: 100} if ana_account else False + ) + }) + odometers.write({"expense_id": hr_expense_rec.id, "status": "expense_created"}) + return True diff --git a/hr_expense_fleet/models/hr_expense.py b/hr_expense_fleet/models/hr_expense.py new file mode 100644 index 0000000..c6f7799 --- /dev/null +++ b/hr_expense_fleet/models/hr_expense.py @@ -0,0 +1,24 @@ +from odoo import api, fields, models + + +class Expense(models.Model): + _inherit = "hr.expense" + + fleet_vehicle_odometer_ids = fields.One2many("fleet.vehicle.odometer", "expense_id", "OdoMeters", copy=False) + odometer_count = fields.Integer(compute="_compute_odometer_count", string="Odometer") + + @api.depends("fleet_vehicle_odometer_ids") + def _compute_odometer_count(self): + for rec in self: + rec.odometer_count = len(rec.fleet_vehicle_odometer_ids) + + def open_odometer(self): + self.ensure_one() + return { + "type": "ir.actions.act_window", + "name": "Odometers", + "res_model": "fleet.vehicle.odometer", + "view_mode":"tree,kanban,form,graph", + "domain": [("id", "in", self.fleet_vehicle_odometer_ids.ids)], + "context": {"create": False, "edit": False}, + } diff --git a/hr_expense_fleet/models/product_template.py b/hr_expense_fleet/models/product_template.py new file mode 100644 index 0000000..8471b34 --- /dev/null +++ b/hr_expense_fleet/models/product_template.py @@ -0,0 +1,23 @@ +from odoo import api, fields, models + + +class ProductProduct(models.Model): + _inherit = "product.template" + + can_be_used_for_fleet = fields.Boolean("Can Be Used For Fleet", + help="Helps to define whether this product is to be used for fleet or not") + uom_id_domain = fields.Binary(string="UOM Domain", + help="Dynamic domain used for the uom that can be set on product to be used for fleet", + compute="_compute_uom_id_domain") + + @api.depends("can_be_used_for_fleet") + def _compute_uom_id_domain(self): + ids = [self.env.ref("uom.product_uom_km").id, self.env.ref("uom.product_uom_mile").id] + for rec in self: + rec.uom_id_domain = [("id", "in", ids)] if rec.can_be_used_for_fleet else [] + + @api.onchange("can_be_used_for_fleet") + def _onchange_can_be_used_for_fleet(self): + if self.can_be_used_for_fleet: + if self.uom_id not in [self.env.ref("uom.product_uom_km"), self.env.ref("uom.product_uom_mile")]: + self.uom_id = self.env.ref("uom.product_uom_km").id diff --git a/hr_expense_fleet/tests/__init__.py b/hr_expense_fleet/tests/__init__.py new file mode 100755 index 0000000..5574f97 --- /dev/null +++ b/hr_expense_fleet/tests/__init__.py @@ -0,0 +1 @@ +from . import test_hr_expense_fleet diff --git a/hr_expense_fleet/tests/test_hr_expense_fleet.py b/hr_expense_fleet/tests/test_hr_expense_fleet.py new file mode 100755 index 0000000..08aa0b0 --- /dev/null +++ b/hr_expense_fleet/tests/test_hr_expense_fleet.py @@ -0,0 +1,77 @@ +# -*- coding: utf-8 -*- +from odoo.tests import common + + +class TestHrExpenseFleet(common.SingleTransactionCase): + @classmethod + def setUpClass(cls): + super().setUpClass() + cls.product_mileage = cls.env.ref("hr_expense.expense_product_mileage") + cls.product_expense = cls.env["product.product"].create({ + "name": "Travel", + "default_code": "EXP_TRA", + "standard_price": 0.93, + "can_be_expensed": True, + }) + cls.env.user.groups_id += cls.env.ref("uom.group_uom") + cls.env.user.action_create_employee() + brand = cls.env["fleet.vehicle.model.brand"].create({ + "name": "Audi", + }) + model = cls.env["fleet.vehicle.model"].create({ + "brand_id": brand.id, + "name": "A3", + }) + cls.vehicle_with_km_odometer = cls.env["fleet.vehicle"].create({ + "model_id": model.id, + "driver_id": cls.env.user.partner_id.id, + "product_id": cls.product_mileage.id + }) + model = cls.env["fleet.vehicle.model"].create({ + "brand_id": brand.id, + "name": "A8", + }) + cls.vehicle_with_mi_odometer = cls.env["fleet.vehicle"].create({ + "model_id": model.id, + "driver_id": cls.env.user.partner_id.id, + }) + + def test_01_onchange_product_can_be_used_for_fleet(self): + self.assertEqual(self.product_expense.uom_id, self.env.ref("uom.product_uom_unit")) + self.assertEqual(self.product_expense.uom_id_domain, []) + self.product_expense.can_be_used_for_fleet = True + self.product_expense.product_tmpl_id._onchange_can_be_used_for_fleet() + uom_km = self.env.ref("uom.product_uom_km") + uom_mile = self.env.ref("uom.product_uom_mile") + self.assertEqual(self.product_expense.uom_id, uom_km) + self.assertEqual(self.product_expense.uom_id_domain, [("id", "in", [uom_km.id, uom_mile.id])]) + self.product_expense.uom_id = self.env.ref("uom.product_uom_mile").id + + def test_01_onchange_odometer(self): + self.vehicle_with_mi_odometer.product_id = self.product_expense.id + self.odometer_in_mi = self.env["fleet.vehicle.odometer"].create( + {"vehicle_id": self.vehicle_with_mi_odometer.id, + "from_address": "Breda", "to_address": "Tilburg", "distance": 10.0, "is_roundtrip": True}) + self.assertEqual(self.odometer_in_mi.total_distance, 20.0) + self.odometer_in_mi._onchange_vehicle() + self.assertEqual(self.odometer_in_mi.product_id, self.vehicle_with_mi_odometer.product_id) + self.odometer_in_mi.is_private_trip = True + self.odometer_in_mi._onchange_is_private_trip() + self.assertEqual(self.odometer_in_mi.status, "not_to_expense") + self.odometer_in_mi.is_private_trip = False + self.odometer_in_mi._onchange_is_private_trip() + self.assertEqual(self.odometer_in_mi.status, "to_expense") + + def test_action_create_expense(self): + self.odometer_in_km = self.env["fleet.vehicle.odometer"].create( + {"vehicle_id": self.vehicle_with_km_odometer.id, + "from_address": "Breda", "to_address": "Tilburg", "distance": 10.0}) + self.odometer_in_km._onchange_vehicle() + self.odometer_in_mi = self.env["fleet.vehicle.odometer"].create( + {"vehicle_id": self.vehicle_with_mi_odometer.id, + "from_address": "Breda", "to_address": "Tilburg", "distance": 10.0, "is_roundtrip": True}) + self.odometer_in_mi._onchange_vehicle() + (self.odometer_in_km + self.odometer_in_mi).action_create_expense() + self.assertEqual(self.odometer_in_mi.status, "expense_created") + self.assertEqual(self.odometer_in_mi.expense_id.quantity, 12.43) + self.assertEqual(self.odometer_in_km.expense_id.quantity, 10.0) diff --git a/hr_expense_fleet/views/fleet_vehicle_odometer_view.xml b/hr_expense_fleet/views/fleet_vehicle_odometer_view.xml new file mode 100644 index 0000000..5977a35 --- /dev/null +++ b/hr_expense_fleet/views/fleet_vehicle_odometer_view.xml @@ -0,0 +1,108 @@ + + + + + fleet.vehicle.odometer.form + fleet.vehicle.odometer + + + +
+ +
+
+ + + + + + + + + + + + + + + + + + + + + {'readonly':[('status','=','expense_created')]} + + + {'readonly':[('status','=','expense_created')]} + + + {'readonly':[('status','=','expense_created')]} + + +
+ + + fleet.vehicle.odometer.tree + fleet.vehicle.odometer + + + + + + + True + + + True + + + + + + + + + + + + + hide + + + hide + + + + + + Create Expense From Odometer + + + list,form + code + + records.action_create_expense() + + +
diff --git a/hr_expense_fleet/views/fleet_vehicle_view.xml b/hr_expense_fleet/views/fleet_vehicle_view.xml new file mode 100644 index 0000000..7de4c84 --- /dev/null +++ b/hr_expense_fleet/views/fleet_vehicle_view.xml @@ -0,0 +1,17 @@ + + + + + fleet.vehicle.form + fleet.vehicle + + + + + + + + diff --git a/hr_expense_fleet/views/hr_expense_view.xml b/hr_expense_fleet/views/hr_expense_view.xml new file mode 100644 index 0000000..dd81507 --- /dev/null +++ b/hr_expense_fleet/views/hr_expense_view.xml @@ -0,0 +1,27 @@ + + + + + hr.expense.form + hr.expense + + + +
+ +
+
+
+
+
\ No newline at end of file diff --git a/hr_expense_fleet/views/product_view.xml b/hr_expense_fleet/views/product_view.xml new file mode 100644 index 0000000..86b04bf --- /dev/null +++ b/hr_expense_fleet/views/product_view.xml @@ -0,0 +1,53 @@ + + + + + product.product.expense.form + product.product + + + + + + + + + + + uom_id_domain + + + + + + product.product.tree + product.product + + + + + + + uom_id_domain + + + + + + product.template.common.form + product.template + + + + + + + uom_id_domain + + + + + \ No newline at end of file diff --git a/product_analytic/README.rst b/product_analytic/README.rst new file mode 100644 index 0000000..89bca49 --- /dev/null +++ b/product_analytic/README.rst @@ -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/16.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-16-0/account-analytic-16-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=16.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 `_. +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 `_. + +Do not contact contributors directly about support or help with technical issues. + +Credits +======= + +Authors +~~~~~~~ + +* Akretion +* Tecnativa + +Contributors +~~~~~~~~~~~~ + +* Alexis de Lattre +* Javier Iniesta +* Luis M. Ontalba +* David Vidal +* Thore Baden +* Pimolnat Suntian +* Reyes4711 +* Denis Roussel + +* Darius Žižys + +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 `_ project on GitHub. + +You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/product_analytic/__init__.py b/product_analytic/__init__.py new file mode 100644 index 0000000..83e553a --- /dev/null +++ b/product_analytic/__init__.py @@ -0,0 +1,3 @@ +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). + +from . import models diff --git a/product_analytic/__manifest__.py b/product_analytic/__manifest__.py new file mode 100644 index 0000000..d0dcda7 --- /dev/null +++ b/product_analytic/__manifest__.py @@ -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": "16.0.1.0.1", + "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, +} diff --git a/product_analytic/demo/product_demo.xml b/product_analytic/demo/product_demo.xml new file mode 100644 index 0000000..d033bc0 --- /dev/null +++ b/product_analytic/demo/product_demo.xml @@ -0,0 +1,38 @@ + + + + + + + + + + + + + + + + + + + + diff --git a/product_analytic/i18n/ar.po b/product_analytic/i18n/ar.po new file mode 100644 index 0000000..aa8467f --- /dev/null +++ b/product_analytic/i18n/ar.po @@ -0,0 +1,56 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * product_analytic +# +# Translators: +# OCA Transbot , 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 \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 "خط الفاتورة" diff --git a/product_analytic/i18n/bs.po b/product_analytic/i18n/bs.po new file mode 100644 index 0000000..5720e55 --- /dev/null +++ b/product_analytic/i18n/bs.po @@ -0,0 +1,52 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * product_analytic +# +# Translators: +# OCA Transbot , 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 , 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" diff --git a/product_analytic/i18n/ca.po b/product_analytic/i18n/ca.po new file mode 100644 index 0000000..bf47004 --- /dev/null +++ b/product_analytic/i18n/ca.po @@ -0,0 +1,55 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * product_analytic +# +# Translators: +# Carles Antoli , 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 \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_template +msgid "Product" +msgstr "" + +#. 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" diff --git a/product_analytic/i18n/cs.po b/product_analytic/i18n/cs.po new file mode 100644 index 0000000..f82b1bd --- /dev/null +++ b/product_analytic/i18n/cs.po @@ -0,0 +1,51 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * product_analytic +# +# Translators: +# OCA Transbot , 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 , 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_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 "Řádek faktury" diff --git a/product_analytic/i18n/cs_CZ.po b/product_analytic/i18n/cs_CZ.po new file mode 100644 index 0000000..0e5faa8 --- /dev/null +++ b/product_analytic/i18n/cs_CZ.po @@ -0,0 +1,55 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * product_analytic +# +# Translators: +# Lukáš Spurný , 2018 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2018-02-21 03:54+0000\n" +"PO-Revision-Date: 2018-02-21 03:54+0000\n" +"Last-Translator: Lukáš Spurný , 2018\n" +"Language-Team: Czech (Czech Republic) (https://www.transifex.com/oca/" +"teams/23907/cs_CZ/)\n" +"Language: cs_CZ\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 "Analytický účet výdajů" + +#. 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 "Analytický účet příjmů" + +#. 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 "Kategorie produktů" + +#~ msgid "Product Template" +#~ msgstr "Šablona produktu" + +#~ msgid "Invoice Line" +#~ msgstr "Linka faktur" diff --git a/product_analytic/i18n/de.po b/product_analytic/i18n/de.po new file mode 100644 index 0000000..b461c53 --- /dev/null +++ b/product_analytic/i18n/de.po @@ -0,0 +1,54 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * product_analytic +# +# Translators: +# OCA Transbot , 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 , 2017\n" +"Language-Team: German (https://www.transifex.com/oca/teams/23907/de/)\n" +"Language: de\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" + +#. 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 "Aufwands-Kostenstelle" + +#. 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 "Erlös-Kostenstelle" + +#. 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 "Produktkategorie" + +#~ msgid "Product Template" +#~ msgstr "Produktvorlage" + +#~ msgid "Invoice Line" +#~ msgstr "Rechnungszeile" diff --git a/product_analytic/i18n/en_GB.po b/product_analytic/i18n/en_GB.po new file mode 100644 index 0000000..060a7c2 --- /dev/null +++ b/product_analytic/i18n/en_GB.po @@ -0,0 +1,52 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * product_analytic +# +# Translators: +# OCA Transbot , 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 , 2017\n" +"Language-Team: English (United Kingdom) (https://www.transifex.com/oca/" +"teams/23907/en_GB/)\n" +"Language: en_GB\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" + +#. 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 "Invoice Line" diff --git a/product_analytic/i18n/es.po b/product_analytic/i18n/es.po new file mode 100644 index 0000000..2798344 --- /dev/null +++ b/product_analytic/i18n/es.po @@ -0,0 +1,55 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * product_analytic +# +# Translators: +# OCA Transbot , 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: 2023-10-10 20:37+0000\n" +"Last-Translator: Ivorra78 \n" +"Language-Team: Spanish (https://www.transifex.com/oca/teams/23907/es/)\n" +"Language: es\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.17\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 "Cuenta analítica para gastos" + +#. 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 "Cuenta analítica para ingresos" + +#. module: product_analytic +#: model:ir.model,name:product_analytic.model_account_move_line +msgid "Journal Item" +msgstr "Asiento Contable" + +#. module: product_analytic +#: model:ir.model,name:product_analytic.model_product_template +msgid "Product" +msgstr "Producto" + +#. module: product_analytic +#: model:ir.model,name:product_analytic.model_product_category +msgid "Product Category" +msgstr "Categoría de producto" + +#~ msgid "Product Template" +#~ msgstr "Plantilla de producto" + +#~ msgid "Invoice Line" +#~ msgstr "Línea de factura" diff --git a/product_analytic/i18n/es_CO.po b/product_analytic/i18n/es_CO.po new file mode 100644 index 0000000..72e6341 --- /dev/null +++ b/product_analytic/i18n/es_CO.po @@ -0,0 +1,53 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * product_analytic +# +# Translators: +# JOSE ALEJANDRO ECHEVERRI VALENCIA , 2018 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 12.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2018-05-27 02:39+0000\n" +"PO-Revision-Date: 2018-05-27 02:39+0000\n" +"Last-Translator: JOSE ALEJANDRO ECHEVERRI VALENCIA , 2018\n" +"Language-Team: Spanish (Colombia) (https://www.transifex.com/oca/teams/23907/" +"es_CO/)\n" +"Language: es_CO\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" + +#. 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 "Linea de Factura" diff --git a/product_analytic/i18n/es_CR.po b/product_analytic/i18n/es_CR.po new file mode 100644 index 0000000..ef14573 --- /dev/null +++ b/product_analytic/i18n/es_CR.po @@ -0,0 +1,52 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * product_analytic +# +# Translators: +# OCA Transbot , 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 , 2017\n" +"Language-Team: Spanish (Costa Rica) (https://www.transifex.com/oca/" +"teams/23907/es_CR/)\n" +"Language: es_CR\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" + +#. 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 "Línea de factura" diff --git a/product_analytic/i18n/es_EC.po b/product_analytic/i18n/es_EC.po new file mode 100644 index 0000000..d42546d --- /dev/null +++ b/product_analytic/i18n/es_EC.po @@ -0,0 +1,52 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * product_analytic +# +# Translators: +# OCA Transbot , 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 , 2017\n" +"Language-Team: Spanish (Ecuador) (https://www.transifex.com/oca/teams/23907/" +"es_EC/)\n" +"Language: es_EC\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" + +#. 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 "Detalle de Factura" diff --git a/product_analytic/i18n/es_MX.po b/product_analytic/i18n/es_MX.po new file mode 100644 index 0000000..c54ada9 --- /dev/null +++ b/product_analytic/i18n/es_MX.po @@ -0,0 +1,55 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * product_analytic +# +# Translators: +# Juan González , 2016 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 8.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2016-12-03 13:34+0000\n" +"PO-Revision-Date: 2016-12-03 13:34+0000\n" +"Last-Translator: Juan González , 2016\n" +"Language-Team: Spanish (Mexico) (https://www.transifex.com/oca/teams/23907/" +"es_MX/)\n" +"Language: es_MX\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" + +#. 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 "Categoria del producto" + +#~ msgid "Product Template" +#~ msgstr "Plantilla del producto" + +#~ msgid "Invoice Line" +#~ msgstr "Línea de factura" diff --git a/product_analytic/i18n/et.po b/product_analytic/i18n/et.po new file mode 100644 index 0000000..edff2c9 --- /dev/null +++ b/product_analytic/i18n/et.po @@ -0,0 +1,51 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * product_analytic +# +# Translators: +# OCA Transbot , 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 , 2017\n" +"Language-Team: Estonian (https://www.transifex.com/oca/teams/23907/et/)\n" +"Language: et\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" + +#. 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 "Arve rida" diff --git a/product_analytic/i18n/fi.po b/product_analytic/i18n/fi.po new file mode 100644 index 0000000..2fc1f2d --- /dev/null +++ b/product_analytic/i18n/fi.po @@ -0,0 +1,55 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * product_analytic +# +# Translators: +# OCA Transbot , 2016 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 8.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2016-09-30 22:27+0000\n" +"PO-Revision-Date: 2019-12-31 14:13+0000\n" +"Last-Translator: Jarmo Kortetjärvi \n" +"Language-Team: Finnish (https://www.transifex.com/oca/teams/23907/fi/)\n" +"Language: fi\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.10\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 "Tuotekategoria" + +#~ msgid "Product Template" +#~ msgstr "Tuotteen malli" + +#~ msgid "Invoice Line" +#~ msgstr "Laskurivi" diff --git a/product_analytic/i18n/fr.po b/product_analytic/i18n/fr.po new file mode 100644 index 0000000..7977491 --- /dev/null +++ b/product_analytic/i18n/fr.po @@ -0,0 +1,55 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * product_analytic +# +# Translators: +# OCA Transbot , 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: 2024-02-01 12:37+0000\n" +"Last-Translator: Rémi \n" +"Language-Team: French (https://www.transifex.com/oca/teams/23907/fr/)\n" +"Language: fr\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.17\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 Analytique Dépenses" + +#. 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 Analytique Revenu" + +#. module: product_analytic +#: model:ir.model,name:product_analytic.model_account_move_line +msgid "Journal Item" +msgstr "Écriture Comptable" + +#. module: product_analytic +#: model:ir.model,name:product_analytic.model_product_template +msgid "Product" +msgstr "Produit" + +#. module: product_analytic +#: model:ir.model,name:product_analytic.model_product_category +msgid "Product Category" +msgstr "Catégorie d'article" + +#~ msgid "Product Template" +#~ msgstr "Modèle d'article" + +#~ msgid "Invoice Line" +#~ msgstr "Lignes de facture" diff --git a/product_analytic/i18n/fr_CH.po b/product_analytic/i18n/fr_CH.po new file mode 100644 index 0000000..25931cd --- /dev/null +++ b/product_analytic/i18n/fr_CH.po @@ -0,0 +1,55 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * product_analytic +# +# Translators: +# leemannd , 2016 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 8.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2016-11-24 23:14+0000\n" +"PO-Revision-Date: 2016-11-24 23:14+0000\n" +"Last-Translator: leemannd , 2016\n" +"Language-Team: French (Switzerland) (https://www.transifex.com/oca/" +"teams/23907/fr_CH/)\n" +"Language: fr_CH\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" + +#. 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 "Template de produit" + +#~ msgid "Invoice Line" +#~ msgstr "Ligne de facture" diff --git a/product_analytic/i18n/hr.po b/product_analytic/i18n/hr.po new file mode 100644 index 0000000..95abee8 --- /dev/null +++ b/product_analytic/i18n/hr.po @@ -0,0 +1,56 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * product_analytic +# +# Translators: +# OCA Transbot , 2017 +# Bole , 2018 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2018-02-21 03:54+0000\n" +"PO-Revision-Date: 2018-02-21 03:54+0000\n" +"Last-Translator: Bole , 2018\n" +"Language-Team: Croatian (https://www.transifex.com/oca/teams/23907/hr/)\n" +"Language: hr\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 "Analitički konto troška" + +#. 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 "Analitički konto prihoda" + +#. 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 "Kategorija proizvoda" + +#~ msgid "Product Template" +#~ msgstr "Predložak proizvoda" + +#~ msgid "Invoice Line" +#~ msgstr "Stavka računa" diff --git a/product_analytic/i18n/hr_HR.po b/product_analytic/i18n/hr_HR.po new file mode 100644 index 0000000..1b4e459 --- /dev/null +++ b/product_analytic/i18n/hr_HR.po @@ -0,0 +1,56 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * product_analytic +# +# Translators: +# Bole , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-06-30 02:40+0000\n" +"PO-Revision-Date: 2017-06-30 02:40+0000\n" +"Last-Translator: Bole , 2017\n" +"Language-Team: Croatian (Croatia) (https://www.transifex.com/oca/teams/23907/" +"hr_HR/)\n" +"Language: hr_HR\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 "Analitički konto troška" + +#. 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 "Analitički konto prihoda" + +#. 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 "Kategorija proizvoda" + +#~ msgid "Product Template" +#~ msgstr "Predložak proizvoda" + +#~ msgid "Invoice Line" +#~ msgstr "Stavka računa" diff --git a/product_analytic/i18n/hu.po b/product_analytic/i18n/hu.po new file mode 100644 index 0000000..bdd4362 --- /dev/null +++ b/product_analytic/i18n/hu.po @@ -0,0 +1,51 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * product_analytic +# +# Translators: +# OCA Transbot , 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 , 2017\n" +"Language-Team: Hungarian (https://www.transifex.com/oca/teams/23907/hu/)\n" +"Language: hu\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" + +#. 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 "Számlasor" diff --git a/product_analytic/i18n/it.po b/product_analytic/i18n/it.po new file mode 100644 index 0000000..0dd351c --- /dev/null +++ b/product_analytic/i18n/it.po @@ -0,0 +1,57 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * product_analytic +# +# Translators: +# Andrea Cometa , 2016 +# Paolo Valier , 2016 +# OCA Transbot , 2016 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 8.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2016-09-30 22:27+0000\n" +"PO-Revision-Date: 2023-07-17 17:09+0000\n" +"Last-Translator: Francesco Foresti \n" +"Language-Team: Italian (https://www.transifex.com/oca/teams/23907/it/)\n" +"Language: it\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.17\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 "Conto analitico spese" + +#. 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 "Conto analitico guadagni" + +#. module: product_analytic +#: model:ir.model,name:product_analytic.model_account_move_line +msgid "Journal Item" +msgstr "Movimento contabile" + +#. 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 "Categoria prodotto" + +#~ msgid "Product Template" +#~ msgstr "Modello prodotto" + +#~ msgid "Invoice Line" +#~ msgstr "Riga fattura" diff --git a/product_analytic/i18n/ja.po b/product_analytic/i18n/ja.po new file mode 100644 index 0000000..9447244 --- /dev/null +++ b/product_analytic/i18n/ja.po @@ -0,0 +1,51 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * product_analytic +# +# Translators: +# OCA Transbot , 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 , 2017\n" +"Language-Team: Japanese (https://www.transifex.com/oca/teams/23907/ja/)\n" +"Language: ja\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=1; plural=0;\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 "請求行" diff --git a/product_analytic/i18n/lt.po b/product_analytic/i18n/lt.po new file mode 100644 index 0000000..300e782 --- /dev/null +++ b/product_analytic/i18n/lt.po @@ -0,0 +1,52 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * product_analytic +# +# Translators: +# OCA Transbot , 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 , 2017\n" +"Language-Team: Lithuanian (https://www.transifex.com/oca/teams/23907/lt/)\n" +"Language: lt\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" +"%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 "Sąskaitos faktūros eilutė" diff --git a/product_analytic/i18n/mk.po b/product_analytic/i18n/mk.po new file mode 100644 index 0000000..1f75613 --- /dev/null +++ b/product_analytic/i18n/mk.po @@ -0,0 +1,51 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * product_analytic +# +# Translators: +# OCA Transbot , 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 , 2017\n" +"Language-Team: Macedonian (https://www.transifex.com/oca/teams/23907/mk/)\n" +"Language: mk\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=2; plural=(n % 10 == 1 && n % 100 != 11) ? 0 : 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 "Invoice Line" +#~ msgstr "Ставка од фактура" diff --git a/product_analytic/i18n/mn.po b/product_analytic/i18n/mn.po new file mode 100644 index 0000000..b69a91b --- /dev/null +++ b/product_analytic/i18n/mn.po @@ -0,0 +1,51 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * product_analytic +# +# Translators: +# OCA Transbot , 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 , 2017\n" +"Language-Team: Mongolian (https://www.transifex.com/oca/teams/23907/mn/)\n" +"Language: mn\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" + +#. 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 "Нэхэмжлэлийн мөр" diff --git a/product_analytic/i18n/nb.po b/product_analytic/i18n/nb.po new file mode 100644 index 0000000..f6d8856 --- /dev/null +++ b/product_analytic/i18n/nb.po @@ -0,0 +1,52 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * product_analytic +# +# Translators: +# OCA Transbot , 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 , 2017\n" +"Language-Team: Norwegian Bokmål (https://www.transifex.com/oca/teams/23907/" +"nb/)\n" +"Language: nb\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" + +#. 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 "Fakturalinje" diff --git a/product_analytic/i18n/nl.po b/product_analytic/i18n/nl.po new file mode 100644 index 0000000..4536e60 --- /dev/null +++ b/product_analytic/i18n/nl.po @@ -0,0 +1,51 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * product_analytic +# +# Translators: +# OCA Transbot , 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 , 2017\n" +"Language-Team: Dutch (https://www.transifex.com/oca/teams/23907/nl/)\n" +"Language: nl\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" + +#. 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 "Productcategorie" + +#~ msgid "Invoice Line" +#~ msgstr "Factuurregel" diff --git a/product_analytic/i18n/nl_BE.po b/product_analytic/i18n/nl_BE.po new file mode 100644 index 0000000..f5939ae --- /dev/null +++ b/product_analytic/i18n/nl_BE.po @@ -0,0 +1,52 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * product_analytic +# +# Translators: +# OCA Transbot , 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 , 2017\n" +"Language-Team: Dutch (Belgium) (https://www.transifex.com/oca/teams/23907/" +"nl_BE/)\n" +"Language: nl_BE\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" + +#. 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 "Factuurlijn" diff --git a/product_analytic/i18n/nl_NL.po b/product_analytic/i18n/nl_NL.po new file mode 100644 index 0000000..9096d21 --- /dev/null +++ b/product_analytic/i18n/nl_NL.po @@ -0,0 +1,52 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * product_analytic +# +# Translators: +# Peter Hageman , 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: Peter Hageman , 2017\n" +"Language-Team: Dutch (Netherlands) (https://www.transifex.com/oca/" +"teams/23907/nl_NL/)\n" +"Language: nl_NL\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" + +#. 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 "Factuurregel" diff --git a/product_analytic/i18n/pt.po b/product_analytic/i18n/pt.po new file mode 100644 index 0000000..5a087a4 --- /dev/null +++ b/product_analytic/i18n/pt.po @@ -0,0 +1,51 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * product_analytic +# +# Translators: +# OCA Transbot , 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 , 2017\n" +"Language-Team: Portuguese (https://www.transifex.com/oca/teams/23907/pt/)\n" +"Language: pt\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" + +#. 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 "Linha de fatura" diff --git a/product_analytic/i18n/pt_BR.po b/product_analytic/i18n/pt_BR.po new file mode 100644 index 0000000..65aab57 --- /dev/null +++ b/product_analytic/i18n/pt_BR.po @@ -0,0 +1,57 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * product_analytic +# +# Translators: +# OCA Transbot , 2017 +# falexandresilva , 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: 2023-10-13 12:42+0000\n" +"Last-Translator: Adriano Prado \n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/oca/teams/" +"23907/pt_BR/)\n" +"Language: pt_BR\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.17\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 "Conta Analítica de Despesa" + +#. 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 "Conta Analítica de Receita" + +#. module: product_analytic +#: model:ir.model,name:product_analytic.model_account_move_line +msgid "Journal Item" +msgstr "Item diário" + +#. module: product_analytic +#: model:ir.model,name:product_analytic.model_product_template +msgid "Product" +msgstr "Produto" + +#. module: product_analytic +#: model:ir.model,name:product_analytic.model_product_category +msgid "Product Category" +msgstr "Categoria do produto" + +#~ msgid "Product Template" +#~ msgstr "Modelo de Produto" + +#~ msgid "Invoice Line" +#~ msgstr "LInha da fatura" diff --git a/product_analytic/i18n/pt_PT.po b/product_analytic/i18n/pt_PT.po new file mode 100644 index 0000000..1cd5b50 --- /dev/null +++ b/product_analytic/i18n/pt_PT.po @@ -0,0 +1,52 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * product_analytic +# +# Translators: +# Pedro Castro Silva , 2016 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 8.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2016-12-16 03:41+0000\n" +"PO-Revision-Date: 2016-12-16 03:41+0000\n" +"Last-Translator: Pedro Castro Silva , 2016\n" +"Language-Team: Portuguese (Portugal) (https://www.transifex.com/oca/" +"teams/23907/pt_PT/)\n" +"Language: pt_PT\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" + +#. 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 "Linha da Fatura" diff --git a/product_analytic/i18n/ro.po b/product_analytic/i18n/ro.po new file mode 100644 index 0000000..3f08b22 --- /dev/null +++ b/product_analytic/i18n/ro.po @@ -0,0 +1,52 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * product_analytic +# +# Translators: +# OCA Transbot , 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 , 2017\n" +"Language-Team: Romanian (https://www.transifex.com/oca/teams/23907/ro/)\n" +"Language: ro\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%100>19)||((n%100==0)&&(n!=0)))?" +"2: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 "Invoice Line" +#~ msgstr "Linie factura" diff --git a/product_analytic/i18n/ru.po b/product_analytic/i18n/ru.po new file mode 100644 index 0000000..a953265 --- /dev/null +++ b/product_analytic/i18n/ru.po @@ -0,0 +1,53 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * product_analytic +# +# Translators: +# OCA Transbot , 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 , 2017\n" +"Language-Team: Russian (https://www.transifex.com/oca/teams/23907/ru/)\n" +"Language: ru\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=4; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n" +"%10<=4 && (n%100<12 || n%100>14) ? 1 : n%10==0 || (n%10>=5 && n%10<=9) || (n" +"%100>=11 && n%100<=14)? 2 : 3);\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 "Позиция счета" diff --git a/product_analytic/i18n/sl.po b/product_analytic/i18n/sl.po new file mode 100644 index 0000000..e771ed4 --- /dev/null +++ b/product_analytic/i18n/sl.po @@ -0,0 +1,55 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * product_analytic +# +# Translators: +# OCA Transbot , 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 , 2017\n" +"Language-Team: Slovenian (https://www.transifex.com/oca/teams/23907/sl/)\n" +"Language: sl\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=4; plural=(n%100==1 ? 0 : n%100==2 ? 1 : n%100==3 || n" +"%100==4 ? 2 : 3);\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 "Analitični konto stroškov" + +#. 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 "Analitični konto prihodkov" + +#. 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 "Kategorija proizvoda" + +#~ msgid "Product Template" +#~ msgstr "Predloga proizvoda" + +#~ msgid "Invoice Line" +#~ msgstr "Postavka računa" diff --git a/product_analytic/i18n/sv.po b/product_analytic/i18n/sv.po new file mode 100644 index 0000000..06e1c69 --- /dev/null +++ b/product_analytic/i18n/sv.po @@ -0,0 +1,51 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * product_analytic +# +# Translators: +# OCA Transbot , 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 , 2017\n" +"Language-Team: Swedish (https://www.transifex.com/oca/teams/23907/sv/)\n" +"Language: sv\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" + +#. 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 "Fakturarad" diff --git a/product_analytic/i18n/tr.po b/product_analytic/i18n/tr.po new file mode 100644 index 0000000..2e55932 --- /dev/null +++ b/product_analytic/i18n/tr.po @@ -0,0 +1,51 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * product_analytic +# +# Translators: +# Ozge Altinisik , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 8.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2016-12-30 23:06+0000\n" +"PO-Revision-Date: 2016-12-30 23:06+0000\n" +"Last-Translator: Ozge Altinisik , 2017\n" +"Language-Team: Turkish (https://www.transifex.com/oca/teams/23907/tr/)\n" +"Language: tr\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" + +#. 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 "Fatura kalemi" diff --git a/product_analytic/i18n/tr_TR.po b/product_analytic/i18n/tr_TR.po new file mode 100644 index 0000000..ed69355 --- /dev/null +++ b/product_analytic/i18n/tr_TR.po @@ -0,0 +1,55 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * product_analytic +# +# Translators: +# Ozge Altinisik , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 8.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2016-12-30 23:06+0000\n" +"PO-Revision-Date: 2016-12-30 23:06+0000\n" +"Last-Translator: Ozge Altinisik , 2017\n" +"Language-Team: Turkish (Turkey) (https://www.transifex.com/oca/teams/23907/" +"tr_TR/)\n" +"Language: tr_TR\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=1; plural=0;\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 "Ürün şablonu" + +#~ msgid "Invoice Line" +#~ msgstr "Fatura hizası" diff --git a/product_analytic/i18n/zh_CN.po b/product_analytic/i18n/zh_CN.po new file mode 100644 index 0000000..9af62b2 --- /dev/null +++ b/product_analytic/i18n/zh_CN.po @@ -0,0 +1,52 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * product_analytic +# +# Translators: +# OCA Transbot , 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 , 2017\n" +"Language-Team: Chinese (China) (https://www.transifex.com/oca/teams/23907/" +"zh_CN/)\n" +"Language: zh_CN\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=1; plural=0;\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 "发票明细" diff --git a/product_analytic/i18n/zh_TW.po b/product_analytic/i18n/zh_TW.po new file mode 100644 index 0000000..58dfad3 --- /dev/null +++ b/product_analytic/i18n/zh_TW.po @@ -0,0 +1,52 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * product_analytic +# +# Translators: +# OCA Transbot , 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 , 2017\n" +"Language-Team: Chinese (Taiwan) (https://www.transifex.com/oca/teams/23907/" +"zh_TW/)\n" +"Language: zh_TW\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=1; plural=0;\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 "發票明細" diff --git a/product_analytic/models/__init__.py b/product_analytic/models/__init__.py new file mode 100644 index 0000000..a1fa013 --- /dev/null +++ b/product_analytic/models/__init__.py @@ -0,0 +1,5 @@ +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). + +from . import account_move +from . import product +from . import product_category diff --git a/product_analytic/models/account_move.py b/product_analytic/models/account_move.py new file mode 100644 index 0000000..1859197 --- /dev/null +++ b/product_analytic/models/account_move.py @@ -0,0 +1,51 @@ +# 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). + +from odoo import api, models + +INV_TYPE_MAP = { + "out_invoice": "income", + "out_refund": "income", + "out_receipt": "income", + "in_invoice": "expense", + "in_refund": "expense", + "in_receipt": "expense", +} + + +class AccountMoveLine(models.Model): + _inherit = "account.move.line" + + @api.onchange("product_id") + def _inverse_product_id(self): + res = super()._inverse_product_id() + for line in self: + inv_type = line.move_id.move_type + if line.product_id and inv_type and inv_type != "entry": + ana_accounts = ( + line.product_id.product_tmpl_id._get_product_analytic_accounts() + ) + ana_account = ana_accounts[INV_TYPE_MAP[inv_type]] + line.analytic_distribution = ( + {ana_account.id: 100} if ana_account else False + ) + return res + + @api.model_create_multi + def create(self, vals_list): + for vals in vals_list: + inv_type = self.env["account.move"].browse([vals.get("move_id")]).move_type + if ( + vals.get("product_id") + and inv_type != "entry" + and not vals.get("analytic_distribution") + ): + product = self.env["product.product"].browse(vals.get("product_id")) + ana_accounts = product.product_tmpl_id._get_product_analytic_accounts() + ana_account = ana_accounts[INV_TYPE_MAP[inv_type]] + vals["analytic_distribution"] = ( + {ana_account.id: 100} if ana_account else False + ) + return super().create(vals_list) diff --git a/product_analytic/models/product.py b/product_analytic/models/product.py new file mode 100644 index 0000000..54a3cb4 --- /dev/null +++ b/product_analytic/models/product.py @@ -0,0 +1,30 @@ +# 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). + +from odoo import fields, models + + +class ProductTemplate(models.Model): + _inherit = "product.template" + + income_analytic_account_id = fields.Many2one( + "account.analytic.account", + string="Income Analytic Account", + company_dependent=True, + ) + expense_analytic_account_id = fields.Many2one( + "account.analytic.account", + string="Expense Analytic Account", + company_dependent=True, + ) + + def _get_product_analytic_accounts(self): + self.ensure_one() + return { + "income": self.income_analytic_account_id + or self.categ_id.income_analytic_account_id, + "expense": self.expense_analytic_account_id + or self.categ_id.expense_analytic_account_id, + } diff --git a/product_analytic/models/product_category.py b/product_analytic/models/product_category.py new file mode 100644 index 0000000..f2d24ea --- /dev/null +++ b/product_analytic/models/product_category.py @@ -0,0 +1,20 @@ +# 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). +from odoo import fields, models + + +class ProductCategory(models.Model): + _inherit = "product.category" + + income_analytic_account_id = fields.Many2one( + "account.analytic.account", + string="Income Analytic Account", + company_dependent=True, + ) + expense_analytic_account_id = fields.Many2one( + "account.analytic.account", + string="Expense Analytic Account", + company_dependent=True, + ) diff --git a/product_analytic/readme/CONTRIBUTORS.rst b/product_analytic/readme/CONTRIBUTORS.rst new file mode 100644 index 0000000..23eb2b6 --- /dev/null +++ b/product_analytic/readme/CONTRIBUTORS.rst @@ -0,0 +1,10 @@ +* Alexis de Lattre +* Javier Iniesta +* Luis M. Ontalba +* David Vidal +* Thore Baden +* Pimolnat Suntian +* Reyes4711 +* Denis Roussel + +* Darius Žižys diff --git a/product_analytic/readme/DESCRIPTION.rst b/product_analytic/readme/DESCRIPTION.rst new file mode 100644 index 0000000..2c3f6d4 --- /dev/null +++ b/product_analytic/readme/DESCRIPTION.rst @@ -0,0 +1,2 @@ +This module allows to define an analytic account at product or category level +for using it when creating invoices. diff --git a/product_analytic/readme/HISTORY.rst b/product_analytic/readme/HISTORY.rst new file mode 100644 index 0000000..2ee555b --- /dev/null +++ b/product_analytic/readme/HISTORY.rst @@ -0,0 +1,49 @@ +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. diff --git a/product_analytic/readme/USAGE.rst b/product_analytic/readme/USAGE.rst new file mode 100644 index 0000000..2a9f813 --- /dev/null +++ b/product_analytic/readme/USAGE.rst @@ -0,0 +1,7 @@ +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. diff --git a/product_analytic/static/description/icon.png b/product_analytic/static/description/icon.png new file mode 100644 index 0000000..3a0328b Binary files /dev/null and b/product_analytic/static/description/icon.png differ diff --git a/product_analytic/static/description/index.html b/product_analytic/static/description/index.html new file mode 100644 index 0000000..26cc934 --- /dev/null +++ b/product_analytic/static/description/index.html @@ -0,0 +1,498 @@ + + + + + + +Product Analytic + + + +
+

Product Analytic

+ + +

Beta License: AGPL-3 OCA/account-analytic Translate me on Weblate Try me on Runboat

+

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

+

Table of contents

+ +
+

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. +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.

+

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

+
+
+

Credits

+
+

Authors

+
    +
  • Akretion
  • +
  • Tecnativa
  • +
+
+
+

Contributors

+ +
+
+

Maintainers

+

This module is maintained by the OCA.

+Odoo Community Association +

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 project on GitHub.

+

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

+
+
+
+ + diff --git a/product_analytic/tests/__init__.py b/product_analytic/tests/__init__.py new file mode 100644 index 0000000..d72e9d6 --- /dev/null +++ b/product_analytic/tests/__init__.py @@ -0,0 +1,3 @@ +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). + +from . import test_account_move diff --git a/product_analytic/tests/test_account_move.py b/product_analytic/tests/test_account_move.py new file mode 100644 index 0000000..edab6d9 --- /dev/null +++ b/product_analytic/tests/test_account_move.py @@ -0,0 +1,242 @@ +# Copyright 2015 Antiun Ingenieria - Javier Iniesta +# Copyright 2017 Tecnativa - Luis Martínez +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). +from odoo import Command +from odoo.tests.common import TransactionCase + + +class TestAccountInvoiceLine(TransactionCase): + @classmethod + def setUpClass(cls): + super().setUpClass() + cls.env = cls.env(context=dict(cls.env.context, tracking_disable=True)) + cls.category = cls.env["product.category"].create( + { + "name": "Product Category", + } + ) + cls.default_plan = cls.env["account.analytic.plan"].create( + { + "name": "Default Plan", + "company_id": False, + } + ) + cls.analytic_account1 = cls.env["account.analytic.account"].create( + { + "name": "test analytic_account1", + "plan_id": cls.default_plan.id, + } + ) + cls.analytic_account2 = cls.env["account.analytic.account"].create( + { + "name": "test analytic_account2", + "plan_id": cls.default_plan.id, + } + ) + cls.product = cls.env["product.product"].create( + { + "name": "test product", + "lst_price": 50, + "standard_price": 50, + "income_analytic_account_id": cls.analytic_account1.id, + "expense_analytic_account_id": cls.analytic_account2.id, + } + ) + cls.product_1 = cls.env["product.product"].create( + { + "name": "test product 1", + "lst_price": 20, + "standard_price": 20, + "income_analytic_account_id": False, + "expense_analytic_account_id": False, + } + ) + cls.partner = cls.env["res.partner"].create({"name": "Test partner"}) + cls.journal_sale = cls.env["account.journal"].create( + {"name": "Test journal sale", "code": "SALE0", "type": "sale"} + ) + cls.journal_purchase = cls.env["account.journal"].create( + {"name": "Test journal purchase", "code": "PURCHASE0", "type": "purchase"} + ) + cls.account_in = cls.env["account.account"].create( + { + "name": "Test account IN", + "code": "TESTIN", + "account_type": "expense", + } + ) + cls.account_out = cls.env["account.account"].create( + { + "name": "Test account OUT", + "code": "TESTOUT", + "account_type": "income", + } + ) + + def test_create_in(self): + invoice = self.env["account.move"].create( + [ + { + "partner_id": self.partner.id, + "journal_id": self.journal_purchase.id, + "move_type": "in_invoice", + "invoice_line_ids": [ + Command.create( + { + "name": "Test line", + "quantity": 1, + "price_unit": 50, + "account_id": self.account_in.id, + "product_id": self.product.id, + } + ) + ], + } + ] + ) + invoice_line = invoice.invoice_line_ids[0] + analytic_account_id = [key for key in invoice_line.analytic_distribution] + self.assertEqual( + int(analytic_account_id[0]), + self.product.expense_analytic_account_id.id, + ) + + def test_create_in_without(self): + # Create an incoming invoice without analytic + invoice = self.env["account.move"].create( + [ + { + "partner_id": self.partner.id, + "journal_id": self.journal_purchase.id, + "move_type": "in_invoice", + "invoice_line_ids": [ + Command.create( + { + "name": "Test line", + "quantity": 1, + "price_unit": 50, + "account_id": self.account_in.id, + "product_id": self.product_1.id, + } + ) + ], + } + ] + ) + invoice_line = invoice.invoice_line_ids[0] + self.assertFalse(invoice_line.analytic_distribution) + + def test_create_in_category(self): + # Create an incoming invoice with analytic on category + self.category.expense_analytic_account_id = self.analytic_account2 + self.product_1.categ_id = self.category + invoice = self.env["account.move"].create( + [ + { + "partner_id": self.partner.id, + "journal_id": self.journal_purchase.id, + "move_type": "in_invoice", + "invoice_line_ids": [ + Command.create( + { + "name": "Test line", + "quantity": 1, + "price_unit": 50, + "account_id": self.account_in.id, + "product_id": self.product_1.id, + } + ) + ], + } + ] + ) + invoice_line = invoice.invoice_line_ids[0] + analytic_account_id = [key for key in invoice_line.analytic_distribution] + self.assertEqual( + int(analytic_account_id[0]), + self.analytic_account2.id, + ) + + def test_create_out(self): + invoice = self.env["account.move"].create( + [ + { + "partner_id": self.partner.id, + "journal_id": self.journal_sale.id, + "move_type": "out_invoice", + "invoice_line_ids": [ + Command.create( + { + "name": "Test line", + "quantity": 1, + "price_unit": 50, + "account_id": self.account_out.id, + "product_id": self.product.id, + } + ) + ], + } + ] + ) + invoice_line = invoice.invoice_line_ids[0] + analytic_account_id = [key for key in invoice_line.analytic_distribution] + self.assertEqual( + int(analytic_account_id[0]), + self.product.income_analytic_account_id.id, + ) + + def test_create_out_without(self): + # Create outgoing invoice without analytic + invoice = self.env["account.move"].create( + [ + { + "partner_id": self.partner.id, + "journal_id": self.journal_sale.id, + "move_type": "out_invoice", + "invoice_line_ids": [ + Command.create( + { + "name": "Test line", + "quantity": 1, + "price_unit": 50, + "account_id": self.account_out.id, + "product_id": self.product_1.id, + } + ) + ], + } + ] + ) + invoice_line = invoice.invoice_line_ids[0] + self.assertFalse(invoice_line.analytic_distribution) + + def test_create_out_category(self): + # Create outgoing invoice without analytic + self.category.income_analytic_account_id = self.analytic_account2 + self.product_1.categ_id = self.category + invoice = self.env["account.move"].create( + [ + { + "partner_id": self.partner.id, + "journal_id": self.journal_sale.id, + "move_type": "out_invoice", + "invoice_line_ids": [ + Command.create( + { + "name": "Test line", + "quantity": 1, + "price_unit": 50, + "account_id": self.account_out.id, + "product_id": self.product_1.id, + } + ) + ], + } + ] + ) + invoice_line = invoice.invoice_line_ids[0] + analytic_account_id = [key for key in invoice_line.analytic_distribution] + self.assertEqual( + int(analytic_account_id[0]), + self.analytic_account2.id, + ) diff --git a/product_analytic/views/product_view.xml b/product_analytic/views/product_view.xml new file mode 100644 index 0000000..32c5a12 --- /dev/null +++ b/product_analytic/views/product_view.xml @@ -0,0 +1,33 @@ + + + + + product_analytic_account.product.template.form + product.template + + + + + + + + + + + + product_analytic_account.product.categ.form + product.category + + + + + + + + + + +