diff options
| author | Fabien Pinckaers <fp@tinyerp.com> | 2010-03-10 16:23:52 +0100 |
|---|---|---|
| committer | Fabien Pinckaers <fp@tinyerp.com> | 2010-03-10 16:23:52 +0100 |
| commit | c8b1ffac18aaf0e1b7e944dbbd63edf00edf8941 (patch) | |
| tree | 8de94d7753b1cf39e8b026120e756b03781ed5af /addons/html_view | |
| parent | 36788afa1a982c914f41e00f9b54d579b904cce7 (diff) | |
| parent | 49738feae5ff778be8c9ca7da67ca649dc0480b2 (diff) | |
merge
bzr revid: fp@tinyerp.com-20100310152352-9a1yga9rt7aqebvv
Diffstat (limited to 'addons/html_view')
| -rw-r--r-- | addons/html_view/__init__.py | 1 | ||||
| -rw-r--r-- | addons/html_view/__terp__.py | 17 | ||||
| -rw-r--r-- | addons/html_view/html_view.py | 13 | ||||
| -rw-r--r-- | addons/html_view/html_view.xml | 41 |
4 files changed, 72 insertions, 0 deletions
diff --git a/addons/html_view/__init__.py b/addons/html_view/__init__.py new file mode 100644 index 00000000000..465ad75ffe0 --- /dev/null +++ b/addons/html_view/__init__.py @@ -0,0 +1 @@ +import html_view
\ No newline at end of file diff --git a/addons/html_view/__terp__.py b/addons/html_view/__terp__.py new file mode 100644 index 00000000000..8f32ef9eaaf --- /dev/null +++ b/addons/html_view/__terp__.py @@ -0,0 +1,17 @@ +{ + "name" : "Html View", + "version" : "1.1", + "author" : "Tiny", + "category" : "Generic Modules/Inventory Control", + "depends" : ['base'], + "init_xml" : ['html_view.xml'], + "demo_xml" : [], + "description": """ + This is the test module which shows html tag supports in normal xml form view. + """, + 'update_xml': ['html_view.xml'], + 'installable': True, + 'active': False, + 'certificate': '', +} +# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
\ No newline at end of file diff --git a/addons/html_view/html_view.py b/addons/html_view/html_view.py new file mode 100644 index 00000000000..79f4bd7d0b9 --- /dev/null +++ b/addons/html_view/html_view.py @@ -0,0 +1,13 @@ + + +from osv import osv, fields + +class html_view(osv.osv): + _name = 'html.view' + _columns = { + 'name': fields.char('Name', size=128, required=True, select=True), + 'comp_id': fields.many2one('res.company', 'Company', select=1), + 'bank_ids': fields.one2many('res.partner.bank', 'partner_id', 'Banks'), + } + +html_view()
\ No newline at end of file diff --git a/addons/html_view/html_view.xml b/addons/html_view/html_view.xml new file mode 100644 index 00000000000..d26909586b5 --- /dev/null +++ b/addons/html_view/html_view.xml @@ -0,0 +1,41 @@ +<?xml version="1.0" encoding="utf-8"?> +<openerp> + <data> + <record id="html_view_form" model="ir.ui.view"> + <field name="name">htmlform</field> + <field name="model">html.view</field> + <field name="type">form</field> + <field name="arch" type="xml"> + <form string="Html Example"> + <html> + <h2>This is Test Html Page </h2> + <table> + <tr> + <td> + Name : + </td> + <td> + <field name="name"/> + </td> + <td> + Company : + </td> + <td> + <field name="comp_id"/> + </td> + </tr> + </table> + <field name="bank_ids"/> + </html> + </form> + </field> + </record> + <record id="action_html_view_form" model="ir.actions.act_window"> + <field name="name">Html Test</field> + <field name="type">ir.actions.act_window</field> + <field name="res_model">html.view</field> + <field name="view_type">form</field> + </record> + <menuitem action="action_html_view_form" id="html_form" parent="base.menu_address_book" sequence="20"/> + </data> +</openerp>
\ No newline at end of file |
