Skip to content

Commit

Permalink
Merge cbe5090 into 3598b55
Browse files Browse the repository at this point in the history
  • Loading branch information
disna-sistemas committed Feb 20, 2019
2 parents 3598b55 + cbe5090 commit 74a7c38
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions sale_order_type/models/account_invoice.py
Expand Up @@ -55,5 +55,9 @@ def onchange_partner_id(
def onchange_sale_type_id(self):
if self.sale_type_id.payment_term_id:
self.payment_term = self.sale_type_id.payment_term_id.id
if self.sale_type_id.journal_id:
self.journal_id = self.sale_type_id.journal_id.id
if (self.type == 'out_refund'):
if self.sale_type_id.refund_journal_id:
self.journal_id = self.sale_type_id.refund_journal_id.id
else:
if self.sale_type_id.journal_id:
self.journal_id = self.sale_type_id.journal_id.id

0 comments on commit 74a7c38

Please sign in to comment.