Merge lp:~openerp-dev/openobject-addons/trunk-bug-941817-amp into lp:openobject-addons

Proposed by Amit Parik
Status: Work in progress
Proposed branch: lp:~openerp-dev/openobject-addons/trunk-bug-941817-amp
Merge into: lp:openobject-addons
Diff against target: 25 lines (+3/-2)
2 files modified
account/account_invoice_view.xml (+1/-1)
account/account_invoice_workflow.xml (+2/-1)
To merge this branch: bzr merge lp:~openerp-dev/openobject-addons/trunk-bug-941817-amp
Reviewer Review Type Date Requested Status
Stefan Rijnhart (Opener) (community) Disapprove
Amit Parik (community) Abstain
OpenERP Core Team Pending
Review via email: mp+102096@code.launchpad.net

Description of the change

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!

To post a comment you must log in.
Revision history for this message
Amit Parik (amit-parik) wrote :

This thing is already improved on trunk, Please see "Recompute taxes and total" button on account_invoice_view.xml.

So I request to core team please reject my this MP.

Thanks!

review: Abstain
Revision history for this message
Stefan Rijnhart (Opener) (stefan-opener) wrote :

For the record, lp:941817 is not solved in 7.0. This branch fixes the problem correctly at least in 6.1.

review: Approve
Revision history for this message
Stefan Rijnhart (Opener) (stefan-opener) wrote :

On second thoughts, the fix in this proposal does not allow the user to change the tax amount to fix a rounding difference for instance, which is allowed if the user creates an invoice directly. I implemented a fix that follows the same procedure as is the case when the invoice is validated: https://code.launchpad.net/~therp-nl/openobject-addons/7.0-lp941817-autocompute_taxes_on_proforma/+merge/159701

review: Disapprove

Unmerged revisions

6732. By Amit Parik

[FIX] Account : Pro-forma invoice button calculated the taxes

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== 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 @@
290 </group>290 </group>
291 <group col="4" colspan="2">291 <group col="4" colspan="2">
292 <group colspan="2" col="1">292 <group colspan="2" col="1">
293 <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"/>293 <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"/>
294 </group>294 </group>
295 <field name="amount_untaxed"/>295 <field name="amount_untaxed"/>
296 <label string="" colspan="2"/>296 <label string="" colspan="2"/>
297297
=== 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 @@
17 <record id="act_proforma2" model="workflow.activity">17 <record id="act_proforma2" model="workflow.activity">
18 <field name="wkf_id" ref="wkf"/>18 <field name="wkf_id" ref="wkf"/>
19 <field name="name">proforma2</field>19 <field name="name">proforma2</field>
20 <field name="action">write({'state':'proforma2'})</field>20 <field name="action">write({'state':'proforma2'})
21 button_reset_taxes()</field>
21 <field name="kind">function</field>22 <field name="kind">function</field>
22 </record>23 </record>
2324

Subscribers

People subscribed via source and target branches

to all changes: