Skip to content

Commit

Permalink
[IMP] sale_ux: update taxes when position fiscal change
Browse files Browse the repository at this point in the history
  • Loading branch information
matiasperalta1 committed Apr 18, 2023
1 parent edf3e3d commit f35401d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions sale_ux/models/sale_order.py
Expand Up @@ -77,6 +77,10 @@ def _onchange_pricelist_id_show_update_prices(self):
'show_update_pricelist': False,
})

@api.constrains('fiscal_position_id')
def fiscal_position_id_update_taxes(self):
self.action_update_taxes()

def action_cancel(self):
invoices = self.mapped('invoice_ids').filtered(
lambda x: x.state not in ['cancel', 'draft'])
Expand Down

0 comments on commit f35401d

Please sign in to comment.