Skip to content

Commit

Permalink
[FIX] website_sale: Correct partner search
Browse files Browse the repository at this point in the history
8b92147 has introduced wrong context key which replaces `res_partner_search_mode` with the depricated `search_default_customer` which was breaking search functality added by 8766f38 

In this commit we correct context's key.

closes odoo#50176

Signed-off-by: Jérémy Kersten (jke) <jke@openerp.com>
  • Loading branch information
sswapnesh committed Apr 24, 2020
1 parent 55385b2 commit 2e309d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion addons/website_sale/views/sale_order_views.xml
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@
<field name="partner_id" position="attributes">
<attribute name="context">{
'display_website': True,
'search_default_customer': 1,
'res_partner_search_mode': 'customer',
'show_address': 1,
'show_vat': True,
}</attribute>
Expand Down

0 comments on commit 2e309d4

Please sign in to comment.