销售和产品代码整合

This commit is contained in:
jinling.yang
2022-11-22 11:08:07 +08:00
parent 3cbd1140bb
commit 12615b3dba
8 changed files with 44 additions and 43 deletions

View File

@@ -27,7 +27,7 @@ class ReSaleOrder(models.Model):
vals = {
'order_id': self.id,
'product_id': product.id,
'name': '%s/%s/%s/%s/%s' % (item['model_long'], item['model_width'], item['model_height'], item['model_volume'], product.model_materials_id.name),
'name': '%s/%s/%s/%s/%s' % (item['model_long'], item['model_width'], item['model_height'], item['model_volume'], product.materials_id.name),
'price_unit': item['price'],
'product_uom_qty': item['number']
}