KERNEL: add store option to fields function
bzr revid: ced-17d946adacaac3739a20deac550b1c560f1d432d
This commit is contained in:
parent
ca338643f2
commit
1c778b26a6
|
@ -126,8 +126,8 @@ class account_invoice(osv.osv):
|
|||
|
||||
'move_id': fields.many2one('account.move', 'Invoice Movement', readonly=True),
|
||||
'amount_untaxed': fields.function(_amount_untaxed, method=True, digits=(16,2),string='Untaxed Amount'),
|
||||
'amount_tax': fields.function(_amount_tax, method=True, string='Tax'),
|
||||
'amount_total': fields.function(_amount_total, method=True, string='Total'),
|
||||
'amount_tax': fields.function(_amount_tax, method=True, string='Tax', store=True),
|
||||
'amount_total': fields.function(_amount_total, method=True, string='Total', store=True),
|
||||
'currency_id': fields.many2one('res.currency', 'Currency', required=True, readonly=True, states={'draft':[('readonly',False)]}),
|
||||
'journal_id': fields.many2one('account.journal', 'Journal', required=True, relate=True,readonly=True,
|
||||
states={'draft':[('readonly',False)]}),
|
||||
|
|
|
@ -69,7 +69,7 @@ class account_invoice(osv.osv):
|
|||
('tax_excluded','Tax excluded')
|
||||
], 'Price method', required=True),
|
||||
'amount_untaxed': fields.function(_amount_untaxed, method=True, string='Untaxed Amount'),
|
||||
'amount_total': fields.function(_amount_total, method=True, string='Total'),
|
||||
'amount_total': fields.function(_amount_total, method=True, string='Total', store=True),
|
||||
}
|
||||
_defaults = {
|
||||
'price_type': lambda *a: 'tax_excluded',
|
||||
|
|
Loading…
Reference in New Issue