调整判断逻辑
This commit is contained in:
@@ -286,9 +286,10 @@ class SFSaleOrderCancelLine(models.TransientModel):
|
||||
for move in picking.move_ids:
|
||||
f += 1
|
||||
flag = False
|
||||
if picking.state not in ['draft', 'cancel', 'waiting'] or (
|
||||
picking.picking_type_id.name == '客供料入库' and picking.state not in ['cancel', 'assigned']):
|
||||
if picking.state not in ['draft', 'cancel', 'waiting']:
|
||||
flag = True
|
||||
if picking.picking_type_id.name == '客供料入库' and picking.state not in ['cancel', 'assigned']:
|
||||
flag = False
|
||||
vals = {
|
||||
'wizard_id': wizard_id,
|
||||
'sequence': sequence,
|
||||
|
||||
Reference in New Issue
Block a user