Commit Graph

100 Commits

Author SHA1 Message Date
Goffin Simon a617fd29ae [FIX] website_sale: discount display in e-commerce
Each time the quantity of a product is changed, the price must
be updated according to the pricelist of the user.
When the price given by the pricelist is less then the unit price
of the product, the reduction of the price must be displayed.

A not stored computed field is added in model "sale.order.line"
to compute the discounted price because when the module
product_visible_discount is installed the price unit of a SO line
is the full price of the product and the discount related to the pricelist
is written in percent in the field discount(function "product_id_change"
in addons/product_visible_discount/product_visible_discount.py).

opw:660178
2015-12-22 10:21:07 +01:00
Nicolas Lempereur a8ae94485d [FIX] website_sale: unify image update when change variant
The variants on a product in the ecommerce can appear:
- naturally, not a list, colored square for color, ...
- in a list of radio button.

To have the second kind, we need to enable the "List View of Variants"
customize option.

One part of the code was not the same which cause an issue when saving
the image of the variant, it was saved on the product.template instead.

This commit add an "update_product_image" function which is now called
in both scenario.

first half of:
opw-654279

forward port note: in 9.0 website/image -> web/image
2015-11-10 16:34:57 +01:00
Goffin Simon cf87d9b5a3 [FIX] website_sale, website_sale_options: product_variant_ids in website_sale.modal
To show the website_sale.modal, the product_variant_ids must be in the DOM
because all the prices are computed with the product_variant_ids.
From commit 0ff26cf

opw:650167
2015-10-01 09:25:51 +02:00
Jeremy Kersten 5a53d7d8b9 [FIX] website_sale: force refresh cart without cache when product removed
Firefox keep in cache the value of input.
So, when we delete a product line and call location.reload(), firefox
remember the value and state of this input and don't refresh with the new
value.

Adding True as param (forceReload) fixes the problem since it doesn't
use old value. Another way will be to add autocomplete="off".

ForcedReload (Optional): Is a Boolean flag, which, when it is true, causes the
page to always be reloaded from the server. If it is false or not specified,
the browser may reload the page from its cache.

This closes #7888 #3342 #7491
2015-08-07 15:11:54 +02:00
Nicolas Lempereur 21f2e7b467 [FIX] website_sale: get right variant image if list of variant
If the variants are displayed by list of attributes, the image of a
product displayed would be updated to the image of the first variant.

But this was not done when using the customizing option "List View of
Variants".

opw-645729
2015-07-23 14:02:32 +02:00
Goffin Simon e27d854801 [FIX] website_sale: delete console.log
Delete console.log introduced by 4d7671a4c3
2015-07-08 10:37:33 +02:00
Goffin Simon 4d7671a4c3 [IMP] website_sale: Skip overload with requests
Until the request to get the unit price is not finished, no request is sent to the server.

issue #4298
2015-06-09 12:06:18 +02:00
Goffin Simon bff6dffbb4 [FIX] website_sale: Coupon Code
The pricelist linked to the coupon code is just applied in the cart.
In the shop, the pricelist of the user is applied.

opw:634639
2015-05-11 14:25:11 +02:00
Goffin Simon 67530c7b1d [FIX] website_sale: checkout problem
When the user is not logged, there is no branding for the options.
This is why, the product_id of the option must be written in the
template "optional product".

opw:633093
2015-04-24 09:00:39 +02:00
Goffin Simon 08d69774b0 [FIX] website_sale: Pricelist witn min qty
Each time a product is added in the cart, the qty of this product must be checked to
adjust the price if there is a rule (with min qty) in the partner's pricelist.

opw:630049
2015-04-10 10:57:37 +02:00
Christophe Matthieu 76080efdbc [FIX] website_sale: Discussion not working on product; issue: #3495 2014-11-26 10:38:38 +01:00
Simon Lejeune a03e5c42ec [FIX] website_sale: usability fixes in the checkout/address form
* `disabled` on the country select tag instead of `readonly`
* `create a new address` selected when the user set an invalid shipping
address and must correct it. Else the user was correcting the shipping
address but the option "ship to the same address" was selected.
2014-10-29 16:06:10 +01:00
Christophe Matthieu d8e67d647f [FIX] website_sale_options: only one optional product is added to the cart and the quantity of the optional product don't change in the cart when we click on more or less. Fix the number of items displayed in the modal options. 2014-10-27 10:24:13 +01:00
Denis Ledoux bfb61cd5e9 [FIX] website_sale: image doesn't change when the user select a product (for product variant list). website_sale_options: image dones't change in modal with the selection 2014-10-20 18:40:06 +02:00
Simon Lejeune 258a4cac82 [FIX] website_sale: trigger the change event on the right node 2014-10-20 10:44:24 +02:00
Christophe Matthieu 8afa1b6062 [FIX] website_sale: displayed price doesn't change for 'List View of Variants' customize template 2014-09-19 11:07:33 +02:00
Fabien Meghazi 51477fb4f6 [IMP] Brought back /website/image route w/filename hinted in headers
Also added support for this route in widget Image#from_html()
2014-09-17 16:54:08 +02:00
Fabien Meghazi bc5e6fa2cb [ADD] Helper for /website/image (allows to use aggressive cache) 2014-09-16 19:54:59 +02:00
Christophe Simonis 780dd9891f [MERGE] forward port of branch saas-5 up to 7eab880 2014-09-15 14:00:02 +02:00
Denis Ledoux d3ba8a840d [FIX] website_sale: the order of the attribute list doesn't matter 2014-09-10 15:08:34 +02:00
Fabien Meghazi 5e6e1303e3 [IMP] pretty urls for /website/image 2014-08-28 16:37:38 +02:00
Denis Ledoux 1bb219907f [MERGE] forward port of branch saas-5 up to 655a5b9 2014-08-04 16:56:10 +02:00
Christophe Matthieu ce7212d5d7 [FIX] website_sale: everytime you want to change both billing & delivery address, any change creates duplicates in the backend 2014-08-01 17:11:20 +02:00
Christophe Matthieu 928f4fbf76 merge from 8.0 2014-07-09 16:10:08 +02:00
Christophe Matthieu 21615e6b2b [FIX] website_sale: change picture in function of the product selected 2014-07-02 14:45:37 +02:00
Christophe Matthieu 78f87dce34 [FIX] website_sale_options: tour and filter by attributes 2014-07-02 13:00:13 +02:00
Christophe Matthieu 162ee61d4f [FIX] website_sale: discount price is never hide 2014-06-30 13:53:25 +02:00
Christophe Matthieu 77a07670cf [IMP] website: move custom scripts in the assets; fix website_sale_option to display modal in grid view 2014-06-25 14:03:23 +02:00
Christophe Matthieu 412a7593be [IMP] website_sale_options 2014-06-25 11:31:39 +02:00
Christophe Matthieu 7505cce2e9 [WIP] 2014-06-24 17:37:13 +02:00
Christophe Matthieu 22d528c7a7 [IMP] website_sale: display the discount in the product template when the user select a variant 2014-06-19 13:12:08 +02:00
Christophe Matthieu 9f77cb9d1f [IMP] website_sale: optional product have all time the same quantity of the liked product. 2014-06-17 14:23:15 +02:00
Christophe Matthieu 0ac338ea0a [IMP] website_sale: display state function of selected country 2014-06-17 11:33:28 +02:00
Christophe Matthieu 474d63d6b9 [FIX] website_sale: fix keep query and clean code 2014-06-17 09:44:32 +02:00
Christophe Matthieu 0492e59314 [FIX] website_sale: rounding price; typo and search sequence of membership 2014-06-16 10:53:34 +02:00
Christophe Matthieu b8d4cd277e [FIX] website_sale: bind event with touch for ipad 2014-06-13 15:50:08 +02:00
Christophe Matthieu 8fdfc68074 [IMP] website_sale: display variants choice in confirm dialog box 2014-06-13 13:59:28 +02:00
Christophe Matthieu d8516bcfd8 [IMP] website_sale: optional quantity in product form 2014-06-13 12:47:54 +02:00
Christophe Matthieu 1e9c72f308 [MERGE] from master 2014-06-13 12:35:23 +02:00
Christophe Matthieu 57c59ddfac [IMP] website_sale: confirm/options dialog box have same layout of my cart 2014-06-13 12:31:41 +02:00
Christophe Matthieu 8a24171996 [IMP] website_sale: display 'Product not available' message in product selector 2014-06-13 09:32:28 +02:00
Christophe Matthieu f62673c266 [IMP] website_sale: Optional product with variant suggestion 2014-06-12 16:58:44 +02:00
Christophe Matthieu 8319356630 [IMP] website_sale: allow optional products in shop; In shop, it opens the modal jus after having clicked on the 'Add to cart'. The modal contains the optional products. 2014-06-11 12:50:41 +02:00
Christophe Matthieu ef48c4d440 [FIX] website_sale: disable button does'nt work in the product template. 2014-06-06 10:57:50 +02:00
Christophe Matthieu 5f43d87a33 [IMP] website_sale: display image function of the selected product variant 2014-06-06 10:40:50 +02:00
Christophe Matthieu c5ab412acc [FIX] website_sale: change template for product and variant selector (type color) 2014-06-03 15:38:11 +02:00
Christophe Matthieu 435b5b9ca3 [IMP] product: rename fields variant_ids into attribute_line_ids on the template and attribute_value_ids on the product. 2014-05-28 19:42:15 +02:00
Christophe Matthieu 43977deb71 [IMP] product: refactoring of product variant. The main view became the view of product template and the product product (or product variant) are created with the variant values combinaison. Bom is splitted into bom and bom line and can use the variant combinaison. 2014-05-27 09:42:52 +02:00
chm@openerp.com c10800f2f1 [FIX] website_event_sale: multi tickets
bzr revid: chm@openerp.com-20140502140152-hx7ktaf0cg2m7ija
2014-05-02 16:01:52 +02:00
chm@openerp.com 0bae967baa [MERGE] from trunk
bzr revid: chm@openerp.com-20140312154854-gtq7v1dxfnunkcz6
2014-03-12 16:48:54 +01:00