Feedback 1373: Löschen von Angeboten, Feedback zu Ticket [4565]
parent
76b9e27212
commit
ac150682e0
|
|
@ -252,6 +252,13 @@ class SaleOrder(models.Model):
|
||||||
|
|
||||||
return res
|
return res
|
||||||
|
|
||||||
|
@api.multi
|
||||||
|
def unlink(self):
|
||||||
|
for record in self:
|
||||||
|
for line in record.order_line:
|
||||||
|
line.lot_id.unlink()
|
||||||
|
return super(SaleOrder, self).unlink()
|
||||||
|
|
||||||
@api.multi
|
@api.multi
|
||||||
def action_invoice_create(self, grouped=False, final=False):
|
def action_invoice_create(self, grouped=False, final=False):
|
||||||
inv_obj = self.env['account.invoice']
|
inv_obj = self.env['account.invoice']
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue