mirror of
https://github.com/bringout/oca-ocb-test.git
synced 2026-04-23 22:01:59 +02:00
Initial commit: Test packages
This commit is contained in:
commit
080accd21c
338 changed files with 32413 additions and 0 deletions
|
|
@ -0,0 +1 @@
|
|||
from . import portal
|
||||
|
|
@ -0,0 +1,14 @@
|
|||
from odoo import http
|
||||
from odoo.http import request
|
||||
|
||||
|
||||
class PortalTest(http.Controller):
|
||||
"""Implements some test portal routes (ex.: for viewing a record)."""
|
||||
|
||||
@http.route('/my/test_portal/<int:res_id>', type='http', auth='public', methods=['GET'])
|
||||
def test_portal_record_view(self, res_id, access_token=None, **kwargs):
|
||||
return request.make_response(f'Record view of test_portal {res_id} ({access_token}, {kwargs})')
|
||||
|
||||
@http.route('/test_portal/public_type/<int:res_id>', type='http', auth='public', methods=['GET'])
|
||||
def test_public_record_view(self, res_id):
|
||||
return request.make_response(f'Testing public controller for {res_id}')
|
||||
Loading…
Add table
Add a link
Reference in a new issue