Replace the type subcontractor on the partner. Instead replace it by a property for a subcontracting location. The purpose is to have a simplier configuration. The user would just need to add the partner on the BoM in order to start a subcontracting process.
14 lines
572 B
XML
14 lines
572 B
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<odoo>
|
|
<record id="view_partner_mrp_subcontracting_form" model="ir.ui.view">
|
|
<field name="name">res.partner.mrp_subcontracting.property.form.inherit</field>
|
|
<field name="model">res.partner</field>
|
|
<field name="inherit_id" ref="stock.view_partner_stock_form"/>
|
|
<field name="arch" type="xml">
|
|
<xpath expr="//field[@name='property_stock_supplier']" position="after">
|
|
<field name="property_stock_subcontractor"/>
|
|
</xpath>
|
|
</field>
|
|
</record>
|
|
</odoo>
|