From abb71fea51eac0c26a5296c03d1fb7b9657c08d2 Mon Sep 17 00:00:00 2001 From: Nicolas Martinelli Date: Tue, 30 May 2017 08:58:24 +0200 Subject: [PATCH] [FIX] sale: add team_id in refund Introduced incorrectly in account by 4cbbbaddd5735c8f91c2ccecc --- addons/sale/models/account_invoice.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/addons/sale/models/account_invoice.py b/addons/sale/models/account_invoice.py index b3d0085280d..b9c5d588567 100644 --- a/addons/sale/models/account_invoice.py +++ b/addons/sale/models/account_invoice.py @@ -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'