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
1=== modified file 'account/account_invoice_view.xml'
2--- account/account_invoice_view.xml 2012-04-05 16:55:29 +0000
3+++ account/account_invoice_view.xml 2012-04-16 12:34:26 +0000
4@@ -290,7 +290,7 @@
5 </group>
6 <group col="4" colspan="2">
7 <group colspan="2" col="1">
8- <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"/>
9+ <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"/>
10 </group>
11 <field name="amount_untaxed"/>
12 <label string="" colspan="2"/>
13
14=== modified file 'account/account_invoice_workflow.xml'
15--- account/account_invoice_workflow.xml 2012-03-19 10:38:23 +0000
16+++ account/account_invoice_workflow.xml 2012-04-16 12:34:26 +0000
17@@ -17,7 +17,8 @@
18 <record id="act_proforma2" model="workflow.activity">
19 <field name="wkf_id" ref="wkf"/>
20 <field name="name">proforma2</field>
21- <field name="action">write({'state':'proforma2'})</field>
22+ <field name="action">write({'state':'proforma2'})
23+ button_reset_taxes()</field>
24 <field name="kind">function</field>
25 </record>
26

Subscribers

People subscribed via source and target branches

to all changes: