diff options
| author | Denis Ledoux <dle@odoo.com> | 2019-10-11 14:59:39 +0000 |
|---|---|---|
| committer | fw-bot <otis@odoo.com> | 2019-11-21 18:21:40 +0000 |
| commit | a1fc9c04276de20691cea82b55717704f05b49b2 (patch) | |
| tree | f17cbe9a3cf85d85033b832eb0889575e4a124cb /odoo/cli/templates/default/controllers/controllers.py.template | |
| parent | eebe6ec8d4f9a241e9f760a8661d880d0bd44dc1 (diff) | |
[FIX] scaffold: clean the templates:
- Add blank lines at end of python files (pep8)
- Easier uncomment (entire blocks, and no remaining whitespaces in empty lines)
- Add `_description` to model to avoid the warning telling it's missing
- Correct compute field, `self.value` raised an `ensure_one` issue
- Change access so the user can add/edit/delete records in the web interface
by default
- Correct the server action, `self` is not in the server action context.
closes odoo/odoo#40659
X-original-commit: 622615771d0a6f8544f6810f30df46aea0e0fb9c
Signed-off-by: Denis Ledoux (dle) <dle@odoo.com>
Diffstat (limited to 'odoo/cli/templates/default/controllers/controllers.py.template')
| -rw-r--r-- | odoo/cli/templates/default/controllers/controllers.py.template | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/odoo/cli/templates/default/controllers/controllers.py.template b/odoo/cli/templates/default/controllers/controllers.py.template index 0dabc367ae9..de179de7d0b 100644 --- a/odoo/cli/templates/default/controllers/controllers.py.template +++ b/odoo/cli/templates/default/controllers/controllers.py.template @@ -2,7 +2,8 @@ {%- set model = "%s.%s"|format(mod, mod) -%} {%- set root = "/%s/%s"|format(mod, mod) -%} # -*- coding: utf-8 -*- -from odoo import http +# from odoo import http + # class {{ mod|pascal }}(http.Controller): # @http.route('{{ root }}/', auth='public') @@ -21,3 +22,4 @@ from odoo import http # return http.request.render('{{ mod }}.object', { # 'object': obj # }) + |
