diff --git a/hr_expense_tax_adjust/README.rst b/hr_expense_tax_adjust/README.rst new file mode 100644 index 000000000..ddc6637a4 --- /dev/null +++ b/hr_expense_tax_adjust/README.rst @@ -0,0 +1,103 @@ +====================== +Expense Tax Adjustment +====================== + +.. + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! This file is generated by oca-gen-addon-readme !! + !! changes will be overwritten. !! + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! source digest: sha256:a785a390676dac18532d6f1ca10c9d570c7b48536f299fa053dc7358a1961c01 + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + +.. |badge1| image:: https://img.shields.io/badge/maturity-Alpha-red.png + :target: https://odoo-community.org/page/development-status + :alt: Alpha +.. |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%2Fhr--expense-lightgray.png?logo=github + :target: https://github.com/OCA/hr-expense/tree/16.0/hr_expense_tax_adjust + :alt: OCA/hr-expense +.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png + :target: https://translation.odoo-community.org/projects/hr-expense-16-0/hr-expense-16-0-hr_expense_tax_adjust + :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/hr-expense&target_branch=16.0 + :alt: Try me on Runboat + +|badge1| |badge2| |badge3| |badge4| |badge5| + +This module allows users to edit taxes on the Expense to ensure accurate accounting entries in case of rounding differences. +Users must have the "Show Accounting Features - Readonly" access rights to edit the necessary fields for tax adjustment. + +.. IMPORTANT:: + This is an alpha version, the data model and design can change at any time without warning. + Only for development or testing purpose, do not use in production. + `More details on development status `_ + +**Table of contents** + +.. contents:: + :local: + +Usage +===== + +To use this module, you can follow these steps: + +#. Go to *Expenses > My Expenses > My Expenses > Create*. +#. Choose a product from the list and add applicable taxes. +#. If the calculated price tax is incorrect, edit the value by check "Adj." to reflect the correct amount. +#. Follow the normal process for submitting and posting the journal entry. + +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 +~~~~~~~ + +* Ecosoft + +Contributors +~~~~~~~~~~~~ + +* `Ecosoft `__: + + * Pimolnat Suntian + * Saran Lim. + +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. + +.. |maintainer-ps-tubtim| image:: https://github.com/ps-tubtim.png?size=40px + :target: https://github.com/ps-tubtim + :alt: ps-tubtim + +Current `maintainer `__: + +|maintainer-ps-tubtim| + +This module is part of the `OCA/hr-expense `_ project on GitHub. + +You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/hr_expense_tax_adjust/__init__.py b/hr_expense_tax_adjust/__init__.py new file mode 100644 index 000000000..69f7babdf --- /dev/null +++ b/hr_expense_tax_adjust/__init__.py @@ -0,0 +1,3 @@ +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +from . import models diff --git a/hr_expense_tax_adjust/__manifest__.py b/hr_expense_tax_adjust/__manifest__.py new file mode 100644 index 000000000..0446a211b --- /dev/null +++ b/hr_expense_tax_adjust/__manifest__.py @@ -0,0 +1,17 @@ +# Copyright 2023 Ecosoft Co., Ltd. (http://ecosoft.co.th) +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +{ + "name": "Expense Tax Adjustment", + "version": "16.0.1.0.0", + "author": "Ecosoft, Odoo Community Association (OCA)", + "summary": "Allow to edit tax amount on expenses", + "website": "https://github.com/OCA/hr-expense", + "license": "AGPL-3", + "depends": ["hr_expense"], + "category": "Human Resources/Expenses", + "data": ["views/hr_expense_views.xml"], + "installable": True, + "maintainers": ["ps-tubtim"], + "development_status": "Alpha", +} diff --git a/hr_expense_tax_adjust/i18n/hr_expense_tax_adjust.pot b/hr_expense_tax_adjust/i18n/hr_expense_tax_adjust.pot new file mode 100644 index 000000000..2304f243d --- /dev/null +++ b/hr_expense_tax_adjust/i18n/hr_expense_tax_adjust.pot @@ -0,0 +1,34 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * hr_expense_tax_adjust +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 15.0\n" +"Report-Msgid-Bugs-To: \n" +"Last-Translator: \n" +"Language-Team: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: \n" + +#. module: hr_expense_tax_adjust +#: model:ir.model,name:hr_expense_tax_adjust.model_hr_expense +msgid "Expense" +msgstr "" + +#. module: hr_expense_tax_adjust +#: model:ir.model.fields,field_description:hr_expense_tax_adjust.field_hr_expense__price_tax +msgid "Price Tax" +msgstr "" + +#. module: hr_expense_tax_adjust +#: model:ir.model.fields,field_description:hr_expense_tax_adjust.field_hr_expense__tax_adjust +msgid "Tax Adjust" +msgstr "" + +#. module: hr_expense_tax_adjust +#: model:ir.model.fields,help:hr_expense_tax_adjust.field_hr_expense__tax_adjust +msgid "trigger line with adjust tax" +msgstr "" diff --git a/hr_expense_tax_adjust/i18n/it.po b/hr_expense_tax_adjust/i18n/it.po new file mode 100644 index 000000000..279c1a1fb --- /dev/null +++ b/hr_expense_tax_adjust/i18n/it.po @@ -0,0 +1,37 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * hr_expense_tax_adjust +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 15.0\n" +"Report-Msgid-Bugs-To: \n" +"PO-Revision-Date: 2024-02-16 18:34+0000\n" +"Last-Translator: mymage \n" +"Language-Team: none\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: hr_expense_tax_adjust +#: model:ir.model,name:hr_expense_tax_adjust.model_hr_expense +msgid "Expense" +msgstr "Spesa" + +#. module: hr_expense_tax_adjust +#: model:ir.model.fields,field_description:hr_expense_tax_adjust.field_hr_expense__price_tax +msgid "Price Tax" +msgstr "Valorizzare imposta" + +#. module: hr_expense_tax_adjust +#: model:ir.model.fields,field_description:hr_expense_tax_adjust.field_hr_expense__tax_adjust +msgid "Tax Adjust" +msgstr "Aggiustamento imposta" + +#. module: hr_expense_tax_adjust +#: model:ir.model.fields,help:hr_expense_tax_adjust.field_hr_expense__tax_adjust +msgid "trigger line with adjust tax" +msgstr "attiva riga con imposta aggiustamento" diff --git a/hr_expense_tax_adjust/models/__init__.py b/hr_expense_tax_adjust/models/__init__.py new file mode 100644 index 000000000..650cabd17 --- /dev/null +++ b/hr_expense_tax_adjust/models/__init__.py @@ -0,0 +1,5 @@ +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +from . import hr_expense +from . import account_move_line +from . import account_tax diff --git a/hr_expense_tax_adjust/models/account_move_line.py b/hr_expense_tax_adjust/models/account_move_line.py new file mode 100644 index 000000000..bf02b53ec --- /dev/null +++ b/hr_expense_tax_adjust/models/account_move_line.py @@ -0,0 +1,23 @@ +from odoo import api, models + + +class AccountMoveLine(models.Model): + _inherit = "account.move.line" + + @api.depends("quantity", "discount", "price_unit", "tax_ids", "currency_id") + def _compute_totals(self): + """Update amount untaxed for tax adjust expense""" + ml_expense = self.filtered(lambda l: l.expense_id.tax_adjust) + res = super()._compute_totals() + for line in ml_expense: + expense = line.expense_id + if line.tax_line_id: + line.tax_base_amount = ( + expense.total_amount_company - expense.amount_tax_company + ) + line.amount_currency = expense.amount_tax_company + else: + line.price_subtotal = ( + expense.total_amount_company - expense.amount_tax_company + ) + return res diff --git a/hr_expense_tax_adjust/models/account_tax.py b/hr_expense_tax_adjust/models/account_tax.py new file mode 100644 index 000000000..dd8056b2e --- /dev/null +++ b/hr_expense_tax_adjust/models/account_tax.py @@ -0,0 +1,20 @@ +from odoo import api, models + + +class AccountTax(models.Model): + _inherit = "account.tax" + + @api.model + def _prepare_tax_totals(self, base_lines, currency, tax_lines=None): + """Update amount untaxed for tax adjust expense""" + res = super()._prepare_tax_totals(base_lines, currency, tax_lines) + amount_untaxed = 0.0 + for base_line in base_lines: + expense = base_line["record"].expense_id + if expense.tax_adjust: + amount_untaxed += ( + expense.total_amount_company - expense.amount_tax_company + ) + if amount_untaxed: + res["amount_untaxed"] = amount_untaxed + return res diff --git a/hr_expense_tax_adjust/models/hr_expense.py b/hr_expense_tax_adjust/models/hr_expense.py new file mode 100644 index 000000000..cb8c1cee2 --- /dev/null +++ b/hr_expense_tax_adjust/models/hr_expense.py @@ -0,0 +1,70 @@ +# Copyright 2023 Ecosoft Co., Ltd. (http://ecosoft.co.th) +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +from odoo import api, fields, models + + +class HrExpense(models.Model): + _inherit = "hr.expense" + + tax_adjust = fields.Boolean( + copy=False, + help="trigger line with adjust tax", + ) + + @api.depends( + "currency_rate", + "total_amount", + "tax_ids", + "product_id", + "employee_id.user_id.partner_id", + "quantity", + "amount_tax_company", + ) + def _compute_total_amount_company(self): + """Update amount_tax when adjust tax""" + expense_tax_adjust = self.filtered(lambda l: l.tax_adjust) + res = super( + HrExpense, self - expense_tax_adjust + )._compute_total_amount_company() + for expense in expense_tax_adjust: + base_lines = [ + expense._convert_to_tax_base_line_dict( + price_unit=expense.total_amount * expense.currency_rate, + currency=expense.company_currency_id, + ) + ] + taxes_totals = self.env["account.tax"]._compute_taxes(base_lines)["totals"][ + expense.company_currency_id + ] + expense.total_amount_company = ( + taxes_totals["amount_untaxed"] + taxes_totals["amount_tax"] + ) + # Use same as adjust tax + if expense.same_currency: + amount_tax_company = expense.amount_tax + # Convert amount_tax to company currency + else: + amount_tax_company = expense.currency_id._convert( + expense.amount_tax, + expense.company_id.currency_id, + expense.company_id, + expense.date, + ) + expense.amount_tax_company = amount_tax_company + return res + + @api.depends("total_amount", "tax_ids", "currency_id") + def _compute_amount_tax(self): + """Do not update amount_tax when adjust tax""" + expense_tax_adjust = self.filtered(lambda l: l.tax_adjust) + res = super(HrExpense, self - expense_tax_adjust)._compute_amount_tax() + for expense in expense_tax_adjust: + base_lines = [ + expense._convert_to_tax_base_line_dict(price_unit=expense.total_amount) + ] + taxes_totals = self.env["account.tax"]._compute_taxes(base_lines)["totals"][ + expense.currency_id + ] + expense.untaxed_amount = taxes_totals["amount_untaxed"] + return res diff --git a/hr_expense_tax_adjust/readme/CONTRIBUTORS.rst b/hr_expense_tax_adjust/readme/CONTRIBUTORS.rst new file mode 100644 index 000000000..8b17ebf09 --- /dev/null +++ b/hr_expense_tax_adjust/readme/CONTRIBUTORS.rst @@ -0,0 +1,4 @@ +* `Ecosoft `__: + + * Pimolnat Suntian + * Saran Lim. diff --git a/hr_expense_tax_adjust/readme/DESCRIPTION.rst b/hr_expense_tax_adjust/readme/DESCRIPTION.rst new file mode 100644 index 000000000..c627c2116 --- /dev/null +++ b/hr_expense_tax_adjust/readme/DESCRIPTION.rst @@ -0,0 +1,2 @@ +This module allows users to edit taxes on the Expense to ensure accurate accounting entries in case of rounding differences. +Users must have the "Show Accounting Features - Readonly" access rights to edit the necessary fields for tax adjustment. diff --git a/hr_expense_tax_adjust/readme/USAGE.rst b/hr_expense_tax_adjust/readme/USAGE.rst new file mode 100644 index 000000000..6cdc81873 --- /dev/null +++ b/hr_expense_tax_adjust/readme/USAGE.rst @@ -0,0 +1,6 @@ +To use this module, you can follow these steps: + +#. Go to *Expenses > My Expenses > My Expenses > Create*. +#. Choose a product from the list and add applicable taxes. +#. If the calculated price tax is incorrect, edit the value by check "Adj." to reflect the correct amount. +#. Follow the normal process for submitting and posting the journal entry. diff --git a/hr_expense_tax_adjust/static/description/icon.png b/hr_expense_tax_adjust/static/description/icon.png new file mode 100644 index 000000000..3a0328b51 Binary files /dev/null and b/hr_expense_tax_adjust/static/description/icon.png differ diff --git a/hr_expense_tax_adjust/static/description/index.html b/hr_expense_tax_adjust/static/description/index.html new file mode 100644 index 000000000..4307e9084 --- /dev/null +++ b/hr_expense_tax_adjust/static/description/index.html @@ -0,0 +1,444 @@ + + + + + +Expense Tax Adjustment + + + +
+

Expense Tax Adjustment

+ + +

Alpha License: AGPL-3 OCA/hr-expense Translate me on Weblate Try me on Runboat

+

This module allows users to edit taxes on the Expense to ensure accurate accounting entries in case of rounding differences. +Users must have the “Show Accounting Features - Readonly” access rights to edit the necessary fields for tax adjustment.

+
+

Important

+

This is an alpha version, the data model and design can change at any time without warning. +Only for development or testing purpose, do not use in production. +More details on development status

+
+

Table of contents

+ +
+

Usage

+

To use this module, you can follow these steps:

+
    +
  1. Go to Expenses > My Expenses > My Expenses > Create.
  2. +
  3. Choose a product from the list and add applicable taxes.
  4. +
  5. If the calculated price tax is incorrect, edit the value by check “Adj.” to reflect the correct amount.
  6. +
  7. Follow the normal process for submitting and posting the journal entry.
  8. +
+
+
+

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

+
    +
  • Ecosoft
  • +
+
+
+

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.

+

Current maintainer:

+

ps-tubtim

+

This module is part of the OCA/hr-expense project on GitHub.

+

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

+
+
+
+ + diff --git a/hr_expense_tax_adjust/tests/__init__.py b/hr_expense_tax_adjust/tests/__init__.py new file mode 100644 index 000000000..76864861d --- /dev/null +++ b/hr_expense_tax_adjust/tests/__init__.py @@ -0,0 +1,3 @@ +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). + +from . import test_hr_expense_tax_adjust diff --git a/hr_expense_tax_adjust/tests/test_hr_expense_tax_adjust.py b/hr_expense_tax_adjust/tests/test_hr_expense_tax_adjust.py new file mode 100644 index 000000000..54372414c --- /dev/null +++ b/hr_expense_tax_adjust/tests/test_hr_expense_tax_adjust.py @@ -0,0 +1,151 @@ +# Copyright 2023 Ecosoft Co., Ltd. (http://ecosoft.co.th) +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +from odoo.tests.common import Form, TransactionCase + + +class TestHrExpenseTaxAdjust(TransactionCase): + @classmethod + def setUpClass(cls): + super().setUpClass() + cls.expense = cls.env["hr.expense"] + cls.sheet = cls.env["hr.expense.sheet"] + cls.employee_admin = cls.env.ref("hr.employee_admin") + cls.expense_product = cls.env.ref("hr_expense.expense_product_meal") + cls.eur_currency = cls.env.ref("base.EUR") + cls.usd_currency = cls.env.ref("base.USD") + cls.company = cls.env.ref("base.main_company") + cls.company.currency_id = cls.usd_currency + + cls.tax_purchase_include = cls.env["account.tax"].create( + { + "name": "Test tax 10% (include)", + "type_tax_use": "purchase", + "amount": 10.00, + "price_include": True, + } + ) + cls.tax_purchase = cls.env["account.tax"].create( + { + "name": "Test tax 10%", + "type_tax_use": "purchase", + "amount": 10.00, + } + ) + + def test_01_expense_adjust_tax_include_tax(self): + expense = self.expense.create( + { + "name": "Expense test", + "employee_id": self.employee_admin.id, + "product_id": self.expense_product.id, + "total_amount": 100.0, + "tax_ids": [(6, 0, [self.tax_purchase_include.id])], + } + ) + self.assertEqual(expense.total_amount, 100) + self.assertFalse(expense.tax_adjust) + self.assertEqual(expense.amount_tax, 9.09) # (100 * 10) / 110 + # Test increase taxes adjust + with Form(expense) as ex: + ex.tax_adjust = True + ex.amount_tax = 10.0 + ex.save() + self.assertTrue(expense.tax_adjust) + self.assertEqual(expense.amount_tax, 10.0) + # Create expense sheet + sheet = self.sheet.create( + { + "employee_id": self.employee_admin.id, + "name": "Expense test", + "expense_line_ids": [(6, 0, expense.id)], + } + ) + sheet._compute_amount() + self.assertEqual(sheet.state, "draft") + self.assertEqual(sheet.total_amount, 100.0) + self.assertEqual(sheet.total_amount_taxes, 10.0) + self.assertEqual(sheet.untaxed_amount, 90.0) + sheet.action_submit_sheet() + self.assertEqual(sheet.state, "submit") + sheet.approve_expense_sheets() + self.assertEqual(sheet.state, "approve") + sheet.action_sheet_move_create() + self.assertEqual(sheet.state, "post") + self.assertTrue(sheet.account_move_id) + self.assertEqual(len(sheet.account_move_id.line_ids), 3) + self.assertEqual(sheet.account_move_id.amount_residual, 100.0) + # Before adjust tax, source move line must accounting debit = 90.91 + # After adjust tax, it change accounting debit = 90 and tax debit = 10 + self.assertEqual( + sheet.account_move_id.line_ids.filtered( + lambda line: line.display_type == "product" + ).debit, + 90.0, + ) + self.assertEqual( + sheet.account_move_id.line_ids.filtered( + lambda line: line.display_type == "tax" + ).debit, + 10.0, + ) + + def test_02_expense_adjust_tax_multi_currency(self): + expense = self.expense.create( + { + "name": "Expense test", + "employee_id": self.employee_admin.id, + "product_id": self.expense_product.id, + "currency_id": self.eur_currency.id, + "total_amount": 100.0, + "tax_ids": [(6, 0, [self.tax_purchase_include.id])], + } + ) + self.assertEqual(expense.total_amount, 100) + self.assertFalse(expense.tax_adjust) + self.assertEqual(expense.amount_tax, 9.09) # (100 * 10) / 110 + self.assertAlmostEqual(expense.amount_tax_company, 13.9) # (152.89 * 10) / 110 + # Test increase taxes adjust + with Form(expense) as ex: + ex.tax_adjust = True + ex.amount_tax = 10.0 + ex.save() + self.assertTrue(expense.tax_adjust) + self.assertEqual(expense.amount_tax, 10.0) + self.assertAlmostEqual(expense.amount_tax_company, 15.29) + # Create expense sheet + sheet = self.sheet.create( + { + "employee_id": self.employee_admin.id, + "name": "Expense test", + "expense_line_ids": [(6, 0, expense.id)], + } + ) + sheet._compute_amount() + self.assertEqual(sheet.state, "draft") + self.assertAlmostEqual(sheet.total_amount, 152.89) # 1 EUR = 1.5289 USD + self.assertAlmostEqual(sheet.total_amount_taxes, 15.29) + self.assertAlmostEqual(sheet.untaxed_amount, 137.6) + sheet.action_submit_sheet() + self.assertEqual(sheet.state, "submit") + sheet.approve_expense_sheets() + self.assertEqual(sheet.state, "approve") + sheet.action_sheet_move_create() + self.assertEqual(sheet.state, "post") + self.assertTrue(sheet.account_move_id) + self.assertEqual(len(sheet.account_move_id.line_ids), 3) + self.assertAlmostEqual(sheet.account_move_id.amount_residual, 152.89) + # Before adjust tax, source move line must accounting debit = 138.99 + # After adjust tax, it change accounting debit = 137.6 and tax debit = 15.29 + self.assertAlmostEqual( + sheet.account_move_id.line_ids.filtered( + lambda line: line.display_type == "product" + ).debit, + 137.6, + ) + self.assertAlmostEqual( + sheet.account_move_id.line_ids.filtered( + lambda line: line.display_type == "tax" + ).debit, + 15.29, + ) diff --git a/hr_expense_tax_adjust/views/hr_expense_views.xml b/hr_expense_tax_adjust/views/hr_expense_views.xml new file mode 100644 index 000000000..80f9cac88 --- /dev/null +++ b/hr_expense_tax_adjust/views/hr_expense_views.xml @@ -0,0 +1,21 @@ + + + hr.expense + + + + Adj. + + + + { + 'readonly': ['|', ('tax_adjust', '=', False), ('state', '!=', 'draft')], + } + + + + + diff --git a/setup/hr_expense_tax_adjust/odoo/addons/hr_expense_tax_adjust b/setup/hr_expense_tax_adjust/odoo/addons/hr_expense_tax_adjust new file mode 120000 index 000000000..5b2f17771 --- /dev/null +++ b/setup/hr_expense_tax_adjust/odoo/addons/hr_expense_tax_adjust @@ -0,0 +1 @@ +../../../../hr_expense_tax_adjust \ No newline at end of file diff --git a/setup/hr_expense_tax_adjust/setup.py b/setup/hr_expense_tax_adjust/setup.py new file mode 100644 index 000000000..28c57bb64 --- /dev/null +++ b/setup/hr_expense_tax_adjust/setup.py @@ -0,0 +1,6 @@ +import setuptools + +setuptools.setup( + setup_requires=['setuptools-odoo'], + odoo_addon=True, +)