Community mailing list archives

community@mail.odoo.com

[9.0] Domain force

by
Sergio Corato
- 01/26/2016 07:43:15
Hi all,
I'm trying to create a rule with a domain_force in timesheet view (timesheet widget), but domain is not correctly valuated (below rule), does anyone have an idea why?

Thanks.

<record id="account_timesheet_rule" model="ir.rule">
<field name="name">Account analytic timesheet portal</field>
<field name="model_id" ref="analytic.model_account_analytic_account"/>
<field name="groups" eval="[(4, ref('my_module.group_portal_timesheet'))]"/>
<field name="domain_force">[('message_follower_ids','in',[user.partner_id.id])]</field>
<field name="perm_read" eval="True"/>
<field name="perm_write" eval="True"/>
<field name="perm_unlink" eval="True"/>
<field name="perm_create" eval="True"/>
</record>


Sergio Corato
Product Manager
SimplERP srl