c2c-oerpscenario team mailing list archive
-
c2c-oerpscenario team
-
Mailing list archive
-
Message #18093
Re: [Bug 727277] Re: [6.0] - base - "res_partner_rule" - must not updated
I agree, my comment was more that the bug in relation to what you said was
already default behaviour, that partners are viewable multicompany with the
current security rule.
However from a wider perspective you are absolutely right, if you change
security rules then a module update should not change them back, however do
we still need a way to reset security rules to module defaults? Also what
about the case where the module has got it wrong, and a module update
corrects a security access flaw?
On Wed, Mar 2, 2011 at 11:51 PM, Ferdinand @ Camptocamp <
727277@xxxxxxxxxxxxxxxxxx> wrote:
> If noupdate=0 remains then the domain must be read only and all
> modifications must be done using modules which overwrite the original
> IMHO it's a nogo to allow manual updates of the rules and then overwrite
> these again.
>
> --
> You received this bug notification because you are subscribed to OpenERP
> Server.
> https://bugs.launchpad.net/bugs/727277
>
> Title:
> [6.0] - base - "res_partner_rule" - must not updated
>
> Status in OpenERP Server:
> Confirmed
>
> Bug description:
> this rule gets reinstalled with every update
> in multicompany it's very likely that the group wants to use a common
> partner database
>
> 6.0/bin/addons/base/security/base_security.xml
>
> <record model="ir.rule" id="res_partner_rule">
> <field name="name">res.partner company</field>
> <field name="model_id" ref="model_res_partner"/>
> <field name="global" eval="True"/>
> <field name="domain_force">['|', ('company_id','child_of',[
> user.company_id.id]),('company_id','=',False)]</field>
> </record>
>
> IMHO this rule (and may be others - I didn't check) should reside in a
> separate file with
> <data noupdate="1">
>
--
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.
https://bugs.launchpad.net/bugs/727277
Title:
[6.0] - base - "res_partner_rule" - must not updated
Status in OpenERP Server:
Confirmed
Bug description:
this rule gets reinstalled with every update
in multicompany it's very likely that the group wants to use a common partner database
6.0/bin/addons/base/security/base_security.xml
<record model="ir.rule" id="res_partner_rule">
<field name="name">res.partner company</field>
<field name="model_id" ref="model_res_partner"/>
<field name="global" eval="True"/>
<field name="domain_force">['|', ('company_id','child_of',[user.company_id.id]),('company_id','=',False)]</field>
</record>
IMHO this rule (and may be others - I didn't check) should reside in a separate file with
<data noupdate="1">
References