Skip to content

Commit

Permalink
[MIG] account_invoice_tax_required from 15.0 to 16.0
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomasBinsfeld committed Oct 10, 2022
1 parent 0b5bb83 commit b1aa18c
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 7 deletions.
2 changes: 1 addition & 1 deletion account_invoice_tax_required/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
{
"name": "Tax required in invoice",
"version": "15.0.1.0.1",
"version": "16.0.1.0.0",
"author": "Camptocamp,Tecnativa,Punt Sistemes, " "Odoo Community Association (OCA)",
"website": "https://github.com/OCA/account-invoicing",
"category": "Localization / Accounting",
Expand Down
2 changes: 1 addition & 1 deletion account_invoice_tax_required/models/account_move.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def _test_invoice_line_tax(self):
errors = []
error_template = _("Invoice has a line with product %s with no taxes")
for invoice_line in self.mapped("invoice_line_ids").filtered(
lambda x: x.display_type is False
lambda x: x.display_type not in ("line_section", "line_note")
):
if not invoice_line.tax_ids:
error_string = error_template % (invoice_line.name)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,13 @@ def setUp(self):
{"code": "test", "name": "test", "type": "sale"}
)
self.partner = self.env.ref("base.res_partner_3")
account_user_type = self.env.ref("account.data_account_type_receivable")

self.account_account = self.env["account.account"]
self.account_rec1_id = self.account_account.create(
dict(
code="cust_acc",
code="20000",
name="customer account",
user_type_id=account_user_type.id,
account_type="asset_receivable",
reconcile=True,
)
)
Expand Down Expand Up @@ -53,15 +52,16 @@ def setUp(self):
"account_id": self.account_account.search(
[
(
"user_type_id",
"account_type",
"=",
self.env.ref("account.data_account_type_revenue").id,
"income",
)
],
limit=1,
).id,
"name": "product test 5",
"price_unit": 100.00,
"tax_ids": False,
},
)
]
Expand Down
6 changes: 6 additions & 0 deletions setup/account_invoice_tax_required/setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import setuptools

setuptools.setup(
setup_requires=['setuptools-odoo'],
odoo_addon=True,
)

0 comments on commit b1aa18c

Please sign in to comment.