c2c-oerpscenario team mailing list archive
-
c2c-oerpscenario team
-
Mailing list archive
-
Message #27148
[Bug 800970] Re: [6.0] osv_memory cannot change decimal precision of fields, and probably because it ignores it
Hello Graeme,
First thanks for the nice explanation!
I have checked this issue But I am not agree with your this point
"osv.osv_memory does not respect the digits_compute argument."
Because in your case1 which is already posted on lp please check the lp
:788064 and this issue is already fix committed just see the revision
http://bazaar.launchpad.net/~openerp-dev/openobject-addons/trunk-
bug-788064-mma/revision/4765
I have applied this patch at my end and it is working as fine so there
in no issue with osv.osv_memory just missing the pass digits_compute =
dp.get_precision('Purchase Price') in to cost field of the partial
picking wizard.
I have attached a video on this after applied the above revision's patch
so would you please check it and notify us about your problem and
correct me is I am wrong on this.
And your first issue which is "use the same precision for all unit
prices" I think this is your wish and which needs more improvement so
for this issue I am suggesting, you have to post a another bug report
which is as a "Wishlist" or you can post your this suggestion on
feedback@xxxxxxxxxxxx so our experts can check it and review it.
Thanks and Waiting for your reply!
--
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.
https://bugs.launchpad.net/bugs/800970
Title:
osv_memory cannot change decimal precision of fields, and probably
because it ignores it
Status in OpenERP Modules (addons):
Incomplete
Bug description:
A while back I reported a bug about rounding too early, and that we
needed to have seperate unit price precision as well as totals and use
the same precision for all unit prices regardless of document, and the
same total precision regardless of document or else we have strange
errors.
Anyhow, while the problem was agreed and recognised it was deemed too
big a change. So I went about changing it myself. It works perfectly
with just one exception. osv_memory fields. Now truthfully I think
the problem might be that they don't respect decimal precision at all.
However they definitely can't be changed by inheritance.
So case 1. Does not respect decimal precision at all. Change UoM
precision to 3. Raise a PO for 1 product, so 2.555 units of (although
it doesn't matter), go to the incoming shipments and you will see the
quantity with 3 decimal places. Now press validate and the wizard
pops with just 2 decimal places. Hmmm.
Case 2 is a bit trickier. However is case 1 is the bug, then you
might not need to do this. Create a new Decimal Precision called
unit. with a precision of 5 digits.
Now create a module which inherits some objects, say product.template
changing standard price decimal precision to be 'unit', and
stock.change.standard.price changing new price to 'unit' (Note 1 is
osv the other osv_memory). Find a product, give it a cost method of
standard price and you will see 5 digits. enter .07654, then change
it to average cost. So we have 5 digits. Now click update standard
price and see only 2 decimals (or receive a shipment priced at 0.07654
if you have set Purchase Price precision also to 5 and low and behold
our average cost is 0.08)
Now for the awful workaround - use digits=(16,5) in osv_memory field
definition and it works fine with inheritance, which leads me to the
conclusion that in fact the bug is osv.osv_memory does not respect the
digits_compute argument.
To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-addons/+bug/800970/+subscriptions
References