fun
This commit is contained in:
parent
bb82d1c0a0
commit
e00e71bd3d
|
|
@ -28,8 +28,8 @@ class SaleOrder(models.Model):
|
||||||
order._create_invoices()
|
order._create_invoices()
|
||||||
else:
|
else:
|
||||||
raise ValidationError(_('Some products are not Available'))
|
raise ValidationError(_('Some products are not Available'))
|
||||||
def _create_invoices(self,final=True):
|
def _create_invoices(self,grouped=False, final=False, date=None):
|
||||||
res = super(SaleOrder, self)._create_invoices(final)
|
res = super(SaleOrder, self)._create_invoices(grouped,final,date)
|
||||||
if res and not self.invoice_no:
|
if res and not self.invoice_no:
|
||||||
raise ValidationError(_('Please add Invoice No'))
|
raise ValidationError(_('Please add Invoice No'))
|
||||||
if res and not self.invoice_date:
|
if res and not self.invoice_date:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue