-
- Downloads
[IMP] stock: remove procurement orders to fufill immediately
This removes the procurement.order model. To fufill their needs SO, PO, MO and stock moves now call the _run method of the relevant procurement.group. This mecanism is now only used for stockable product, tasks now uses their own independent mecanism. The _run method will check all the applicable rules and create directly the needed model to fufill the need. The modules stock, purchase, mrp, extends the _run method to implement their specific strategy relevant for the rule type they define. If an exception happens the message will be logged as a mail messsage on the source model, for example, if a sales order cannot be fufilled the salesperson will now see directly the reason. OLD commit messages: [WIP] procurement: removing procurement.order in stock, sale, purchase, sale_stock. WIP fixup! [WIP] procurement: removing procurement.order in stock, sale, purchase, sale_stock. WIP [IMP] Basic tests [FIX] test not necessary anymore [FIX] remove unnecessary print statement [FIX] unnecessary test + why passing warehouse worked before? [IMP] purchase: one move by purchase order line [FIX] purchase: correct inventory tests and pass move_dest_ids among procurements [FIX] because of bad cherry-pick merge [IMP] make mrp pass by adding move_dest_ids there too [IMP] tests of sale_mrp, no need for cancelpropagation then [IMP] better to consistently use recordsets also for one2many [FIX] purchase_requisition [FIX] Exceptions should trigger errors, which should be caught in the tests [FIX] sale_mrp: remove usage of procurement.order and use sale order name instead of sol [FIX] stock_dropshipping: add sale_line_id on purchase_line_id [FIX] Remove pdb [IMP] add stock_dropshipping files [IMP] stock: search carrier through sale line instead of procurement group [IMP] add procrule test and preision needed when updating sol [FIX] sale_order_dates + [IMP] procurement exceptions by scheduler [FIX] No need to return task [IMP] move file as name changes and add corrections [FIX] Continue Run Schedulers wizard fix [FIX] name issues of takss [FIX] updating sale order line, but there is still a problem with the recompute
Showing
- addons/delivery/models/stock_move.py 1 addition, 1 deletionaddons/delivery/models/stock_move.py
- addons/mrp/data/mrp_demo.xml 1 addition, 1 deletionaddons/mrp/data/mrp_demo.xml
- addons/mrp/models/mrp_production.py 2 additions, 13 deletionsaddons/mrp/models/mrp_production.py
- addons/mrp/models/procurement.py 54 additions, 78 deletionsaddons/mrp/models/procurement.py
- addons/mrp/models/stock_move.py 1 addition, 1 deletionaddons/mrp/models/stock_move.py
- addons/mrp/report/mrp_production_templates.xml 0 additions, 8 deletionsaddons/mrp/report/mrp_production_templates.xml
- addons/mrp/security/ir.model.access.csv 0 additions, 2 deletionsaddons/mrp/security/ir.model.access.csv
- addons/mrp/tests/test_procurement.py 14 additions, 20 deletionsaddons/mrp/tests/test_procurement.py
- addons/mrp/views/procurement_views.xml 2 additions, 15 deletionsaddons/mrp/views/procurement_views.xml
- addons/mrp/views/res_config_settings_views.xml 1 addition, 1 deletionaddons/mrp/views/res_config_settings_views.xml
- addons/procurement/__manifest__.py 2 additions, 2 deletionsaddons/procurement/__manifest__.py
- addons/product/models/product.py 0 additions, 6 deletionsaddons/product/models/product.py
- addons/product/models/product_template.py 1 addition, 1 deletionaddons/product/models/product_template.py
- addons/product/views/product_views.xml 1 addition, 0 deletionsaddons/product/views/product_views.xml
- addons/purchase/__manifest__.py 0 additions, 1 deletionaddons/purchase/__manifest__.py
- addons/purchase/models/purchase.py 146 additions, 263 deletionsaddons/purchase/models/purchase.py
- addons/purchase/models/stock.py 12 additions, 0 deletionsaddons/purchase/models/stock.py
- addons/purchase/test/process/run_scheduler.yml 0 additions, 25 deletionsaddons/purchase/test/process/run_scheduler.yml
- addons/purchase/tests/common.py 12 additions, 8 deletionsaddons/purchase/tests/common.py
- addons/purchase/tests/test_purchase_lead_time.py 55 additions, 51 deletionsaddons/purchase/tests/test_purchase_lead_time.py
Loading
Please register or sign in to comment