生成bom

This commit is contained in:
jinling.yang
2022-10-18 18:36:41 +08:00
parent c06fec0e74
commit 5b75e5423a
6 changed files with 113 additions and 18 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.materials_id.name),
'name': '%s/%s/%s/%s/%s' % (item['model_long'], item['model_width'], item['model_height'], item['model_volume'], product.model_materials_id.name),
'price_unit': item['price'],
'product_uom_qty': item['number']
}