From 0f55d94e65bbe927ba0201d8d97de885c16180a0 Mon Sep 17 00:00:00 2001 From: Cristian Salamea Date: Sat, 28 Jan 2017 22:20:56 -0500 Subject: [PATCH] [IMP] include journal onchange --- contract/models/contract.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/contract/models/contract.py b/contract/models/contract.py index 89bd5fbe..6d2040cd 100644 --- a/contract/models/contract.py +++ b/contract/models/contract.py @@ -247,8 +247,9 @@ class AccountAnalyticAccount(models.Model): 'contract_id': self.id, 'user_id': self.partner_id.user_id.id, }) - # Get other invoice values from partner onchange + # Get other invoice values from partner/journal onchange invoice._onchange_partner_id() + invoice._onchange_journal_id() return invoice._convert_to_write(invoice._cache) @api.multi