Odoo Help


set track_visibility onchange for filed function

on 2/14/14, 5:18 AM 2,532 views

I wrote a new column, fileds.function and tried to set the track_visibility to onchange, but it does not work.

I noticed that in the existing field "amount_untaxted" from sale.order works fine with track_visibility="always". But when I tried to override the filed and change the track_visibility='onchange', it does not work any more.

please advise.

    'amount_untaxed': fields.function(_amount_all, digits_compute=dp.get_precision('Account'), string='Untaxed Amount',
            'sale.order': (lambda self, cr, uid, ids, c={}: ids, ['order_line'], 10),
            'sale.order.line': (_get_order, ['price_unit', 'tax_id', 'discount', 'product_uom_qty'], 10),
        multi='sums', help="The amount without tax.", track_visibility='always'),

Thanks very much in advance.

About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

2 follower(s)


Asked: 2/14/14, 5:18 AM
Seen: 2532 times
Last updated: 3/16/15, 8:10 AM