← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 567872] Re: function field updation problem with store attribute

 

I think the aim is little bit off the track.

Why would one functional field need to depend on another functional
field?

To simplify, the calculation of price_unit should be extended to get the
value for amount_untaxed.

Thanks.

** Changed in: openobject-server
       Status: New => Won't Fix

** Changed in: openobject-server
    Milestone: 5.0.12 => None

** Changed in: openobject-server
    Milestone: None => 5.0.12

** Changed in: openobject-server
    Milestone: 5.0.12 => 5.0.15

** Changed in: openobject-server
    Milestone: 5.0.15 => None

-- 
function field updation problem with store attribute
https://bugs.launchpad.net/bugs/567872
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.

Status in OpenObject Server: Won't Fix

Bug description:
stable version of openerp server 5.0, revision number 2038
In function field store attribute we define dictionary having objects with fields based on which function field value get updated.
Like in sales module sale.py

'amount_untaxed': fields.function(_amount_all, method=True, digits=(16, int(config['price_accuracy'])), string='Untaxed Amount',
            store = {
                'sale.order.line': (_get_order, ['price_unit''], 10),
            },
            multi='sums'),

It works fine, if 'price_unit' is basic field. But when it is function field 'amount_untaxed' value not updated on changes of price_unit field's value.