[MIG] website_form_editor: Migrate to new api

This commit is contained in:
Jitendra Prajapati
2016-08-02 13:18:57 +02:00
committed by Yannick Tivisse
parent 4a96622753
commit 13e0cacc63
8 changed files with 21 additions and 14 deletions
+2
View File
@@ -0,0 +1,2 @@
# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
+2
View File
@@ -1,3 +1,5 @@
# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
{
'name': 'Website Form Builder',
'category': 'Website',
-2
View File
@@ -1,6 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<data>
<record id="mail.model_mail_mail" model="ir.model">
<field name="website_form_default_field_id" ref="mail.field_mail_mail_body_html" />
<field name="website_form_access">True</field>
@@ -17,5 +16,4 @@
'attachment_ids',
]"/>
</function>
</data>
</odoo>
+3
View File
@@ -1 +1,4 @@
# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
import test_website_form_editor
+9 -4
View File
@@ -1,7 +1,12 @@
import openerp.tests
@openerp.tests.common.at_install(False)
@openerp.tests.common.post_install(True)
class TestWebsiteFormEditor(openerp.tests.HttpCase):
# Part of Odoo. See LICENSE file for full copyright and licensing details.
# -*- coding: utf-8 -*-
import odoo.tests
@odoo.tests.common.at_install(False)
@odoo.tests.common.post_install(True)
class TestWebsiteFormEditor(odoo.tests.HttpCase):
def test_tour(self):
self.phantom_js("/", "odoo.__DEBUG__.services['web.Tour'].run('website_form_editor_tour', 'test')", "odoo.__DEBUG__.services['web.Tour'].tours.website_form_editor_tour", login="admin")
self.phantom_js("/", "odoo.__DEBUG__.services['web.Tour'].run('website_form_editor_tour_submit', 'test')", "odoo.__DEBUG__.services['web.Tour'].tours.website_form_editor_tour_submit")
+1
View File
@@ -1,3 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<record id="ir_model_view" model="ir.ui.view">
+2 -4
View File
@@ -1,6 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<openerp>
<data>
<odoo>
<template id="s_website_form" name="Form Builder">
<form action="/website_form/" method="post" class="s_website_form form-horizontal container-fluid mt32" enctype="multipart/form-data">
@@ -95,5 +94,4 @@
</xpath>
</template>
</data>
</openerp>
</odoo>
+2 -4
View File
@@ -1,6 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<openerp>
<data>
<odoo>
<template id="assets_editor" name="Website Form Editor Assets Editor" inherit_id="website.assets_editor">
<xpath expr="." position="inside">
@@ -14,5 +13,4 @@
</xpath>
</template>
</data>
</openerp>
</odoo>