[FIX] sale: add team_id in refund

Introduced incorrectly in account by 4cbbbaddd5
This commit is contained in:
Nicolas Martinelli
2017-05-30 09:24:53 +02:00
parent 065e3b70fe
commit abb71fea51
+3
View File
@@ -89,6 +89,9 @@ class AccountInvoice(models.Model):
self.ensure_one()
return self.partner_shipping_id.id or super(AccountInvoice, self).get_delivery_partner_id()
def _get_refund_common_fields(self):
return super(AccountInvoice, self)._get_refund_common_fields() + ['team_id', 'partner_shipping_id']
class AccountInvoiceLine(models.Model):
_inherit = 'account.invoice.line'
_order = 'invoice_id, layout_category_id, sequence, id'