diff options
| author | Azka Nathan <darizkyfaz@gmail.com> | 2026-01-08 10:23:29 +0700 |
|---|---|---|
| committer | Azka Nathan <darizkyfaz@gmail.com> | 2026-01-08 10:23:29 +0700 |
| commit | 5c332365e81cda9a7bdb233a31880c3bec1d1e0e (patch) | |
| tree | 99209950c78011d98a24007a85452b2ae4554091 /fixco_custom/models/purchase_order_multi_bills.py | |
| parent | 23b2c540774c064a69c77ed3de29d9f99ffae904 (diff) | |
push
Diffstat (limited to 'fixco_custom/models/purchase_order_multi_bills.py')
| -rw-r--r-- | fixco_custom/models/purchase_order_multi_bills.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fixco_custom/models/purchase_order_multi_bills.py b/fixco_custom/models/purchase_order_multi_bills.py index d9e3c0d..2a5a54a 100644 --- a/fixco_custom/models/purchase_order_multi_bills.py +++ b/fixco_custom/models/purchase_order_multi_bills.py @@ -9,7 +9,7 @@ class PurchaeOrderMultiBills(models.TransientModel): po_ids = self._context.get('po_ids', []) purchase_orders = self.env['purchase.order'].browse(po_ids) for purchase in purchase_orders: - queue_job = self.env['queue.job'].search([('res_id', '=', purchase.id), ('method_name', '=', 'create_bills')], limit=1) + queue_job = self.env['queue.job'].search([('res_id', '=', purchase.id), ('method_name', '=', 'action_create_invoice'), ('state', '!=', 'error')], limit=1) if queue_job: continue self.env['queue.job'].create({ |
