Merge lp:~openerp-dev/openobject-addons/6.1-opw-586838-acl into lp:openobject-addons/6.1

Proposed by Anaël Closson (openerp)
Status: Needs review
Proposed branch: lp:~openerp-dev/openobject-addons/6.1-opw-586838-acl
Merge into: lp:openobject-addons/6.1
Diff against target: 34 lines (+3/-3)
2 files modified
purchase/purchase_workflow.xml (+2/-2)
sale/sale_workflow.xml (+1/-1)
To merge this branch: bzr merge lp:~openerp-dev/openobject-addons/6.1-opw-586838-acl
Reviewer Review Type Date Requested Status
Olivier Dony (Odoo) Pending
Review via email: mp+153314@code.launchpad.net

Description of the change

  Steps to reproduce:
   - create a purchase order
   - cancel the created invoice
   - receive products (PO state changed to approved even if still in invoice exception)
   - reset the invoice to draft => pay it

  The purchase order still is in approved state even if all subprocesses are done.

  You need to edit the view and modify the "manually corrected" button visibility to change the PO state to done.

To post a comment you must log in.
7180. By Anaël Closson (openerp)

[FIX] OPW 586838 sale order shipping exception overwriting invoice_exception and then sale order cannot reach done state
Steps to reproduce :
* Create a new sale order
* Create the associated invoice
* Cancel the invoice, reset to draft
* Cancel the picking

The sale order is now in picking exception which can be manually corrected, but this change the state to 'in progress' instead of 'invoice_except'.
The patch avoids shipping exception to erase invoice_exception state.
The opposite doesn't harm, as the scheduler will notice the shipping exception.

Unmerged revisions

7180. By Anaël Closson (openerp)

[FIX] OPW 586838 sale order shipping exception overwriting invoice_exception and then sale order cannot reach done state
Steps to reproduce :
* Create a new sale order
* Create the associated invoice
* Cancel the invoice, reset to draft
* Cancel the picking

The sale order is now in picking exception which can be manually corrected, but this change the state to 'in progress' instead of 'invoice_except'.
The patch avoids shipping exception to erase invoice_exception state.
The opposite doesn't harm, as the scheduler will notice the shipping exception.

7179. By Anaël Closson (openerp)

[FIX] OPW 586838 purchase orders cannot switch to state 'done' when invoice cancelled once

Steps to reproduce:
 - create a purchase order
 - cancel the created invoice
 - receive products (PO state changed to approved even if still in invoice exception)
 - reset the invoice to draft => pay it

The purchase order still is in approved state even if all subprocesses are done.

You need to edit the view and modify the "manually corrected" button visibility to change the PO state to done.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'purchase/purchase_workflow.xml'
--- purchase/purchase_workflow.xml 2011-11-09 11:49:08 +0000
+++ purchase/purchase_workflow.xml 2013-03-14 15:19:25 +0000
@@ -55,7 +55,7 @@
55 <record id="act_invoice_done" model="workflow.activity">55 <record id="act_invoice_done" model="workflow.activity">
56 <field name="wkf_id" ref="purchase_order"/>56 <field name="wkf_id" ref="purchase_order"/>
57 <field name="name">invoice_done</field>57 <field name="name">invoice_done</field>
58 <field name="action">write({'state':'approved'})</field>58 <field name="action">(state != 'except_shipping') and write({'state':'approved'})</field>
59 <field name="kind">function</field>59 <field name="kind">function</field>
60 </record>60 </record>
61 <record id="act_invoice_end" model="workflow.activity">61 <record id="act_invoice_end" model="workflow.activity">
@@ -72,7 +72,7 @@
72 <record id="act_picking_done" model="workflow.activity">72 <record id="act_picking_done" model="workflow.activity">
73 <field name="wkf_id" ref="purchase_order"/>73 <field name="wkf_id" ref="purchase_order"/>
74 <field name="name">picking_done</field>74 <field name="name">picking_done</field>
75 <field name="action">write({'shipped':1,'state':'approved'})</field>75 <field name="action">write({'shipped':1}) and (state != 'except_invoice') and write({'state':'approved'})</field>
76 <field name="kind">function</field>76 <field name="kind">function</field>
77 <field name="signal_send">subflow.delivery_done</field>77 <field name="signal_send">subflow.delivery_done</field>
78 </record>78 </record>
7979
=== modified file 'sale/sale_workflow.xml'
--- sale/sale_workflow.xml 2011-12-19 16:54:40 +0000
+++ sale/sale_workflow.xml 2013-03-14 15:19:25 +0000
@@ -94,7 +94,7 @@
94 <field name="wkf_id" ref="wkf_sale"/>94 <field name="wkf_id" ref="wkf_sale"/>
95 <field name="name">ship_except</field>95 <field name="name">ship_except</field>
96 <field name="kind">function</field>96 <field name="kind">function</field>
97 <field name="action">write({'state':'shipping_except'})</field>97 <field name="action">(state != 'invoice_except') and write({'state':'shipping_except'})</field>
98 </record>98 </record>
99 <record id="act_ship_end" model="workflow.activity">99 <record id="act_ship_end" model="workflow.activity">
100 <field name="wkf_id" ref="wkf_sale"/>100 <field name="wkf_id" ref="wkf_sale"/>