How to fix warning message
warnings.warn(f"The tag is deprecated, use a for {xml_id!r}.", DeprecationWarning)
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
How to fix warning message
warnings.warn(f"The tag is deprecated, use a for {xml_id!r}.", DeprecationWarning)
Hi,
The warning message you provided indicates that the
<act_window>
<record>
<act_window id="wizard_action_stock_check"
name="Check Stock"
src_model="stock.inventory"
res_model="bi.stock.check.
view_type="form" view_mode="form"
key2="client_action_multi" target="new"
groups="base.group_no_one"/>
<record>
instead of<act_window>
like this:-<record id="action_stock_inventory_
<field name="name">Stock Check</field>
<field name="res_model">bi.stock.
<field name="view_mode">form</field>
<field name="view_id" ref="bi_stock_inventory_check_
<field name="target">new</field>
</record>
Hope it helps
Hi,
If you have tried to create a window action using the tag: act_window, you have to replace this with record as follows:
<record id="product_template_action" model="ir.actions.act_window">
record>
Thanks
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign upRelated Posts | Replies | Views | Activity | |
---|---|---|---|---|
|
1
May 24
|
1521 | ||
|
1
Apr 24
|
1297 | ||
|
1
Feb 24
|
1872 | ||
|
0
Feb 24
|
10 | ||
|
0
Jan 24
|
1794 |