Skip to content

Commit

Permalink
Merge pull request avoinsystems#3 from looppi/9.0
Browse files Browse the repository at this point in the history
Initial V9 compatibility
  • Loading branch information
mlaitinen committed Dec 12, 2015
2 parents c628935 + a13cbb3 commit d14bf63
Show file tree
Hide file tree
Showing 3 changed files with 58 additions and 57 deletions.
2 changes: 1 addition & 1 deletion model/account_invoice.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def _compute_ref_number(self):
@api.one
def _compute_barcode_string(self):
primary_bank_account = self.partner_bank_id or \
self.company_id.bank_ids and self.company_id.bank_ids[0]
self.company_id.partner_id.bank_ids and self.company_id.partner_id.bank_ids[0]
if (self.amount_total and primary_bank_account.acc_number
and self.ref_number and self.date_due):
amount_total_string = str(self.amount_total)
Expand Down
Loading

0 comments on commit d14bf63

Please sign in to comment.