|
@ -99,7 +99,7 @@ class WebsiteSubscription(http.Controller): |
|
|
@http.route(['/subscription/get_share_product'], type='json', auth="public", methods=['POST'], website=True) |
|
|
@http.route(['/subscription/get_share_product'], type='json', auth="public", methods=['POST'], website=True) |
|
|
def get_share_product(self, share_product_id, **kw): |
|
|
def get_share_product(self, share_product_id, **kw): |
|
|
product = request.env['product.template'].sudo().browse(int(share_product_id)) |
|
|
product = request.env['product.template'].sudo().browse(int(share_product_id)) |
|
|
return {product.id: {'list_price':product.list_price,'min_qty':product.minimum_quantity}} |
|
|
|
|
|
|
|
|
return {product.id: {'list_price':product.list_price,'min_qty':product.minimum_quantity,'force_min_qty':product.force_min_qty}} |
|
|
|
|
|
|
|
|
@http.route(['/subscription/subscribe_share'], type='http', auth="public", website=True) |
|
|
@http.route(['/subscription/subscribe_share'], type='http', auth="public", website=True) |
|
|
def share_subscription(self, **kwargs): |
|
|
def share_subscription(self, **kwargs): |
|
|