Commit Graph

329 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
Wolfgang Taferner 9d0cb024fd [FIX] website_sale: fix google analytics variable from google snippet 2015-07-27 21:58:33 +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
Goffin Simon 092c64b76f [FIX] website: translations for qweb templates not applied.
-Website.tours must be loaded after the translation data:
"website.ready" before the tour ensure that the translations are loaded.

-Translations for qweb templates not applied:
Translate all text nodes in qweb templates when translation data
are loaded.

-Add some translations in website tours.

opw:619786
2015-03-03 16:05:34 +01:00
Christophe Matthieu 414175cb30 [FIX] website_sale: the cart and modal in ecomerce are not responsive for phone 2015-02-16 16:33:01 +01:00
David Monjoie 9bae596693 [FIX] website_sale: shop tutorial doesn't explicitly look for an ipad picture anymore
Previously, if you registered enough images to push the ipad one on page two, the test would fail to find it. Now it chooses the image with index 4, whatever it is.
2015-02-06 09:43:56 +01:00
Denis Ledoux 8d9cfd7321 [FIX] website_sale: retrocompatible patch for a6379e2e67
The view *_acquirer_button being  being in noupdate mode, this is possible that the view isn't updated during the migration
2015-01-09 14:02:17 +01:00
Christophe Matthieu 76080efdbc [FIX] website_sale: Discussion not working on product; issue: #3495 2014-11-26 10:38:38 +01:00
Christophe Simonis c825d0552d [MERGE] forward port of branch saas-3 up to ec27773 2014-11-05 21:46:42 +01:00
Christophe Simonis ec277732fe [MERGE] forward port of branch 7.0 up to 3e3e35e 2014-11-05 21:10:15 +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 59cda06b00 [FIX] website.sale: Double / triple digits do not get displayed correctly on ecommerce quantity selector 2014-10-27 10:24:13 +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
Jeremy Kersten 8ff6299d9d [FIX] website_sale: save the company in street and the street in street2.
The old behaviour was not better, because when we print the invoice, the order was ugly:
    Name
    Street
    Company name
    Country

Now we will have:
    Name
    Company name
    Street
    Country

This patch is not retro-compatible:
   Old partners will see the address in company name and vice-versa.
   Need to update view and switch street field and street2 field
2014-10-07 19:00:45 +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
Jeremy Kersten b6fb02a331 [FIX] website_sale: typo in tour 2014-09-09 16:50:42 +02:00
Fabien Meghazi 5e6e1303e3 [IMP] pretty urls for /website/image 2014-08-28 16:37:38 +02:00
Christophe Simonis 8c7519ccad [FIX] website_sale: partially revert 086cfd5.
Use less specific css selectors in "buy product" tour.
2014-08-12 12:16:36 +02:00
Christophe Simonis 086cfd5c92 [FIX] website_sale: correct "buy product" tour to search the product before selecting it 2014-08-12 11:26:32 +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
rlu-odoo 8b67a7202d [REF] OpenERP --> Odoo in various UI texts
Rebranding has been done in:
- data/demo files
- html templates
- help notices
- comments
- logger messages
- and other various messages

(Commit taken from odoo-dev:8.0-improve-openerp-odoo-rlu at rev 7deaa08)

Closes #1260
2014-07-18 13:45:41 +02:00
Christophe Simonis f654a7719b [MERGE] forward port of branch saas-5 up to 73d39a0 2014-07-10 22:49:53 +02:00
Fabien Pinckaers b333457ca3 CSS Fix: /shop 2014-07-09 18:51:07 +02:00
Fabien Pinckaers ac7f1d9e0e CSS Fix for Products in /shop 2014-07-09 18:48:25 +02:00
Jeremy Kersten 8eb97cc082 [IMP] website_sale: Add google analytics on checkout process 2014-07-09 17:45:40 +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
Antony Lesuisse 5a73fb7500 [FIX] tour.js: tour shop
wait that the snippets are loaded before clicking on the picture and open the media editor.
2014-07-01 10:57:38 +02:00
Christophe Matthieu 162ee61d4f [FIX] website_sale: discount price is never hide 2014-06-30 13:53:25 +02:00
Antony Lesuisse 25d0a3ecb1 [FIX] phantomjs test remove injection
It's now deprecated, assets bundles should be used instead.
2014-06-28 19:59:59 +02:00
Christophe Simonis 1f57528bc6 [MERGE] forward port of branch saas-5 up to 8dfd5ea 2014-06-27 16:14:40 +02:00
Simon Lejeune 195fa93168 [MERGE] backend front end integration
Render the top-menu (backend menu or frontend editbar) server-side.
Use Fontawesome icons (mail, timezone, chat).
Refactor website widgets, split Website.editorBarin editorbar, ace, editorbar- content, editorbarCustomize.
2014-06-27 11:03:34 +02:00
Denis Ledoux 368936df7c [FIX] product, website_sale: Go in GB (Go is fr) 2014-06-26 23:31:57 +02:00
Christophe Matthieu a7816a827f [FIX] website_sale: assets xml id and jquery selector (unbind click for login page) 2014-06-25 15:05:48 +02:00