[MOV][IMP] web_diagram: reorganize files, add license and clean imports

This commit is contained in:
fwi-odoo
2016-08-03 13:42:06 +02:00
committed by Thibault Delavallée
parent d8b652d706
commit 271ba327b4
5 changed files with 23 additions and 8 deletions
+3
View File
@@ -1 +1,4 @@
# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
from . import controllers
+5 -2
View File
@@ -1,3 +1,6 @@
# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
{
'name': 'Odoo Web Diagram',
'category': 'Hidden',
@@ -8,8 +11,8 @@ Openerp Web Diagram view.
""",
'version': '2.0',
'depends': ['web'],
'data' : [
'views/web_diagram.xml',
'data': [
'views/web_diagram_templates.xml',
],
'qweb': [
'static/src/xml/*.xml',
@@ -1 +1,4 @@
# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
from . import main
+10 -4
View File
@@ -1,9 +1,15 @@
import openerp
from openerp.tools.safe_eval import safe_eval as eval
# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
class DiagramView(openerp.http.Controller):
import odoo
import odoo.http as http
@openerp.http.route('/web_diagram/diagram/get_diagram_info', type='json', auth='user')
from odoo.tools.safe_eval import safe_eval as eval
class DiagramView(http.Controller):
@http.route('/web_diagram/diagram/get_diagram_info', type='json', auth='user')
def get_diagram_info(self, req, id, model, node, connector,
src_node, des_node, label, **kw):
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<openerp>
<odoo>
<data>
<template id="assets_backend" name="web_diagram assets" inherit_id="web.assets_backend">
<xpath expr="." position="inside">
@@ -10,4 +10,4 @@
</xpath>
</template>
</data>
</openerp>
</odoo>