summaryrefslogtreecommitdiff
path: root/addons/procurement/procurement_workflow.xml
diff options
context:
space:
mode:
authorHarry (OpenERP) <hmo@tinyerp.com>2011-12-15 16:25:20 +0530
committerHarry (OpenERP) <hmo@tinyerp.com>2011-12-15 16:25:20 +0530
commit24595ccae65a0cbee8d90307d8af8e6e1ad5d2f0 (patch)
treeca70939e727423ff777580f868214ff62edf27ef /addons/procurement/procurement_workflow.xml
parenta50550225c0c42e6b4a68ea502f4ffaffd8c8880 (diff)
[REF] procurement: revert solution on issue if mrp is not install, procurement gone in idle state and sale order is not close and also invoice is not created if postpaid policy and put tag TOFIX to mention other issues
bzr revid: hmo@tinyerp.com-20111215105520-3h9ndu1i4zby1r99
Diffstat (limited to 'addons/procurement/procurement_workflow.xml')
-rw-r--r--addons/procurement/procurement_workflow.xml28
1 files changed, 18 insertions, 10 deletions
diff --git a/addons/procurement/procurement_workflow.xml b/addons/procurement/procurement_workflow.xml
index ed0aff2d4f5..53b6608fa6f 100644
--- a/addons/procurement/procurement_workflow.xml
+++ b/addons/procurement/procurement_workflow.xml
@@ -50,12 +50,14 @@
<field name="wkf_id" ref="wkf_procurement"/>
<field name="name">produce_check</field>
</record>
+ <!-- act_produce_service should be move in project_mrp module. -->
<record id="act_produce_service" model="workflow.activity">
<field name="wkf_id" ref="wkf_procurement"/>
<field name="name">produce_service</field>
<field name="kind">function</field>
<field name="action">action_produce_assign_service()</field>
</record>
+
<record id="act_make_done" model="workflow.activity">
<field name="wkf_id" ref="wkf_procurement"/>
<field name="name">ready</field>
@@ -163,11 +165,7 @@
<field name="act_to" ref="act_produce_check"/>
<field name="condition">check_produce()</field>
</record>
- <record id="trans_product_check_produce_service" model="workflow.transition">
- <field name="act_from" ref="act_produce_check"/>
- <field name="act_to" ref="act_produce_service"/>
- <field name="condition">not check_product()</field>
- </record>
+
<record id="trans_make_to_stock_make_done" model="workflow.transition">
<field name="act_from" ref="act_make_to_stock"/> <!-- TOFIX: If product is service product and procure method is 'make_to_stock', procurement is closed without generated service -->
<field name="act_to" ref="act_make_done"/>
@@ -175,20 +173,30 @@
<field name="trigger_model" eval="False"/>
<field name="trigger_expr_id" eval="False"/>
</record>
- <record id="trans_produce_service_cancel" model="workflow.transition">
- <field name="act_from" ref="act_produce_service"/>
- <field name="act_to" ref="act_cancel"/>
- <field name="signal">subflow.cancel</field>
- </record>
+ <!-- TOFIX: Without installing 'mrp' module, If product is produce(mto), procurement never close (Its gone in idle) so sale order never close and also invoice never created if post paid invoice. solution of this issue is below, just add one transition from act_produce_check to act_make_done -->
+ <!--
<record id="trans_produce_make_done" model="workflow.transition">
<field name="act_from" ref="act_produce_check"/>
<field name="act_to" ref="procurement.act_make_done"/>
<field name="condition">check_product()</field>
+ </record> -->
+
+ <!-- TOFIX: service related transition should be move into project_mrp module. -->
+ <record id="trans_product_check_produce_service" model="workflow.transition">
+ <field name="act_from" ref="act_produce_check"/>
+ <field name="act_to" ref="act_produce_service"/>
+ <field name="condition">not check_product()</field>
+ </record>
+ <record id="trans_produce_service_cancel" model="workflow.transition">
+ <field name="act_from" ref="act_produce_service"/>
+ <field name="act_to" ref="act_cancel"/>
+ <field name="signal">subflow.cancel</field>
</record>
<record id="trans_produce_service_make_done" model="workflow.transition">
<field name="act_from" ref="act_produce_service"/>
<field name="act_to" ref="act_make_done"/>
</record>
+
<record id="trans_make_done_done" model="workflow.transition">
<field name="act_from" ref="act_make_done"/>
<field name="act_to" ref="act_done"/>