fixx isuse in call
This commit is contained in:
parent
860982c4e3
commit
a019dfe56a
|
|
@ -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'
|
||||
|
|
|
|||
Loading…
Reference in New Issue