Commit Graph
16 Commits
Author SHA1 Message Date
Christophe Simonis 712a97e06b [MERGE] forward port branch saas-14 up to 23d93a69581 2017-06-27 12:11:13 +02:00
Yannick Tivisse 63c5b7c9c5 [FIX] sale_coupon: Don't update automatic rewards on the fly
Purpose
=======

Currently we are updating the coupon rewards on the fly when creating/modifying/deleting a sales order line.

To avoid multiple searches on res_partners and product to know whether the customer/product is valid on the sale coupon program, we store the applicable customers and products on the program according to the domain defined on it.

This brings 2 issues:
- The customers/products stored on the program are not updated (Was the original spec)
- The checks are numerous and maybe overkill for the given results

Specification
=============

- Don't recompute the reward lines on SO modifications. Add a button to compute the line by hand and make an automatic compute on the SO validation or on the page shop/payment.

- When recomputing the reward lines, make a search on the res_partners and products instead. Now that the action is not triggered so often we can afford to make a search.

- Don't use the fields rule_partners_domain and rule_products_domain. This should be removed in master.

- The field is_public_included is useless now. And we decided to make the coupon available for all the partners if they fit the domain on the program.
2017-06-21 15:55:27 +02:00
Jeremy Kersten 28eee52c78 [FIX] website_sale_coupon: show discount in subtotal 2017-03-10 17:53:57 +01:00
Jeremy Kersten 535d6360e2 [FIX] website_sale_coupon: remove duplicated controller and view 2017-03-10 17:53:57 +01:00
Christophe Simonis 50ab76c230 [MERGE] forward port branch saas-14 up to 7dfb2e44b6e 2017-03-06 17:58:34 +01:00
Rohan Patel b909914124 [IMP] website_sale_coupon: renamed coupon programs and promotion programs submenu items in website catalog 2017-03-03 16:49:08 +01:00
Yannick Tivisse e93293a856 [FIX] website_sale_coupon: Merge the price coupon code and sale coupon code boxes
On the ecommerce, we may activate an option that allows a user to enter a coupon code related to a pricelist.

On the website_sale_coupon module, we are also able to enter a code to activate a reward related to a program.

Theses 2 boxes may appear on the same page.

This commit merges the 2 boxes into a single one. When a coupon is entered, it will
- Check if a coupon program or a promotion program is linked to this code
   - If yes, it applied the reward accordingly
   - If not, it will check if a pricelist is linked to this coupon code
      - If yes, it will modify the prices accordingly
      - If not, it will display a warning to explain that the code is invalid
2017-02-24 11:01:23 +01:00
Yannick Tivisse 1abba847ef [FIX] website_sale_coupon: Fix unknown id on html block
Coming from https://github.com/odoo/odoo/commit/2b4b60dc5e1ce081889f0418c30b2ddd919e468b
2017-02-01 15:24:11 +01:00
Yannick Tivisse 97f03fe11d [FIX] website_sale_coupon: Add configuration menuitems under Website Admin/Catalog 2017-01-31 13:12:22 +01:00
Yannick Tivisse 183234c5b6 [FIX] website_sale_coupon: Allow public users to use coupons on website 2017-01-31 13:03:43 +01:00
Yannick Tivisse 2fbbe1808d [FIX] website_sale_coupon: Prevent a user to update te reward qty on the cart 2017-01-31 13:01:24 +01:00
Yannick Tivisse e5ea41c835 [FIX] sale_coupon: Allow the public users to use the coupon mechanism 2017-01-31 10:31:37 +01:00
Yannick Tivisse 78f6c56d22 [FIX] website: Hide configuration fields when the option is unchecked 2017-01-05 15:47:17 +01:00
Yannick Tivisse 4ac8dfe516 [IMP] website_sale_coupon: Apply some fine tunings for the new website settings form 2017-01-04 11:48:47 +01:00
Yannick Tivisse 26625c084c [FIX] website_sale_coupon: Make the module auto-installable 2017-01-04 11:19:49 +01:00
pgu-odoo c83cac4bfe [ADD] website_sale_coupon: Allow to use coupons in ecommerce 2016-12-20 14:48:01 +01:00