[FIX] sale_product_configurator: fix mobile product template search

Issue

	1. Install Sales
 	2. In the Sales settings activate "Product Configurator"
 	3. Create a product with variant set as "dynamic" (with dummy attributes)
 	4. Switch your browser view to the mobile view (using dev tools)
 	5. Click the order line "Add" button
 	6. Click on the product form
 	7. Search for your product of step 3.

	-> The product of step 3. does not shows up !

Cause

	The view used for mobile is the order_line form view in
	the view "view_order_form"

	This view uses product.product instead of product.template
	because the widget is not the same than the tree view.

Solution

	Use the product_configurator widget instead when
	the module is installed.

OPW-2214095

closes odoo/odoo#50695

X-original-commit: 14a79045ee21a72d78f0fff0495552a8bd834ba4
Signed-off-by: Jason Van Malder (jvm) <jvm@odoo.com>
This commit is contained in:
jvm-odoo
2020-05-05 16:17:41 +00:00
parent dda171300f
commit 0230d78cb0
@@ -38,6 +38,9 @@
<attribute name="optional">hide</attribute>
<attribute name="string">Product Variant</attribute>
</xpath>
<xpath expr="//field[@name='order_line']/form//field[@name='product_id']" position="attributes">
<attribute name="widget">product_configurator</attribute>
</xpath>
</field>
</record>
</odoo>