Explanation of OpenSEP fields. ()

I got this code from stock.py file and line number 163

'complete_name': fields.function(_complete_name, type='char', size=256, string="Location Name",
                    store={'stock.location': (_get_sublocations, ['name', 'location_id'], 10)}),

Please explain the store attribute in the field above.

can be used fields.function(with type = 'many2one'? if please give me a reference sample sample or model class sample in openerp 7

+5
source share
2 answers

'store' = True will store the field value in the database. After saving, the function of the function fields will not be executed again.

"store" , (key of the dictionary will be a model name and value will a tuple with list of ids, list of field name and 10-i dont know:-() / , , / - , , , ,

+5

fields.function :

.

, .

+3

All Articles