Detailed map traversal, teach you to master the complex gremlin query debugging method>>>
Modify res of views/views.xml file_ Model, modify to & lt; field name="res_ model">{}& lt;/ field> {}
package in code>
For example, res_ Mode is “em.em”
<odoo>
<data>
<!-- actions opening views on models -->
<record model="ir.actions.act_window" id="em.action_window">
<field name="name">em window</field>
<field name="res_model">em.em</field>
<field name="view_mode">tree,form</field>
</record>
<!-- server action to the one above -->
<record model="ir.actions.server" id="em.action_server">
<field name="name">em server</field>
<field name="model_id" ref="model_em_em"/>
<field name="state">code</field>
<field name="code">
action = {
"type": "ir.actions.act_window",
"view_mode": "tree,form",
<!--change here-->
"res_model": self._name,
}
</field>
</record>
Change to
<odoo>
<data>
<!-- actions opening views on models -->
<record model="ir.actions.act_window" id="em.action_window">
<field name="name">em window</field>
<field name="res_model">em.em</field>
<field name="view_mode">tree,form</field>
</record>
<!-- server action to the one above -->
<record model="ir.actions.server" id="em.action_server">
<field name="name">em server</field>
<field name="model_id" ref="model_em_em"/>
<field name="state">code</field>
<field name="code">
action = {
"type": "ir.actions.act_window",
"view_mode": "tree,form",
<!--change here-->
"res_model": "em.em",
}
</field>
</record>
The action will be returned to the client as the next operation to be performed< field name="code">
Similar Posts:
- Odoo14 TypeError: Cannot read property ‘classList’ of undefined
- Vue3’s use of reactive/torefs + V-model leads to the failure of response and the failure of El form input
- How to Solve Django Error: No such column: xxx
- python Warning: OverflowError: Python int too large to convert to C long
- [Solved] UnicodeDecodeError: ‘gbk’ codec can’t decode byte 0x80 in position 128: illegal multibyte sequence
- whose view is not in the window hierarchy!
- How to Solve Django xadmin installation Error [7 Types of Errors]
- Error: Unknown column ‘*_image_url’ in ‘field list’ [How to Solve]
- HTTP status 405 – request method ‘get’ not supported using springmvc
- Lower your costs with the new pause and resume actions on Amazon Redshift