fixx isuse in call

This commit is contained in:
ronozoro 2024-11-06 00:09:26 -08:00
parent 860982c4e3
commit a019dfe56a
No known key found for this signature in database
GPG Key ID: 7C2BDED35C62C0F3
1 changed files with 1 additions and 1 deletions

View File

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