fix sent state
This commit is contained in:
parent
061ca0647f
commit
9e78c523b3
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
|
@ -13,7 +13,7 @@ class MailComposer(models.TransientModel):
|
|||
])
|
||||
print(x.is_purchase_budget, 'is_purchase_budget')
|
||||
self.env['purchase.order'].search([
|
||||
('id', 'in', context.get('active_ids')),
|
||||
('id', 'in', context.get('active_ids')),('state','not in',["purchase"]),
|
||||
]).write({'state': 'sent'})
|
||||
|
||||
return res
|
||||
|
|
|
|||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading…
Reference in New Issue