Skip to content

Commit

Permalink
des: adapt to changes in intrastat_base
Browse files Browse the repository at this point in the history
In intrastat_base, the 'intrastat' field of account.fiscal.position is
now a selection field with 3 possible values: b2b/b2c/no
  • Loading branch information
alexis-via committed Feb 8, 2023
1 parent 6a929b3 commit 33be55a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions l10n_fr_intrastat_service/models/intrastat_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,8 +152,7 @@ def _prepare_domain(self):
("invoice_date", "<=", self.end_date),
("invoice_date", ">=", self.start_date),
("state", "=", "posted"),
("intrastat_fiscal_position", "=", True),
("fiscal_position_id.vat_required", "=", True),
("intrastat_fiscal_position", "=", "b2b"),
("company_id", "=", self.company_id.id),
]
return domain
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def setUpClass(cls):
cls.fp_eu_b2b = cls.env["account.fiscal.position"].create(
{
"name": "EU B2B",
"intrastat": True,
"intrastat": "b2b",
"vat_required": True,
}
)
Expand Down

0 comments on commit 33be55a

Please sign in to comment.