~koi-accounting-modules-maintainer/koi-accounting-modules/7.0-fixed-asset

« back to all changes in this revision

Viewing changes to ar_account/object_other/account_invoice.py

  • Committer: Andhitia Rama
  • Date: 2015-07-07 08:32:04 UTC
  • mfrom: (230.1.60 koi_account_trunk)
  • Revision ID: andhitia.r@gmail.com-20150707083204-4dvdzi7m5kp5rywm
Merge dr trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
116
116
                return False
117
117
 
118
118
        # create account.move.line for each tax
119
 
        for tax in invoice.tax_lines:
120
 
            tax_move_line_id = obj_tax._create_account_move_line(cr, uid, tax, move_id)
 
119
        if invoice.tax_lines:
 
120
            for tax in invoice.tax_lines:
 
121
                tax_move_line_id = obj_tax._create_account_move_line(cr, uid, tax, move_id)
121
122
 
122
 
            if not tax_move_line_id:
123
 
                return False
 
123
                if not tax_move_line_id:
 
124
                    return False
124
125
 
125
126
        # reconcile if needed
126
127
        for line in invoice.invoice_line: