openerp-dev-web team mailing list archive
-
openerp-dev-web team
-
Mailing list archive
-
Message #04230
[Merge] lp:~openerp-dev/openobject-addons/trunk-bug-735965-mra into lp:openobject-addons
Mustufa Rangwala (Open ERP) has proposed merging lp:~openerp-dev/openobject-addons/trunk-bug-735965-mra into lp:openobject-addons.
Requested reviews:
qdp (OpenERP) (qdp)
Related bugs:
Bug #735965 in OpenERP Addons: "cannot install Any Chart of Account"
https://bugs.launchpad.net/openobject-addons/+bug/735965
For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-735965-mra/+merge/53593
--
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-735965-mra/+merge/53593
Your team OpenERP R&D Team is subscribed to branch lp:~openerp-dev/openobject-addons/trunk-bug-735965-mra.
=== modified file 'account/installer.py'
--- account/installer.py 2011-03-03 14:59:00 +0000
+++ account/installer.py 2011-03-16 09:55:51 +0000
@@ -213,7 +213,7 @@
}, context=context)
if 'date_start' in res and 'date_stop' in res:
- f_ids = fy_obj.search(cr, uid, [('date_start', '<=', res['date_start']), ('date_stop', '>=', res['date_stop']), ('company_id', '=', res['company_id'])], context=context)
+ f_ids = fy_obj.search(cr, uid, [('date_start', '<=', res['date_start']), ('date_stop', '>=', res['date_stop']), ('company_id', '=', res['company_id'][0])], context=context)
if not f_ids:
name = code = res['date_start'][:4]
if int(name) != int(res['date_stop'][:4]):
@@ -224,7 +224,7 @@
'code': code,
'date_start': res['date_start'],
'date_stop': res['date_stop'],
- 'company_id': res['company_id']
+ 'company_id': res['company_id'][0]
}
fiscal_id = fy_obj.create(cr, uid, vals, context=context)
if res['period'] == 'month':
Follow ups