[MIG] contract_sale_generation: Migration to 16.0

This commit is contained in:
Jesús Feliciano Valdez Cruz [Vauxoo]
2023-05-28 02:02:12 +00:00
parent 6876de0563
commit d71473aa92
5 changed files with 15 additions and 5 deletions

View File

@@ -32,8 +32,6 @@ class ContractContract(models.Model):
sale.payment_term_id = self.payment_term_id.id
if self.fiscal_position_id:
sale.fiscal_position_id = self.fiscal_position_id.id
# Get other sale values from partner onchange
sale.onchange_partner_id()
return sale._convert_to_write(sale._cache)
def _get_related_sales(self):