How i can get object user in POS kanban view ?
I tried to replace domain of action_pos_config_kanban
when i try replace domain like this, its work fine
<record model="ir.actions.act_window" id="noota_action_pos_config_kanban">
<field name="name">Point of Sale Noota</field>
<field name="type">ir.actions.act_window</field>
<field name="res_model">pos.config</field> <field name="view_type">form</field>
<field name="view_mode">tree,kanban,form</field> <field name="search_view_id" ref="point_of_sale.view_pos_config_search" />
<field name="domain">[('id','=', uid)]</field>
<field name="help" type="html">
<p class="oe_view_nocontent_create"> Click to create a new PoS config.
</p><p> Configure at least one Point of Sale to be able to sell through the PoS interface.
</p>
</field>
</record>
but when i try change the domain like this
model="ir.actions.act_window" id="noota_action_pos_config_kanban">
<field name="name">Point of Sale Noota</field>
<field name="type">ir.actions.act_window</field>
<field name="res_model">pos.config</field> <field name="view_type">form</field>
<field name="view_mode">tree,kanban,form</field> <field name="search_view_id" ref="point_of_sale.view_pos_config_search" />
<field name="domain">[('id','in', user.pos_allowed_ids.ids)]</field>
<field name="help" type="html">
<p class="oe_view_nocontent_create"> Click to create a new PoS config.
</p><p> Configure at least one Point of Sale to be able to sell through the PoS interface.
</p>
</field>
</record>
Its say errorr
Uncaught Error: NameError: name 'user' is not defined
i use odoo 9.0c 97f95de89ce96c6a0dd96305adf3e01553158e99 for this