添加功能

This commit is contained in:
李鹏宇
2025-12-27 15:15:18 +08:00
parent 9e626c877b
commit dd290d7ef6
@@ -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