c2c-oerpscenario team mailing list archive
-
c2c-oerpscenario team
-
Mailing list archive
-
Message #17982
Re: [Bug 727277] [NEW] [6.0] - base - "res_partner_rule" - must not updated
I thought that by just not settinga company on partner it was visible to all
companies. But if you set a company, then it isn't. Put it this way, we
run multicompany and for partners that belong to all companies, typically
suppliers we don't set a company, and for partners that belong only to the
company we do set a company and each company can see all suppliers but only
those customers that it deals with. Hence the Company_id=False domain.
On Wed, Mar 2, 2011 at 6:14 AM, Ferdinand @ Camptocamp <
727277@xxxxxxxxxxxxxxxxxx> wrote:
> Public bug reported:
>
> 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">
>
> ** Affects: openobject-addons
> Importance: Undecided
> Status: New
>
> --
> You received this bug notification because you are subscribed to OpenERP
> Addons.
> https://bugs.launchpad.net/bugs/727277
>
> Title:
> [6.0] - base - "res_partner_rule" - must not updated
>
> Status in OpenERP Modules (addons):
> New
>
> 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 Modules (addons):
New
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