Comment 9 for bug 552386

Revision history for this message
Eric Vernichon (eric-vernichon) wrote :

Hello,

This patch not working if the field function contains store function with an object not equal to the object containing the field function

For example

        'amount_untaxed': fields.function(_amount_all, method=True, digits=(16, int(config['price_accuracy'])), string='Untaxed Amount',
            store = {
                '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'),

only the first function is removed in _store_function

Thanks.