This commit is contained in:
zainab8585 2024-08-19 19:44:26 +02:00
parent 1aed0baccf
commit 47822b9614
1 changed files with 1 additions and 1 deletions

View File

@ -197,7 +197,7 @@ class RentalContract(models.Model):
# Add Sales Tax Field
tax_id = fields.Many2one('account.tax', string="Tax", domain=[('type_tax_use', '=', 'sale')])
@api.onchange('sales_tax_id')
@api.onchange('tax_id')
def _onchange_sales_tax_id(self):
"""
Apply the selected sales tax to all rent payments when a new tax is selected.