[MOV][IMP] web_tour: reorganize files, clean imports, replace openerp tags and add license

This commit is contained in:
fwi-odoo
2016-08-03 13:42:26 +02:00
committed by Thibault Delavallée
parent 831619f623
commit 9a0c20d803
6 changed files with 20 additions and 11 deletions
+3
View File
@@ -1 +1,4 @@
# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
import models
+4 -2
View File
@@ -1,4 +1,6 @@
# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
{
'name': 'Tours',
'category': 'Hidden',
@@ -10,8 +12,8 @@ Odoo Web tours.
'version': '0.1',
'depends': ['web'],
'data': [
'assets.xml',
'views/tour.xml'
'views/tour_templates.xml',
'views/tour_views.xml'
],
'qweb': [
"static/src/xml/*.xml",
+3
View File
@@ -1,3 +1,6 @@
# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
import ir_http
import ir_ui_menu
import tour
+6 -2
View File
@@ -1,5 +1,9 @@
from openerp import models
from openerp.http import request
# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
from odoo import models
from odoo.http import request
class Http(models.AbstractModel):
_inherit = 'ir.http'
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<openerp>
<odoo>
<data>
<template id="assets_common" name="tours assets" inherit_id="web.assets_common">
<xpath expr="." position="inside">
@@ -17,4 +17,4 @@
</xpath>
</template>
</data>
</openerp>
</odoo>
@@ -1,7 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<openerp>
<data>
<odoo>
<record id="edit_tour_list" model="ir.ui.view">
<field name="model">web_tour.tour</field>
<field name="arch" type="xml">
@@ -28,5 +26,4 @@
<field name="search_view_id" ref="edit_tour_search"/>
</record>
<menuitem action="edit_tour_action" id="menu_tour_action" parent="base.next_id_2" sequence="5"/>
</data>
</openerp>
</odoo>