Skip to content

Commit

Permalink
[WIP] l10n_de_tax_statement: Migration to 16.0
Browse files Browse the repository at this point in the history
  • Loading branch information
dsolanki-initos committed Jul 31, 2023
1 parent 6b1de5a commit 336bf55
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 24 deletions.
1 change: 1 addition & 0 deletions l10n_de_tax_statement/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ Contributors
* Andrea Stirpe <[email protected]>
* Thorsten Vocks <[email protected]>
* Helly kapatel <[email protected]>
* Dhara Solanki <[email protected]>

Maintainers
~~~~~~~~~~~
Expand Down
8 changes: 6 additions & 2 deletions l10n_de_tax_statement/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

{
"name": "German VAT Statement",
"version": "14.0.1.0.0",
"version": "16.0.1.0.0",
"category": "Localization",
"license": "AGPL-3",
"author": "Onestein, Odoo Community Association (OCA)",
Expand All @@ -14,11 +14,15 @@
"security/ir.model.access.csv",
"security/tax_statement_security_rule.xml",
"data/paperformat.xml",
"templates/assets.xml",
"views/l10n_de_tax_statement_view.xml",
"views/report_tax_statement.xml",
"views/res_config_settings.xml",
"report/report_tax_statement.xml",
],
"assets": {
"web.qunit_suite_tests": [
"/l10n_de_tax_statement/static/src/css/report.css",
],
},
"installable": True,
}
4 changes: 2 additions & 2 deletions l10n_de_tax_statement/models/l10n_de_tax_statement.py
Original file line number Diff line number Diff line change
Expand Up @@ -389,7 +389,7 @@ def post(self):
self.unreported_move_ids.flush()
move_lines = self._compute_move_lines()
move_lines.move_id.write({"l10n_de_tax_statement_id": self.id})
move_lines.move_id.flush()
move_lines.move_id.flush_model()

def _get_move_lines_domain(self):
domain = self._init_move_line_domain()
Expand Down Expand Up @@ -451,7 +451,7 @@ def unlink(self):
)
if statement.state == "final":
raise UserError(_("You cannot delete a statement set as final!"))
super().unlink()
return super().unlink()

@api.depends("line_ids.tax")
def _compute_tax_total(self):
Expand Down
2 changes: 1 addition & 1 deletion l10n_de_tax_statement/models/l10n_de_tax_statement_line.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ def unlink(self):
raise UserError(
_("You cannot delete lines of a statement set as final!")
)
super().unlink()
return super().unlink()

def view_tax_lines(self):
self.ensure_one()
Expand Down
1 change: 1 addition & 0 deletions l10n_de_tax_statement/readme/CONTRIBUTORS.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
* Andrea Stirpe <[email protected]>
* Thorsten Vocks <[email protected]>
* Helly kapatel <[email protected]>
* Dhara Solanki <[email protected]>
18 changes: 0 additions & 18 deletions l10n_de_tax_statement/templates/assets.xml

This file was deleted.

2 changes: 1 addition & 1 deletion l10n_de_tax_statement/tests/test_l10n_de_tax_statement.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ def _create_test_invoice(self, additional=False, refund=False):
partner = self.env["res.partner"].create({"name": "Test partner"})
account_receivable = self.env["account.account"].create(
{
"user_type_id": self.env.ref("account.data_account_type_expenses").id,
"account_type": "expense",
"code": "EXPTEST",
"name": "Test expense account",
}
Expand Down

0 comments on commit 336bf55

Please sign in to comment.