-
- Downloads
[MERGE] purchase_stock: split stock from purchase module
For historical reason, purchase depends on stock module. We now plan to add purchase feature for services. A service company will not be interessted by having stock install when they do service purchases. So this commit breaks this dependency by creating a new bridge module named 'purchase_stock'. No functionnal behavior should have changed, this commit only move code. However, some points need to be highlighted: * The purchase report was split, the same way sale report is. Installing stock will just add a few addionnal informations to the SQL views. * Since test cases depends on stock demo data, the basic purchase addon does not contain tests, but this will come in futur tasks. * consu and service product's receieved quantity can be manually edited, when stock is not installed. The same mecanism to compute this quantity done in sale (for delivered qty) will be implemented later. Thanks to @amoyaux and @pimodoo for their reviews. Task #47927
Showing
- addons/purchase/__manifest__.py 1 addition, 2 deletionsaddons/purchase/__manifest__.py
- addons/purchase/data/purchase_data.xml 1 addition, 15 deletionsaddons/purchase/data/purchase_data.xml
- addons/purchase/data/purchase_demo.xml 0 additions, 24 deletionsaddons/purchase/data/purchase_demo.xml
- addons/purchase/models/__init__.py 0 additions, 2 deletionsaddons/purchase/models/__init__.py
- addons/purchase/models/account_invoice.py 1 addition, 115 deletionsaddons/purchase/models/account_invoice.py
- addons/purchase/models/product.py 0 additions, 8 deletionsaddons/purchase/models/product.py
- addons/purchase/models/purchase.py 33 additions, 357 deletionsaddons/purchase/models/purchase.py
- addons/purchase/models/res_config_settings.py 0 additions, 11 deletionsaddons/purchase/models/res_config_settings.py
- addons/purchase/report/purchase_order_templates.xml 2 additions, 7 deletionsaddons/purchase/report/purchase_order_templates.xml
- addons/purchase/report/purchase_quotation_templates.xml 1 addition, 7 deletionsaddons/purchase/report/purchase_quotation_templates.xml
- addons/purchase/report/purchase_report.py 63 additions, 50 deletionsaddons/purchase/report/purchase_report.py
- addons/purchase/report/purchase_report_views.xml 1 addition, 2 deletionsaddons/purchase/report/purchase_report_views.xml
- addons/purchase/security/ir.model.access.csv 0 additions, 15 deletionsaddons/purchase/security/ir.model.access.csv
- addons/purchase/security/purchase_security.xml 0 additions, 7 deletionsaddons/purchase/security/purchase_security.xml
- addons/purchase/views/purchase_template.xml 0 additions, 27 deletionsaddons/purchase/views/purchase_template.xml
- addons/purchase/views/purchase_views.xml 4 additions, 24 deletionsaddons/purchase/views/purchase_views.xml
- addons/purchase/views/res_config_settings_views.xml 1 addition, 56 deletionsaddons/purchase/views/res_config_settings_views.xml
- addons/purchase_requisition/__manifest__.py 1 addition, 1 deletionaddons/purchase_requisition/__manifest__.py
- addons/purchase_requisition/tests/test_purchase_requisition.py 3 additions, 3 deletions...s/purchase_requisition/tests/test_purchase_requisition.py
- addons/purchase_requisition/views/res_config_settings_views.xml 1 addition, 1 deletion.../purchase_requisition/views/res_config_settings_views.xml
Loading
Please register or sign in to comment