summaryrefslogtreecommitdiff
path: root/addons/mrp_subcontracting/data/mrp_subcontracting_data.xml
diff options
context:
space:
mode:
authorSimon Lejeune <sle@openerp.com>2019-03-27 18:41:41 +0000
committerSimon Lejeune <sle@openerp.com>2019-04-03 13:52:22 +0000
commitd91db5bde6133d9da86893043afbaed8134e4104 (patch)
tree6e5ec6a3ba8b4d210ccaa132a345f940db028573 /addons/mrp_subcontracting/data/mrp_subcontracting_data.xml
parent928e3e0a0b3d8bbb4cdf33eed127433ecd195688 (diff)
[ADD] mrp_subcontracting
In a few words, it allows to send components to a subcontractor partner and receive a finished product. The production is managed through classical manufacturing orders where the raw and finished location is the subcontracting location. When creating a receipt picking for a subcontractor partner, the location_id of the moves will be set to the subcontracting locations by using the property_stock_customer and property_stock_supplier of the partner. An override of _action_confirm will create the manufacturing order. When a subcontracted bom contains tracking, the produce wizard is available from the picking to record which lots were produced/consumed. New type on the BoM: subcontract New type on res.partner: subcontactor New location per company (we still own the components stored at the subcontractor so they're still valued) New routes created to resupply the subcontracting location on order or not (through a reordering rule). Override of res.partner to set the property_stock_customer/supplier on subcontactor partners. Proper tests were added too. Joint work with: Arnaud Baes <arb@odoo.com> task 1831382
Diffstat (limited to 'addons/mrp_subcontracting/data/mrp_subcontracting_data.xml')
-rw-r--r--addons/mrp_subcontracting/data/mrp_subcontracting_data.xml12
1 files changed, 12 insertions, 0 deletions
diff --git a/addons/mrp_subcontracting/data/mrp_subcontracting_data.xml b/addons/mrp_subcontracting/data/mrp_subcontracting_data.xml
new file mode 100644
index 00000000000..3966da5b9f2
--- /dev/null
+++ b/addons/mrp_subcontracting/data/mrp_subcontracting_data.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="utf-8"?>
+<odoo>
+ <data noupdate="1">
+ <record id="route_resupply_subcontractor_mto" model='stock.location.route'>
+ <field name="name">Resupply Subcontractor on Order</field>
+ <field name="company_id"></field>
+ <field name="sequence">5</field>
+ </record>
+ <function model="res.company" name="create_missing_subcontracting_location" />
+ </data>
+</odoo>
+