[FIX] point_of_sale: always create missing picking types

Don't do it only at install.

closes odoo/odoo#133505

X-original-commit: 359f3ac3075f4b79e830ebe33fded49f3e8febcb
Signed-off-by: Nicolas Seinlet (nse) <nse@odoo.com>
Signed-off-by: Christophe Simonis (chs) <chs@odoo.com>
This commit is contained in:
Christophe Simonis
2023-08-29 15:47:45 +00:00
parent 94a66d9c6b
commit 6e7cf8e6c8
@@ -1,5 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<data>
<function model="stock.warehouse" name="_create_missing_pos_picking_types"/>
</data>
<data noupdate="1">
<!-- After closing the PoS, open the dashboard menu -->
<record id="action_client_pos_menu" model="ir.actions.client">
@@ -14,8 +18,6 @@
<field name="params" eval="{'menu_id': ref('point_of_sale.menu_pos_products')}"/>
</record>
<function model="stock.warehouse" name="_create_missing_pos_picking_types"/>
<record id="product_category_pos" model="product.category">
<field name="parent_id" ref="product.product_category_1"/>
<field name="name">PoS</field>