Amit Parik (OpenERP) has proposed merging 
lp:~openerp-dev/openobject-addons/trunk-bug-941817-amp into 
lp:openobject-addons.

Requested reviews:
  OpenERP Core Team (openerp)
Related bugs:
  Bug #941817 in OpenERP Addons: "Draft invoice to pro-forma without check tax"
  https://bugs.launchpad.net/openobject-addons/+bug/941817

For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-941817-amp/+merge/102096

Hello,

Pro-forma invoice should be calculated the taxes because If user forget to 
"Compute Taxes" then It will creates a problem.

This fix will solved the problem please see lp:941817 's comment#7.

Thank you!
-- 
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-941817-amp/+merge/102096
Your team OpenERP R&D Team is subscribed to branch 
lp:~openerp-dev/openobject-addons/trunk-bug-941817-amp.
=== modified file 'account/account_invoice_view.xml'
--- account/account_invoice_view.xml	2012-04-05 16:55:29 +0000
+++ account/account_invoice_view.xml	2012-04-16 12:34:26 +0000
@@ -290,7 +290,7 @@
                             </group>
                             <group col="4" colspan="2">
                                 <group colspan="2" col="1">
-                                    <button name="button_reset_taxes" states="draft,proforma2" string="Compute Taxes" type="object" groups="base.group_user" icon="terp-stock_format-scientific" help="This action will erase taxes"/>
+                                    <button name="button_reset_taxes" states="draft" string="Compute Taxes" type="object" groups="base.group_user" icon="terp-stock_format-scientific" help="This action will erase taxes"/>
                                 </group>
                                 <field name="amount_untaxed"/>
                                 <label string="" colspan="2"/>

=== modified file 'account/account_invoice_workflow.xml'
--- account/account_invoice_workflow.xml	2012-03-19 10:38:23 +0000
+++ account/account_invoice_workflow.xml	2012-04-16 12:34:26 +0000
@@ -17,7 +17,8 @@
         <record id="act_proforma2" model="workflow.activity">
             <field name="wkf_id" ref="wkf"/>
             <field name="name">proforma2</field>
-            <field name="action">write({'state':'proforma2'})</field>
+            <field name="action">write({'state':'proforma2'})
+				button_reset_taxes()</field>
             <field name="kind">function</field>
         </record>
 

_______________________________________________
Mailing list: https://launchpad.net/~openerp-dev-gtk
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~openerp-dev-gtk
More help   : https://help.launchpad.net/ListHelp

Reply via email to