Merge lp:~openerp-dev/openobject-addons/trunk-bug-1055669-psa into lp:openobject-addons

Proposed by Paramjit Singh Sahota(OpenERP)
Status: Needs review
Proposed branch: lp:~openerp-dev/openobject-addons/trunk-bug-1055669-psa
Merge into: lp:openobject-addons
Diff against target: 12 lines (+1/-1)
1 file modified
account/account.py (+1/-1)
To merge this branch: bzr merge lp:~openerp-dev/openobject-addons/trunk-bug-1055669-psa
Reviewer Review Type Date Requested Status
OpenERP Core Team Pending
Review via email: mp+141036@code.launchpad.net

Description of the change

Hello,

Fixed the issue,
>Create tax code from model using chart of accounts wizard.

Thankz Yo.
 -PSA

To post a comment you must log in.

Unmerged revisions

8446. By Paramjit Singh Sahota(OpenERP)

[FIX] Create tax code from model using chart of accounts wizard.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'account/account.py'
2--- account/account.py 2012-12-18 17:55:47 +0000
3+++ account/account.py 2012-12-21 06:31:29 +0000
4@@ -2714,7 +2714,7 @@
5 'sign': tax_code_template.sign,
6 }
7 #check if this tax code already exists
8- rec_list = obj_tax_code.search(cr, uid, [('name', '=', vals['name']),('code', '=', vals['code']),('company_id', '=', vals['company_id'])], context=context)
9+ rec_list = obj_tax_code.search(cr, uid, [('name', '=', vals['name']),('code', '=', vals['code']),('parent_id', '=', vals['parent_id']),('company_id', '=', vals['company_id'])], context=context)
10 if not rec_list:
11 #if not yet, create it
12 new_tax_code = obj_tax_code.create(cr, uid, vals)

Subscribers

People subscribed via source and target branches

to all changes: