From a019dfe56af3f62f61840b51c020a8d85526a448 Mon Sep 17 00:00:00 2001 From: ronozoro Date: Wed, 6 Nov 2024 00:09:26 -0800 Subject: [PATCH] fixx isuse in call --- odex25_purchase/odex25_purchase_coc/models/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/odex25_purchase/odex25_purchase_coc/models/models.py b/odex25_purchase/odex25_purchase_coc/models/models.py index 1c093c229..1612e6a0d 100644 --- a/odex25_purchase/odex25_purchase_coc/models/models.py +++ b/odex25_purchase/odex25_purchase_coc/models/models.py @@ -56,7 +56,7 @@ class POCustom(models.Model): for rec in self: if rec and rec.coc_ids.filtered(lambda coc: coc.coc_stage == 'before_bill' and coc.state != 'approve'): raise ValidationError(_("Sorry You cannot Create Bill untill CoC Created and Approved.")) - return super(POCustom, rec).action_create_invoice() + return super(POCustom, self).action_create_invoice() class PurchaseOrderLine(models.Model): _inherit = 'purchase.order.line'