Merge lp://staging/~therp-nl/openerp-product-attributes/7.0_lp1272282_fixed_price into lp://staging/~product-core-editors/openerp-product-attributes/7.0
Status: | Rejected |
---|---|
Rejected by: | Guewen Baconnier @ Camptocamp |
Proposed branch: | lp://staging/~therp-nl/openerp-product-attributes/7.0_lp1272282_fixed_price |
Merge into: | lp://staging/~product-core-editors/openerp-product-attributes/7.0 |
Diff against target: |
1642 lines (+904/-614) 17 files modified
product_pricelist_fixed_price/AUTHORS.txt (+2/-0) product_pricelist_fixed_price/__init__.py (+1/-20) product_pricelist_fixed_price/__openerp__.py (+11/-9) product_pricelist_fixed_price/i18n/ca.po (+0/-65) product_pricelist_fixed_price/i18n/de.po (+0/-65) product_pricelist_fixed_price/i18n/es.po (+0/-65) product_pricelist_fixed_price/i18n/it.po (+0/-64) product_pricelist_fixed_price/i18n/nl.po (+175/-0) product_pricelist_fixed_price/i18n/product_pricelist_fixed_price.pot (+147/-39) product_pricelist_fixed_price/model/__init__.py (+5/-0) product_pricelist_fixed_price/model/product_pricelist.py (+34/-0) product_pricelist_fixed_price/model/product_pricelist_item.py (+117/-0) product_pricelist_fixed_price/model/product_pricelist_version.py (+35/-0) product_pricelist_fixed_price/pricelist.py (+0/-211) product_pricelist_fixed_price/pricelist_view.xml (+0/-76) product_pricelist_fixed_price/view/pricelist_menu.xml (+109/-0) product_pricelist_fixed_price/view/pricelist_view.xml (+268/-0) |
To merge this branch: | bzr merge lp://staging/~therp-nl/openerp-product-attributes/7.0_lp1272282_fixed_price |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Guewen Baconnier @ Camptocamp | Needs Information | ||
Yannick Vaucher @ Camptocamp | Disapprove | ||
Lionel Sausin - Initiatives/Numérigraphe (community) | functionnal and code | Approve | |
Pedro Manuel Baeza | Needs Fixing | ||
Leonardo Pistone | Abstain | ||
Ronald Portier (Therp) (community) | Needs Resubmitting | ||
Review via email:
|
Description of the change
Replace original code to make it compatible with 7.0.
I used the trick to have -1 for the price discount and put the fixed price in price_surcharge.
This will create a price: (base_price * (1 + price_discount)) + price_surcharge =
(base_price * (1 -1)) + price_surcharge = price_surcharge.
Therefore OpenERP will do all its normal computations (including currency-
Unmerged revisions
- 233. By Ronald Portier (Therp)
-
[FIX] Wrong layout in fixed pricelist version view.
- 232. By Ronald Portier (Therp)
-
[ENH] - Enable mixing of fixed and traditional prices in the same pricelists.
[ENH] - Add functionality for fixed prices to traditional views.
[FIX] - whitespace and convention issues. - 231. By Ronald Portier (Therp)
-
[FIX] Completely replace fixed pricelist module to make it compatible
with OpenERP 7.0, but also have it use just standard computations.
Thanks for your work Ronald.
The idea to apply a 100% discount to get a fixed price seems correct to me. I would request a functional review to Lorenzo to check if that covers the use case for the old module.