Skip to content

Commit

Permalink
[MIG] account_avatax_repair_oca: Migration to 16.0
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexPForgeFlow committed Aug 9, 2023
1 parent fcbc7c2 commit 431de14
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions account_avatax_repair_oca/models/repair_order.py
Original file line number Diff line number Diff line change
Expand Up @@ -317,9 +317,9 @@ def write(self, vals):

def copy(self, default=None):
repair = super().copy(default)
if self.partner_id.property_tax_exempt:
repair.exemption_code = self.partner_id.property_exemption_number
repair.exemption_code_id = self.partner_id.property_exemption_code_id
repair.onchange_partner_id()
repair._compute_onchange_exemption()

avatax_config = self.env.company.get_avatax_config_company()
if (
avatax_config.repair_calculate_tax
Expand Down

0 comments on commit 431de14

Please sign in to comment.