Merge lp:~openerp-dev/openobject-addons/7.0-bug-1224691-tpa into lp:openobject-addons/7.0

Proposed by Turkesh Patel (openERP)
Status: Rejected
Rejected by: Thibault Delavallée (OpenERP)
Proposed branch: lp:~openerp-dev/openobject-addons/7.0-bug-1224691-tpa
Merge into: lp:openobject-addons/7.0
Diff against target: 35 lines (+4/-3)
2 files modified
account/account.py (+2/-1)
account/installer.py (+2/-2)
To merge this branch: bzr merge lp:~openerp-dev/openobject-addons/7.0-bug-1224691-tpa
Reviewer Review Type Date Requested Status
OpenERP Core Team Pending
Review via email: mp+185425@code.launchpad.net

Description of the change

[FIX] Error on custom chart of accounts installation

To post a comment you must log in.
Revision history for this message
Thibault Delavallée (OpenERP) (tde-openerp) wrote :

Already fixed in 7.0 and trunk. Thanks anyway !

Unmerged revisions

9439. By Turkesh Patel (openERP)

[FIX]Error on custom chart of accounts installation

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-09-12 11:32:47 +0000
3+++ account/account.py 2013-09-13 06:19:59 +0000
4@@ -3123,7 +3123,8 @@
5 chart_id = max(ids)
6 if context.get("default_charts"):
7 data_id = data_obj.search(cr, uid, [('model', '=', 'account.chart.template'), ('module', '=', context.get("default_charts"))], context=context)
8- chart_id = data_obj.browse(cr, uid, data_id[0], context=context).res_id
9+ if data_id:
10+ chart_id = data_obj.browse(cr, uid, data_id[0], context=context).res_id
11 res.update({'only_one_chart_template': len(ids) == 1, 'chart_template_id': chart_id})
12 if 'sale_tax' in fields:
13 sale_tax_ids = tax_templ_obj.search(cr, uid, [("chart_template_id"
14
15=== modified file 'account/installer.py'
16--- account/installer.py 2013-06-07 11:38:29 +0000
17+++ account/installer.py 2013-09-13 06:19:59 +0000
18@@ -66,7 +66,7 @@
19 charts.update((m.name, m.shortdesc) for m in modules.browse(cr, uid, ids, context=context))
20
21 charts = sorted(charts.items(), key=itemgetter(1))
22- charts.insert(0, ('configurable', _('Custom')))
23+ charts.insert(0, ('account', _('Custom')))
24 return charts
25
26 _columns = {
27@@ -97,7 +97,7 @@
28 'period': 'month',
29 'company_id': _default_company,
30 'has_default_company': _default_has_default_company,
31- 'charts': 'configurable'
32+ 'charts': 'account'
33 }
34
35 def get_unconfigured_cmp(self, cr, uid, context=None):