Skip to content

Commit

Permalink
fixup! [MIG] account_ecotax_sale: Migration to 17.0
Browse files Browse the repository at this point in the history
  • Loading branch information
gurneyalex committed Oct 14, 2024
1 parent cd39b44 commit 62c1ad6
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 8 deletions.
3 changes: 2 additions & 1 deletion account_ecotax_sale/models/sale_order_line.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,10 @@ def _compute_ecotax(self):

@api.depends("product_id", "company_id")
def _compute_tax_id(self):
super()._compute_tax_id()
res = super()._compute_tax_id()
for line in self:
line.tax_id |= line._get_computed_ecotaxes()
return res

def _get_computed_ecotaxes(self):
self.ensure_one()
Expand Down
2 changes: 1 addition & 1 deletion account_ecotax_sale/tests/test_sale_ecotax.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
class TestsaleEcotax(AccountTestInvoicingCommon):
@classmethod
def setUpClass(cls, chart_template_ref="l10n_fr.l10n_fr_pcg_chart_template"):
super(TestsaleEcotax, cls).setUpClass(chart_template_ref)
super().setUpClass(chart_template_ref)

cls.ecotax_classification = cls.env["account.ecotax.classification"]
cls.ecotax_classification1 = cls.ecotax_classification.create(
Expand Down
6 changes: 1 addition & 5 deletions account_ecotax_sale/views/sale_view.xml
Original file line number Diff line number Diff line change
Expand Up @@ -108,11 +108,7 @@
<field name="sequence" invisible="1" />
</group>
</group>
<label
for="name"
string="Description"
invisible="display_type"
/>
<label for="name" string="Description" invisible="display_type" />
<label
for="name"
string="Section Name (eg. Products, Services)"
Expand Down
1 change: 0 additions & 1 deletion test-requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
account_ecotax @ git+https://github.com/OCA/account-fiscal-rule.git@refs/pull/450/head#subdirectory=account_ecotax

0 comments on commit 62c1ad6

Please sign in to comment.