← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 674405] Re: V6.0-RC1-Decimal_precision could be used to manage rounded all tax included product price

 

Hervé,

As you mentioned in v5 you could use the various *_tax_include modules to achieve what you want. 
In v6 this is part of the core addons, so all you need is to use the tax included features, by marking your 5.5% tax as included in prices (just tick the box on the tax definition)

-- 
V6.0-RC1-Decimal_precision could be used to manage rounded all tax included product price
https://bugs.launchpad.net/bugs/674405
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: Won't Fix

Bug description:
Platform: Ubuntu 10.04-OpenERP 6-RC1
1) It is not possible to manage decimal_precision on list_price to make sure that all tax included price presented to customers will be correctly rounded
eg. I want the public price (all tax included) to be 2.40 ; VAT = 5.5% ; if list_price uses 2 digits, it is impossible to show 2.40 (either 2.27 => 2.39 or 2.28 => 2.41)

In V5, you need to use the sale_tax_included module. 

2) Proposal
- Change variable 'Sale Price' to 'Sale Price woTax' in product.py
Line 240 : 'list_price':
fields.float('Sale Price', digits_compute=dp.get_precision('Sale Price woTax'), help="Base price for computing the customer price. Sometimes called the catalog price."),
Line 425 & 426 :
'price': fields.function(_product_price, method=True, type='float', string='Pricelist', digits_compute=dp.get_precision('Sale Price woTax')),
'lst_price' : fields.function(_product_lst_price, method=True, type='float', string='List Price', digits_compute=dp.get_precision('Sale Price woTax')),

- add a variable in decimal_precision: Usage : Sale Price woTax ; Digits : x





Follow ups

References