1、优化刀具采购入库,入库时自动生成批次号;2、优化货位看板

This commit is contained in:
yuxianghui
2024-05-30 14:46:15 +08:00
parent 683e9631fa
commit 1d4aaa40cd
4 changed files with 89 additions and 14 deletions

View File

@@ -452,8 +452,9 @@ class ShelfLocation(models.Model):
# product_id = fields.Many2one('product.template', string='产品')
product_id = fields.Many2one('product.product', string='产品', compute='_compute_product_id', store=True)
product_sn_id = fields.Many2one('stock.lot', string='产品序列号')
product_sn_ids = fields.Many2many('stock.lot', 'shelf_location_stock_lot', string='产品批次号')
# 产品数量
product_num = fields.Integer('数量')
product_num = fields.Integer('数量')
@api.depends('product_num')
def _compute_product_num(self):