diff options
| author | Paramjit Singh Sahota <psa@tinyerp.com> | 2013-06-07 18:44:49 +0530 |
|---|---|---|
| committer | Paramjit Singh Sahota <psa@tinyerp.com> | 2013-06-07 18:44:49 +0530 |
| commit | e6c711af32f2a75ad65aef5cdc8c9bd2cff9f4f5 (patch) | |
| tree | 7eeb421b5d284ddc17fb5d026a7f95866937b00c /addons/analytic | |
| parent | 3b96536e757cbb3e730b094511280a0766f51154 (diff) | |
| parent | 8c6ff33bef12cdfed35b15a90c3fd13bdd723b42 (diff) | |
[MERGE] MergeD lp:openobject-addons.
bzr revid: psa@tinyerp.com-20130607131449-dq4k9dam7adxsm6b
Diffstat (limited to 'addons/analytic')
| -rw-r--r-- | addons/analytic/analytic.py | 2 | ||||
| -rw-r--r-- | addons/analytic/security/analytic_security.xml | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/addons/analytic/analytic.py b/addons/analytic/analytic.py index ac298713b04..ce79c4d5ffb 100644 --- a/addons/analytic/analytic.py +++ b/addons/analytic/analytic.py @@ -157,7 +157,7 @@ class account_analytic_account(osv.osv): for account in self.browse(cr, uid, ids, context=context): if account.company_id: if account.company_id.currency_id.id != value: - raise osv.except_osv(_('Error!'), _("If you set a company, the currency selected has to be the same as it's currency. \nYou can remove the company belonging, and thus change the currency, only on analytic account of type 'view'. This can be really usefull for consolidation purposes of several companies charts with different currencies, for example.")) + raise osv.except_osv(_('Error!'), _("If you set a company, the currency selected has to be the same as it's currency. \nYou can remove the company belonging, and thus change the currency, only on analytic account of type 'view'. This can be really useful for consolidation purposes of several companies charts with different currencies, for example.")) if value: return cr.execute("""update account_analytic_account set currency_id=%s where id=%s""", (value, account.id, )) diff --git a/addons/analytic/security/analytic_security.xml b/addons/analytic/security/analytic_security.xml index 70688275de2..bf103ca8988 100644 --- a/addons/analytic/security/analytic_security.xml +++ b/addons/analytic/security/analytic_security.xml @@ -4,14 +4,14 @@ <record id="analytic_comp_rule" model="ir.rule"> <field name="name">Analytic multi company rule</field> - <field model="ir.model" name="model_id" ref="model_account_analytic_account"/> + <field name="model_id" ref="model_account_analytic_account"/> <field eval="True" name="global"/> <field name="domain_force">['|',('company_id','=',False),('company_id','child_of',[user.company_id.id])]</field> </record> <record id="analytic_line_comp_rule" model="ir.rule"> <field name="name">Analytic line multi company rule</field> - <field model="ir.model" name="model_id" ref="model_account_analytic_line"/> + <field name="model_id" ref="model_account_analytic_line"/> <field eval="True" name="global"/> <field name="domain_force">['|',('company_id','=',False),('company_id','child_of',[user.company_id.id])]</field> </record> |
