Skip to content
Extraits de code Groupes Projets
Valider fb2225cc rédigé par Benjamin - Le Filament's avatar Benjamin - Le Filament
Parcourir les fichiers

[update] access rights

parent f79f5886
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -119,16 +119,6 @@ class ScopCotisationExo(models.Model): ...@@ -119,16 +119,6 @@ class ScopCotisationExo(models.Model):
column1="exo_id", column1="exo_id",
string="Bordereaux", string="Bordereaux",
) )
company_id = fields.Many2one(
comodel_name="res.company",
string="Company",
change_default=True,
required=True,
readonly=True,
default=lambda self: self.env["res.company"]._company_default_get(
"scop.cotisation.cg.followup"
),
)
exo_line_ids = fields.One2many( exo_line_ids = fields.One2many(
comodel_name="scop.cotisation.cg.exo.line", comodel_name="scop.cotisation.cg.exo.line",
inverse_name="exo_id", inverse_name="exo_id",
......
...@@ -2,13 +2,19 @@ ...@@ -2,13 +2,19 @@
<odoo> <odoo>
<data noupdate="1"> <data noupdate="1">
<record id="invoice_comp_rule" model="ir.rule"> <record id="cotisation_exo_user_rule" model="ir.rule">
<field name="name">CG Scop - Cotisation - Exonérations multi-company</field> <field name="name">CG Scop - Cotisation - Exonérations multi-company user</field>
<field name="model_id" ref="model_scop_cotisation_cg_exo" /> <field name="model_id" ref="model_scop_cotisation_cg_exo" />
<field name="global" eval="True" /> <field name="groups" eval="[(6, 0, [ref('base.group_user')])]" />
<field <field
name="domain_force" name="domain_force"
>['|',('company_id','=',False),('company_id','child_of',[user.company_id.id])]</field> >['|',('partner_id.ur_id','=',False),('partner_id.ur_id','=',user.ur_id.id)]</field>
</record>
<record id="cotisation_exo_admin_rule" model="ir.rule">
<field name="name">CG Scop - Cotisation - Exonérations multi-company admin</field>
<field name="model_id" ref="model_scop_cotisation_cg_exo" />
<field name="domain_force">[(1,'=',1)]</field>
<field name="groups" eval="[(6, 0, [ref('cgscop_partner.group_cg_administrative')])]" />
</record> </record>
</data> </data>
</odoo> </odoo>
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
<page <page
name='scop_exo' name='scop_exo'
string="Exonérations" string="Exonérations"
attrs="{'invisible': ['|', ('is_cooperative', '!=', True), ('project_status', '!=', '4_suivi')]}" attrs="{'invisible': ['|', ('is_cooperative', '!=', True), ('project_status', 'not in', ['4_suivi', '6_decede'])]}"
> >
<field name="exo_ids" mode="tree,form" readonly="1"> <field name="exo_ids" mode="tree,form" readonly="1">
<tree create="false" edit="false" delete="false"> <tree create="false" edit="false" delete="false">
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Veuillez vous inscrire ou vous pour commenter