Skip to content

Commit

Permalink
[IMP] : pre-commit stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
victor-champonnois authored and robinkeunen committed Jan 11, 2024
1 parent 23524aa commit f2b0813
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def test_be_vat_declaration_wizard(self):

vat_wizard = (
self.env["be.vat.declaration.wizard"]
.with_context({"active_id": mr_instance.id})
.with_context(**{"active_id": mr_instance.id})
.create(
{
"ask_restitution": True,
Expand Down
23 changes: 7 additions & 16 deletions l10n_be_mis_reports_xml/wizards/be_vat_declaration_wizard.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,41 +19,34 @@ class BeVATDeclarationWizard(models.TransientModel):
required=True,
)
client_listing_nihil = fields.Boolean(
string="Client Listing Nihil",
help="Only applies to the last civil declaration"
" or the declaration linked to the cessaction of activity:"
" no customer to list in the customer listing",
)
ask_restitution = fields.Boolean(
string="Ask restitution",
)
ask_restitution = fields.Boolean()
ask_payment = fields.Boolean(
string="Ask payment form",
)
grid_91 = fields.Float(
string="Grid 91",
required=False,
help="Only applies to december monthly declaration:"
" Amount declared for grid 91: VAT due from due "
" for the period from the 1st to the 20th of december",
)
period = fields.Selection(
string="Period",
selection=[("month", "Month"), ("quarter", "Quarter")],
default="month",
required=True,
help="Month or Quarter value is compute from the report start date.",
)
period_value = fields.Integer(
string="Period Value",
compute="_compute_period_value",
)
declarant_vat = fields.Char(
string="Declarant Tax ID",
compute="_compute_declarant_vat",
)
declarant_phone = fields.Char(
string="Declarant Phone",
compute="_compute_declarant_phone",
)

Expand All @@ -70,14 +63,12 @@ def generate_xml(self):
if not company.vat:
raise UserError(
_(
(
"Please set the {vat} field on the company "
"{company_name} (id: {company_id})"
).format(
vat=company.__class__.vat.string,
company_name=company.name,
company_id=company.id,
)
"Please set the {vat} field on the company "
"{company_name} (id: {company_id})"
).format(
vat=company.__class__.vat.string,
company_name=company.name,
company_id=company.id,
)
)
return self.env.ref(
Expand Down
6 changes: 6 additions & 0 deletions setup/l10n_be_mis_reports_xml/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 f2b0813

Please sign in to comment.