Skip to content

Commit

Permalink
[MIG]l10n_es_aeat_mod390_oss: Migration to 15.0
Browse files Browse the repository at this point in the history
  • Loading branch information
manuelregidor committed Jun 17, 2022
1 parent fb0b979 commit e0b2448
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
4 changes: 2 additions & 2 deletions l10n_es_aeat_mod390_oss/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@

{
"name": "AEAT modelo 390 - OSS",
"version": "14.0.1.0.0",
"version": "15.0.1.0.0",
"category": "Accounting",
"author": "Sygel, Odoo Community Association (OCA)",
"website": "https://github.com/OCA/l10n-spain",
"license": "AGPL-3",
"depends": ["l10n_es_aeat_mod390", "l10n_eu_oss"],
"depends": ["l10n_es_aeat_mod390", "l10n_eu_oss_oca"],
"data": ["data/tax_code_map_mod390_data.xml"],
"installable": True,
"autoinstall": True,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ def setUpClass(cls):
}
)
wizard.generate_eu_oss_taxes()
fr_fiscal_position = cls.env["account.fiscal.position"].search(
[("country_id", "=", cls.oss_country.id), ("oss_oca", "=", True)], limit=1
)
cls.taxes_sale = {}
cls.oss_tax = cls.env["account.tax"].search(
[
Expand All @@ -38,7 +41,10 @@ def setUpClass(cls):
"quantity": 1,
"tax_ids": [(4, cls.oss_tax.id)],
}
extra_vals = {"invoice_line_ids": [(0, 0, line_data)]}
extra_vals = {
"invoice_line_ids": [(0, 0, line_data)],
"fiscal_position_id": fr_fiscal_position.id,
}
cls._invoice_sale_create("2021-01-01", extra_vals)
cls._invoice_sale_create("2021-12-31", extra_vals)
# Create reports
Expand Down

0 comments on commit e0b2448

Please sign in to comment.