[FIX] project_mrp: local copy of the "Procurement" process node to avoid errors during updates when sale_stock is not installed
The various attempts to fix this error without duplicating the node have all caused other errors. Having a duplicate process node has no consequence on business operations, so it is an acceptable workaround until the node can be moved to the sale module. bzr revid: odo@openerp.com-20131217104301-t8fsf28jgjqq9q7k
This commit is contained in:
parent
cfd24d9822
commit
df0ba6c7e8
|
@ -46,14 +46,15 @@
|
||||||
Process Transition
|
Process Transition
|
||||||
-->
|
-->
|
||||||
|
|
||||||
<!-- This "foreign" process node is duplicated here from the corresponding sale_stock node because
|
<!-- This process node is duplicated here from the corresponding sale_stock node because
|
||||||
`project_mrp` implements a basic procurement system for services without actually using the
|
`project_mrp` implements a basic procurement system for services without actually using the
|
||||||
full-fledged procurement process from sale_stock, and without the dependency. So it stil
|
full-fledged procurement process from sale_stock, and without the dependency. So it still
|
||||||
represents a "procurement system".
|
represents a "procurement system". Sharing the external ID causes other problems, so
|
||||||
TODO: To cleanup this invalid foreign external ID, the node should probably be moved to the
|
we duplicate it instead.
|
||||||
|
TODO: To cleanup this duplicate node, it should probably be moved to the
|
||||||
`sale` module directly, and removed from both `sale_stock` and `project_mrp`.
|
`sale` module directly, and removed from both `sale_stock` and `project_mrp`.
|
||||||
-->
|
-->
|
||||||
<record id="sale_stock.process_node_saleprocurement0" model="process.node">
|
<record id="process_node_saleprocurement0" model="process.node">
|
||||||
<field name="menu_id" ref="procurement.menu_stock_procurement_action"/>
|
<field name="menu_id" ref="procurement.menu_stock_procurement_action"/>
|
||||||
<field name="model_id" ref="procurement.model_procurement_order"/>
|
<field name="model_id" ref="procurement.model_procurement_order"/>
|
||||||
<field name="kind">subflow</field>
|
<field name="kind">subflow</field>
|
||||||
|
@ -68,7 +69,7 @@
|
||||||
<field eval=""""Procurement Task"""" name="name"/>
|
<field eval=""""Procurement Task"""" name="name"/>
|
||||||
<field eval=""""if product type is 'service' then it creates the task."""" name="note"/>
|
<field eval=""""if product type is 'service' then it creates the task."""" name="note"/>
|
||||||
<field model="process.node" name="target_node_id" ref="process_node_procuretasktask0"/>
|
<field model="process.node" name="target_node_id" ref="process_node_procuretasktask0"/>
|
||||||
<field model="process.node" name="source_node_id" ref="sale_stock.process_node_saleprocurement0"/>
|
<field model="process.node" name="source_node_id" ref="process_node_saleprocurement0"/>
|
||||||
</record>
|
</record>
|
||||||
|
|
||||||
<record id="process_transition_createtask0" model="process.transition">
|
<record id="process_transition_createtask0" model="process.transition">
|
||||||
|
|
Loading…
Reference in New Issue