[FIX] repair: on the fly customer creation
When creating a customer on a repair order form view, it isn't considered as one. An adapted context key is needed to make sure the new res.partner is correctly saved as "customer". Fixes #42449 closes odoo/odoo#42601 X-original-commit: 534ef6a87c3a9e8b0cf23a4cd8a487a0a66715c0 Signed-off-by: Simon Lejeune (sle) <sle@openerp.com>
This commit is contained in:
committed by
Simon Lejeune
parent
d138a708a0
commit
a21e8aad86
@@ -71,7 +71,7 @@
|
||||
<field name="product_uom" groups="uom.group_uom"/>
|
||||
</div>
|
||||
<field name="lot_id" context="{'default_product_id': product_id, 'default_company_id': company_id}" groups="stock.group_production_lot" attrs="{'required':[('tracking', 'in', ['serial', 'lot'])], 'invisible': [('tracking', 'not in', ['serial', 'lot'])], 'readonly': [('state', '=', 'done')]}"/>
|
||||
<field name="partner_id" widget="res_partner_many2one" attrs="{'required':[('invoice_method','!=','none')]}" context="{'show_vat': True}"/>
|
||||
<field name="partner_id" widget="res_partner_many2one" attrs="{'required':[('invoice_method','!=','none')]}" context="{'res_partner_search_mode': 'customer', 'show_vat': True}"/>
|
||||
<field name="address_id" groups="sale.group_delivery_invoice_address"/>
|
||||
<field name="user_id"/>
|
||||
</group>
|
||||
|
||||
Reference in New Issue
Block a user