新增采购入库时实时注册夹具产品到cloud

This commit is contained in:
jinling.yang
2023-08-04 17:33:21 +08:00
parent 30ad60c2c1
commit aa7e39c28a
4 changed files with 52 additions and 9 deletions

View File

@@ -276,7 +276,8 @@ class StockPicking(models.Model):
if picking_out.state != 'done':
raise UserError(
_('该入库单对应的单号为%s的出库单还未完成,不能进行验证操作!' % picking_out.name))
# 采购单验证(夹具和刀具)
if self.product_id.categ_type in ['刀具', '夹具']:
res = super().button_validate()
return res