Merge lp:~stefan-opener/ocb-addons/7.0-lp1168948-set_tax_code_sequence_from_template into lp:ocb-addons

Proposed by Stefan Rijnhart (Opener)
Status: Merged
Merged at revision: 9181
Proposed branch: lp:~stefan-opener/ocb-addons/7.0-lp1168948-set_tax_code_sequence_from_template
Merge into: lp:ocb-addons
Diff against target: 23 lines (+6/-0)
1 file modified
account/account.py (+6/-0)
To merge this branch: bzr merge lp:~stefan-opener/ocb-addons/7.0-lp1168948-set_tax_code_sequence_from_template
Reviewer Review Type Date Requested Status
Holger Brunn (Therp) code review Approve
Review via email: mp+160597@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Holger Brunn (Therp) (hbrunn) wrote :

looks good to me

review: Approve (code review)

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 2013-04-23 12:57:31 +0000
3+++ account/account.py 2013-04-24 10:43:27 +0000
4@@ -2718,6 +2718,11 @@
5 'child_ids': fields.one2many('account.tax.code.template', 'parent_id', 'Child Codes'),
6 'sign': fields.float('Sign For Parent', required=True),
7 'notprintable':fields.boolean("Not Printable in Invoice", help="Check this box if you don't want any tax related to this tax Code to appear on invoices."),
8+ 'sequence': fields.integer(
9+ 'Sequence', help=(
10+ "Determine the display order in the report 'Accounting "
11+ "\ Reporting \ Generic Reporting \ Taxes \ Taxes Report'"),
12+ ),
13 }
14
15 _defaults = {
16@@ -2750,6 +2755,7 @@
17 'parent_id': tax_code_template.parent_id and ((tax_code_template.parent_id.id in tax_code_template_ref) and tax_code_template_ref[tax_code_template.parent_id.id]) or False,
18 'company_id': company_id,
19 'sign': tax_code_template.sign,
20+ 'sequence': tax_code_template.sequence,
21 }
22 #check if this tax code already exists
23 rec_list = obj_tax_code.search(cr, uid, [('name', '=', vals['name']),('code', '=', vals['code']),('company_id', '=', vals['company_id'])], context=context)