summaryrefslogtreecommitdiff
path: root/addons/sale_margin/tests
AgeCommit message (Collapse)Author
2020-06-03[FIX] sale_margin: compute fields performance at installThomas Dieuzeide
Installing sale_margin module on a db with a lot of sale.order was impossible. This commit significantly improves performances. Went from many hours (forecasted) to 15 minutes on a db with 300k orders For sale.order: - Duplicating logic between edit mode and non edit mode - Edit mode logic stays the same as before - Non edit mode uses read_group to speed up the computation X-original-commit: 9f1ea7427cdb6984f175f5111e4c9a4c5f013af2
2019-12-23[ADD] sale_margin: margin percentageJinal Patel
New field to express the profitability percentage of a Sales Order (/SO line). task-2033253 closes odoo/odoo#39926 Signed-off-by: Damien Bouvy (dbo) <dbo@odoo.com>
2019-11-29[IMP] sale_margin: make the cost a computed field.Victor Feyens
And clean the code mess. closes odoo/odoo#40953 Signed-off-by: Damien Bouvy (dbo) <dbo@odoo.com>
2019-11-05[IMP] sale_margin: Adapt tests to work with/without demo dataYannick Tivisse
2018-07-05[IMP] product: Unify/Clean product demo dataFabien Pinckaers
PURPOSE ======= 1. Unified product demo data 2. Less demo: one per use case 3. Demo data for all models Specification ============= 1. Refactor all the brol in the demo data 2. Adapt the tests to make them green, as some products are renamed, removed, created in python instead of as demo data ...
2018-02-26[IMP] product: move uom in a new addonXavierDo
Moves UoM models, test and data to a new addon in order to be able to use uom without product. A simple example is be to be able to use UoM for timesheets. This commit only move code, and adapt xml ids without chaging any feature or functionnal behavior. Note: 'product' module now depends on new 'uom' module.
2017-06-15[MERGE] forward port branch 10.0 up to dc8b473a033Christophe Simonis
2017-06-15[FIX] sale_margin: apply same logic than sale overrideMartin Trigaux
If some required fields are not present in the created values, they are computed based on the onchange. This was introduced at 5c4765130 to allow to import sale order lines without specifying uom. If sale_margin is installed, the same issue will occure as it assumes there is a value for product_uom Add test, courtesy of Mourad Elhadj Mimoune, Akretion Closes #17613
2016-12-22[FIX] all: fix some common typosKinjal Mehta
Sale Order --> Sales Order Sale Report --> Sales Report Sale Team -> Sales Team Payment Term --> Payment Terms
2015-12-16[MIG] sale_margin: Converted test case from yml to python.Anand Kansagra