-
-
Notifications
You must be signed in to change notification settings - Fork 127
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[MIG] website_sale_product_pack: Migration to 18.0
- Loading branch information
1 parent
db0b2c6
commit f0dd428
Showing
10 changed files
with
68 additions
and
98 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +0,0 @@ | ||
from . import main | ||
from . import variant | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,3 @@ | ||
from odoo.http import request, route | ||
|
||
from odoo.addons.website_sale.controllers.main import WebsiteSale | ||
|
||
|
||
class WebsiteSale(WebsiteSale): | ||
@route() | ||
def shop( | ||
self, | ||
page=0, | ||
category=None, | ||
search="", | ||
min_price=0.0, | ||
max_price=0.0, | ||
ppg=False, | ||
**post, | ||
): | ||
request.update_context(whole_pack_price=True) | ||
return super().shop( | ||
page=page, | ||
category=category, | ||
search=search, | ||
min_price=min_price, | ||
max_price=max_price, | ||
ppg=ppg, | ||
**post, | ||
) | ||
from odoo.addons.website.controllers.main import Website |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1 @@ | ||
from odoo.http import request, route | ||
|
||
from odoo.addons.website_sale.controllers.variant import WebsiteSaleVariantController | ||
|
||
|
||
class WebsiteSaleVariantController(WebsiteSaleVariantController): | ||
@route() | ||
def get_combination_info_website( | ||
self, | ||
product_template_id, | ||
product_id, | ||
combination, | ||
add_qty, | ||
parent_combination=None, | ||
**kwargs, | ||
): | ||
request.update_context(whole_pack_price=True) | ||
return super().get_combination_info_website( | ||
product_template_id, | ||
product_id, | ||
combination, | ||
add_qty, | ||
parent_combination=parent_combination, | ||
**kwargs, | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters