Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[MIG] website_sale_multic_ux: Migration to 18.0 #177

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions website_sale_multic_ux/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
##############################################################################
{
'name': 'Website Sale Multicompany Usability',
'version': "17.0.1.0.0",
'version': "18.0.1.0.0",
'author': 'ADHOC SA',
'website': 'www.adhoc.com.ar',
'license': 'AGPL-3',
Expand All @@ -29,6 +29,6 @@
],
'data': [],
'demo': [],
'installable': False,
'installable': True,
'auto_install': False,
}
13 changes: 6 additions & 7 deletions website_sale_multic_ux/controllers/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,9 @@

class WebsiteSale(WebsiteSale):

def values_postprocess(self, order, mode, values, errors, error_msg):
new_values, errors, error_msg = super().values_postprocess(order, mode, values, errors, error_msg)

if mode[0] == 'new':
new_values['company_id'] = False
return new_values, errors, error_msg

def _complete_address_values(
self, address_values, address_type, use_delivery_as_billing, order_sudo
):
super()._complete_address_values(address_values, address_type, use_delivery_as_billing, order_sudo)
if not address_values['user_id']:
address_values['company_id'] = False