mirror of
https://github.com/bringout/oca-ocb-core.git
synced 2026-04-19 11:11:59 +02:00
Initial commit: Core packages
This commit is contained in:
commit
12c29a983b
9512 changed files with 8379910 additions and 0 deletions
|
|
@ -0,0 +1,3 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
|
||||
from . import controllers
|
||||
|
|
@ -0,0 +1,25 @@
|
|||
{%- set mod = name|snake -%}
|
||||
{%- set model = "%s.%s"|format(mod, mod) -%}
|
||||
{%- set root = "/%s/%s"|format(mod, mod) -%}
|
||||
# -*- coding: utf-8 -*-
|
||||
# from odoo import http
|
||||
|
||||
|
||||
# class {{ mod|pascal }}(http.Controller):
|
||||
# @http.route('{{ root }}', auth='public')
|
||||
# def index(self, **kw):
|
||||
# return "Hello, world"
|
||||
|
||||
# @http.route('{{ root }}/objects', auth='public')
|
||||
# def list(self, **kw):
|
||||
# return http.request.render('{{ mod }}.listing', {
|
||||
# 'root': '{{ root }}',
|
||||
# 'objects': http.request.env['{{ model }}'].search([]),
|
||||
# })
|
||||
|
||||
# @http.route('{{ root }}/objects/<model("{{ model }}"):obj>', auth='public')
|
||||
# def object(self, obj, **kw):
|
||||
# return http.request.render('{{ mod }}.object', {
|
||||
# 'object': obj
|
||||
# })
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue