mirror of
https://github.com/bringout/oca-ocb-accounting.git
synced 2026-04-18 23:22:07 +02:00
19.0 vanilla
This commit is contained in:
parent
ba20ce7443
commit
768b70e05e
2357 changed files with 1057103 additions and 712486 deletions
|
|
@ -0,0 +1,16 @@
|
|||
import json
|
||||
|
||||
from odoo import http
|
||||
from odoo.http import request
|
||||
|
||||
|
||||
class TestsSharedJsPython(http.Controller):
|
||||
|
||||
@http.route('/account/init_tests_shared_js_python', type='http', auth='user', website=True)
|
||||
def route_init_tests_shared_js_python(self):
|
||||
tests = json.loads(request.env['ir.config_parameter'].get_param('account.tests_shared_js_python', '[]'))
|
||||
return request.render('account.tests_shared_js_python', {'props': {'tests': tests}})
|
||||
|
||||
@http.route('/account/post_tests_shared_js_python', type='jsonrpc', auth='user')
|
||||
def route_post_tests_shared_js_python(self, results):
|
||||
request.env['ir.config_parameter'].set_param('account.tests_shared_js_python', json.dumps(results or []))
|
||||
Loading…
Add table
Add a link
Reference in a new issue