Skip to Content
Menu
This question has been flagged
2 Replies
3395 Views


Here in ref=" " if we want to put id of menu defined of same model, how to put that?
<record id="server_action_pos_credit_update" model="ir.actions.server">         
 <field name="name">Confirm</field>           
<field name="model_id" ref="point_of_sale.menu_point_config_product"/>           
<field name="state">code</field>           
<field name="code">records.do_confirm()</field>     
 </record>

Could anyone help me out or suggest me anything?


Avatar
Discard
Best Answer

Hello Mansi,

model_id fields is a Many2one of "ir.model" model. Hence you cannot use a menu_id in "ref" field.

Hope this helps.

Thank You

Avatar
Discard
Author Best Answer

Thank you Burhan. It really contributed to get things clear. Can you let me know alternative for it?

Avatar
Discard
Related Posts Replies Views Activity
2
Aug 24
1653
2
Jul 24
2880
1
Jun 24
5312
0
Jan 25
1569
1
Oct 23
11052