Merge lp:~vauxoo/addons-vauxoo/8.0-addons-vauxoo-dev-julio into lp:addons-vauxoo

Proposed by Julio Serna-http://www.vauxoo.com
Status: Merged
Merged at revision: 898
Proposed branch: lp:~vauxoo/addons-vauxoo/8.0-addons-vauxoo-dev-julio
Merge into: lp:addons-vauxoo
Diff against target: 12 lines (+1/-1)
1 file modified
account_move_line_base_tax/account.py (+1/-1)
To merge this branch: bzr merge lp:~vauxoo/addons-vauxoo/8.0-addons-vauxoo-dev-julio
Reviewer Review Type Date Requested Status
Moisés López - http://www.vauxoo.com Pending
Julio Serna-http://www.vauxoo.com Pending
Review via email: mp+242709@code.launchpad.net

Description of the change

Changed tax_code by tax_code.name to avoid warning of type of field

To post a comment you must log in.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'account_move_line_base_tax/account.py'
2--- account_move_line_base_tax/account.py 2014-11-13 00:57:59 +0000
3+++ account_move_line_base_tax/account.py 2014-11-24 20:44:20 +0000
4@@ -66,7 +66,7 @@
5 not line.not_move_diot:
6 raise osv.except_osv(_('Warning!'), _('The lines with tax of purchase, need '
7 'have a value in the amount base.'))
8- elif cat_tax and cat_tax == 'IVA-RET' and line.credit <= 0 and\
9+ elif cat_tax and cat_tax.name == 'IVA-RET' and line.credit <= 0 and\
10 not line.not_move_diot:
11 raise osv.except_osv(_('Warning!'), _('The lines with tax of purchase, need '
12 'have a value in the credit.'))