Account Invoice compute method does not working properly without account_voucher

Bug #664897 reported by Jacara
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo Addons (MOVED TO GITHUB)
Invalid
Undecided
Unassigned

Bug Description

I'm testing rc1 code and I installed account module without account_voucher module.

Then i create Customer Invoice and confirmed. But Residual field appearing zero. It is a BUG?

Please check this.

Thanks

Revision history for this message
Jacara (baskhuujacara) wrote :

I explored some code in addons/account/invoice.py.

I think the reason :
  method of function field _amount_residual is called before _account_all.
  the residual field set before total_amount field.

then after confirmed that invoice total_amount = 100.0, residual = 0.0

Revision history for this message
Jacara (baskhuujacara) wrote :

If i click button 'Compute Taxes' before Confirm Invoice then total_amount field value has been set. And after confirm invoice residual field has correct.

I think when user don't clicked 'Compute Taxes' button before confirm invoice then it's must raise warning.

Revision history for this message
JMA(Open ERP) (jma-openerp) wrote :

Hello Jacara,

After tracing the same scenario it seems thinks are working as expected for us.

The 'Compute Taxes' button would update the relevant functional fields only if you click, if you don't click its obvious they would not be updated.
Even if I don't click on 'Compute Taxes' button, but when I click on 'Validate' things get updated.

This is very normal and not a bug.
Thanks.

Revision history for this message
Jay Vora (Serpent Consulting Services) (jayvora) wrote :

Jacara,

If the residual field stays 0 even if the amount total is non-zero and invoice is not paid, it can be called a bug.
Let us know more if you still face it(screenshots will help).

We have checked it and it appears like a pretty normal scenario being shown.

Thanks.

Changed in openobject-addons:
milestone: none → 6.0-rc2
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.