From cfaf1f5ac5b634f32b6a3b65f54bf2e6761ec77c Mon Sep 17 00:00:00 2001 From: mreficent Date: Wed, 26 Sep 2018 17:39:47 +0000 Subject: [PATCH] [IMP] doc: fields names shouldn't overwrite python methods The documentation should be an example of good practices closes odoo/odoo#27262 --- doc/reference/guidelines.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/reference/guidelines.rst b/doc/reference/guidelines.rst index d7148f3aec2..1ee0c1ac92f 100644 --- a/doc/reference/guidelines.rst +++ b/doc/reference/guidelines.rst @@ -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