Priyesh (OpenERP) has proposed merging
lp:~openerp-dev/openobject-addons/6.0-opw-6707-pso into
lp:openobject-addons/6.0.
Requested reviews:
Jay Vora (OpenERP) (jvo-openerp)
For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-addons/6.0-opw-6707-pso/+merge/67794
Hello sir,
If you configure Chart of Account with Simplified view, It will not take any
action on Configure button of that wizard because Company is required there and
It belongs to the Extended group.
For that, I have raised exception for the absence of Company.
Thanks,
Priyesh
--
https://code.launchpad.net/~openerp-dev/openobject-addons/6.0-opw-6707-pso/+merge/67794
Your team OpenERP R&D Team is subscribed to branch
lp:~openerp-dev/openobject-addons/6.0-opw-6707-pso.
=== modified file 'account/installer.py'
--- account/installer.py 2011-07-08 11:26:10 +0000
+++ account/installer.py 2011-07-13 09:39:30 +0000
@@ -63,7 +63,7 @@
'bank_accounts_id': fields.one2many('account.bank.accounts.wizard', 'bank_account_id', 'Your Bank and Cash Accounts'),
'sale_tax': fields.float('Sale Tax(%)'),
'purchase_tax': fields.float('Purchase Tax(%)'),
- 'company_id': fields.many2one('res.company', 'Company', required=True),
+ 'company_id': fields.many2one('res.company', 'Company'),
}
def _default_company(self, cr, uid, context=None):
@@ -579,6 +579,8 @@
ir_values = self.pool.get('ir.values')
record = self.browse(cr, uid, ids, context=context)[0]
company_id = record.company_id
+ if not company_id:
+ raise osv.except_osv(_('UserError'), _('It seems that there is no company selected or your company already has an accounting configuration. If you want to set the accounting setting for a other company than the main one, please make sure that you belong to the group Usability/Extended View'))
for res in self.read(cr, uid, ids, context=context):
if record.charts == 'configurable':
fp = tools.file_open(opj('account', 'configurable_account_chart.xml'))
_______________________________________________
Mailing list: https://launchpad.net/~openerp-dev-gtk
Post to : [email protected]
Unsubscribe : https://launchpad.net/~openerp-dev-gtk
More help : https://help.launchpad.net/ListHelp