From 8016fd3b79da303547d6a1f42f524bfbe73db863 Mon Sep 17 00:00:00 2001 From: oca-git-bot Date: Wed, 30 Mar 2022 23:01:58 +0200 Subject: [PATCH] [IMP] update dotfiles [ci skip] --- .../models/l10n_nl_vat_statement.py | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/l10n_nl_tax_statement_icp/models/l10n_nl_vat_statement.py b/l10n_nl_tax_statement_icp/models/l10n_nl_vat_statement.py index f3bddfd4f..59bf1cada 100644 --- a/l10n_nl_tax_statement_icp/models/l10n_nl_vat_statement.py +++ b/l10n_nl_tax_statement_icp/models/l10n_nl_vat_statement.py @@ -28,7 +28,7 @@ def _compute_icp_total(self): statement.icp_total = sum(amount_products) + sum(amount_services) def _create_icp_lines(self): - """ Computes ICP lines for the report""" + """Computes ICP lines for the report""" for statement in self: statement.icp_line_ids.unlink() icp_line_vals = statement._prepare_icp_lines() @@ -36,7 +36,7 @@ def _create_icp_lines(self): @api.model def _prepare_icp_lines(self): - """ Prepares an internal data structure representing the ICP lines""" + """Prepares an internal data structure representing the ICP lines""" self.ensure_one() amounts_map = self._get_partner_amounts_map() icp_line_vals = [] @@ -65,7 +65,7 @@ def _is_3b_omzet_diensten_line(self, line): return False def _get_partner_amounts_map(self): - """ Generate an internal data structure representing the ICP lines""" + """Generate an internal data structure representing the ICP lines""" self.ensure_one() partner_amounts_map = {} @@ -87,14 +87,14 @@ def _get_partner_amounts_map(self): @classmethod def _update_partner_amounts_map(cls, partner_amounts_map, vals): - """ Update amounts of the internal ICP lines data structure""" + """Update amounts of the internal ICP lines data structure""" map_data = partner_amounts_map[vals["partner_id"]] map_data["amount_products"] += vals["amount_products"] map_data["amount_services"] += vals["amount_services"] @classmethod def _init_partner_amounts_map(cls, partner_amounts_map, vals): - """ Initialize the internal ICP lines data structure""" + """Initialize the internal ICP lines data structure""" partner_amounts_map[vals["partner_id"]] = { "country_code": vals["country_code"], "vat": vals["vat"], @@ -104,7 +104,7 @@ def _init_partner_amounts_map(cls, partner_amounts_map, vals): } def _prepare_icp_line_from_move_line(self, line): - """ Gets move line details and prepares ICP report line data""" + """Gets move line details and prepares ICP report line data""" self.ensure_one() balance = line.balance and -line.balance or 0 @@ -128,12 +128,12 @@ def _prepare_icp_line_from_move_line(self, line): } def reset(self): - """ Removes ICP lines if reset to draft""" + """Removes ICP lines if reset to draft""" self.mapped("icp_line_ids").unlink() return super().reset() def post(self): - """ Checks configuration when validating the statement""" + """Checks configuration when validating the statement""" self.ensure_one() res = super().post() self._create_icp_lines() @@ -141,14 +141,14 @@ def post(self): @api.model def _modifiable_values_when_posted(self): - """ Returns the modifiable fields even when the statement is posted""" + """Returns the modifiable fields even when the statement is posted""" res = super()._modifiable_values_when_posted() res.append("icp_line_ids") res.append("icp_total") return res def icp_update(self): - """ Update button""" + """Update button""" self.ensure_one() if self.state in ["final"]: