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
相关帖文 | 回复 | 查看 | 活动 | |
---|---|---|---|---|
|
1
5月 24
|
1874 | ||
|
1
4月 24
|
1724 | ||
|
1
2月 24
|
2391 | ||
|
0
2月 24
|
10 | ||
|
0
1月 24
|
2188 |