fix sent state

This commit is contained in:
eslamabady 2024-07-09 02:39:17 +03:00
parent 061ca0647f
commit 9e78c523b3
15 changed files with 1 additions and 1 deletions

View File

@ -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