credativ team mailing list archive
-
credativ team
-
Mailing list archive
-
Message #00699
[Question #181045]: How to access 'user' object from domain in action record
New question #181045 on OpenERP Server:
https://answers.launchpad.net/openobject-server/+question/181045
I have a following action definition:
<record id="action_income_payment_line_tree" model="ir.actions.act_window">
<field name="name">Payment lines</field>
<field name="res_model">payment.line</field>
<field name="view_type">form</field>
<field name="view_mode">tree,form</field>
<field name="domain">[('partner_id','in', [p.id for p in user.partner_ids])]</field>
</record>
user.partner_ids - is a custom field that I have added to res.users
Seems that I can access `user' object from domain_force in Recor Rules, but can't from domain in action.
How to access 'user' object from domain in action record ?
--
You received this question notification because you are a member of
OpenERP Framework Experts, which is an answer contact for OpenERP
Server.