[IMP] doc: fields names shouldn't overwrite python methods

The documentation should be an example of good practices

closes odoo/odoo#27262
This commit is contained in:
mreficent
2018-10-10 06:58:01 +00:00
committed by Martin Trigaux
parent a543063d07
commit cfaf1f5ac5
+1 -1
View File
@@ -862,7 +862,7 @@ Symbols and Conventions
seats_available = fields.Integer(oldname='register_avail', string='Available Seats',
store=True, readonly=True, compute='_compute_seats')
price = fields.Integer(string='Price')
type = fields.Selection(string="Type", selection='_selection_type')
event_type = fields.Selection(string="Type", selection='_selection_type')
# compute and search fields, in the same order of fields declaration
@api.multi