← Back to team overview

openerp-community-reviewer team mailing list archive

[Merge] lp:~camptocamp/openerp-humanitarian-ngo/change-button-to-send-email-in-draftpo into lp:openerp-humanitarian-ngo/purchase-wkfl

 

Romain Deheele - Camptocamp has proposed merging lp:~camptocamp/openerp-humanitarian-ngo/change-button-to-send-email-in-draftpo into lp:openerp-humanitarian-ngo/purchase-wkfl.

Requested reviews:
  OpenERP for Humanitarian Core Editors (humanitarian-core-editors)

For more details, see:
https://code.launchpad.net/~camptocamp/openerp-humanitarian-ngo/change-button-to-send-email-in-draftpo/+merge/207675

Hi,

It changes the button visible in draftpo state.
At this state, users prefer to have the possibility to send email with RFQ template instead of PO template (the purchase is still not approved)

Regards,

Romain
-- 
https://code.launchpad.net/~camptocamp/openerp-humanitarian-ngo/change-button-to-send-email-in-draftpo/+merge/207675
Your team OpenERP for Humanitarian Core Editors is requested to review the proposed merge of lp:~camptocamp/openerp-humanitarian-ngo/change-button-to-send-email-in-draftpo into lp:openerp-humanitarian-ngo/purchase-wkfl.
=== modified file 'purchase_extended/view/purchase_order.xml'
--- purchase_extended/view/purchase_order.xml	2014-02-10 13:16:22 +0000
+++ purchase_extended/view/purchase_order.xml	2014-02-21 15:24:50 +0000
@@ -25,8 +25,8 @@
                     <attribute name="states">cancel,draftpo</attribute>
                     <attribute name="string">Reset to Draft RFQ</attribute>
                 </xpath>
-                <xpath expr="//button[@string='Send PO by Email']" position="attributes">
-                    <attribute name="states">draftpo,approved</attribute>
+                <xpath expr="//button[@string='Send PO by Email']" position="after">
+                    <button name="wkf_send_rfq" states="draftpo" string="Send PO by Email" type="object" context="{'send_rfq':True}"/>
                 </xpath>
                 <xpath expr="//button[@name='bid_received']" position="attributes">
                     <attribute name="string">Bid Encoded</attribute>


Follow ups