[ADD] Test module

Test suite is still todo

bzr revid: fme@openerp.com-20140326151411-moo1yuozvpgro1mh
This commit is contained in:
Fabien Meghazi 2014-03-26 16:14:11 +01:00
parent 62a5632aec
commit 0195f0d817
4 changed files with 71 additions and 0 deletions

View File

@ -0,0 +1,37 @@
# -*- coding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2013-Today OpenERP SA (<http://www.openerp.com>).
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
##############################################################################
{
'name': 'Test Module',
'category': 'Website',
'summary': 'Custom',
'version': '1.0',
'description': """
Test
""",
'author': 'OpenERP SA',
'depends': ['website'],
'data': [
'test.xml',
],
'installable': True,
'application': True,
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 24 KiB

View File

@ -0,0 +1 @@
console.log('test_module javascript');

View File

@ -0,0 +1,33 @@
<?xml version="1.0" encoding="utf-8"?>
<openerp>
<data>
<!-- TODO: make test suite -->
<record id="base.main_company2" model="res.company">
<field name="name">Module Import Success</field>
</record>
<record id="main_company2" model="res.company">
<field name="name">Hagrid</field>
<field name="rml_header1">Your Company Tagline</field>
<field name="currency_id" ref="base.EUR"/>
</record>
<template id="test" name="Test Page" page="True">
<t t-call="website.layout">
<h1>
This page comes from an imported module!
</h1>
<p>
And this static image too !
<img src="/test_module/static/src/img/c64.png"/>
</p>
</t>
</template>
<template id="website.contactus" name="Test Import" page="True">
<t t-call="website.layout">
<h1>This page has been overwritten by an uploaded module</h1>
</t>
</template>
</data>
</openerp>