添加功能
This commit is contained in:
@@ -147,6 +147,8 @@ class PurchaseFixedLine(models.Model):
|
||||
@api.onchange('product_id')
|
||||
def _onchange_product_id(self):
|
||||
if self.product_id:
|
||||
self.brand = self.product_id.brand
|
||||
self.specs = self.product_id.specs
|
||||
self.name = self.product_id.display_name
|
||||
self.unit_id = self.product_id.uom_id
|
||||
self.price_unit = self.product_id.standard_price
|
||||
|
||||
Reference in New Issue
Block a user