← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 674398] Re: Decimal_precision does not allow to type VAT with 4 digits

 

*** This bug is a duplicate of bug 667316 ***
    https://bugs.launchpad.net/bugs/667316

I think there is already an internal task for improving this situation,
and allow defining taxes that need more decimal digits. Assigning to
accounting team for review by the team leader

** Changed in: openobject-addons
       Status: New => Confirmed

** Changed in: openobject-addons
     Assignee: (unassigned) => OpenERP R&D Addons Team 3 (openerp-dev-addons3)

-- 
Decimal_precision does not allow to type VAT with 4 digits
https://bugs.launchpad.net/bugs/674398
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.

Status in OpenObject Addons Modules: Confirmed

Bug description:
Platform: Ubuntu 10.04-OpenERP 6-RC1
1) Digits used for VAT percentage are linked to decimal_precision variable 'Account' in account.py.
For normal configuration, digits = 2. It means that you cannot type 0.1925 if your VAT equals 19,25%.
If you change value of 'Account' to 4, then all your account amounts show 4 digits.
2) Proposal :
Change 'Account' to 'TaxAmount' in account.py in line 1658 :
'amount': fields.float('Amount', required=True, digits_compute=dp.get_precision('TaxAmount'), help="For taxes of type percentage, enter % ratio between 0-1."),
Create new variable in decimal accuracy menu : Usage: TaxAmount ; Digits: 4 (as an example)

This bug is completed by two other bugs around the same issue: decimal_precision:
- Change 'Sale Price' to 'Sale Price woTax' on List_price in product.py
- Allow change of decimals by default in configuration (and not in decimal_precision.py) to manage currencies without decimals







References