Browse Source

[IMP] module_prototyper: add placeholders to fields.

12.0-mig-module_prototyper_last
Jordi Riera 10 years ago
committed by Nicolas JEUDY
parent
commit
d13457adb5
  1. 2
      module_prototyper/__openerp__.py
  2. 43
      module_prototyper/views/module_prototyper_view.xml

2
module_prototyper/__openerp__.py

@ -28,7 +28,7 @@
'website': 'http://www.savoirfairelinux.com', 'website': 'http://www.savoirfairelinux.com',
'license': 'AGPL-3', 'license': 'AGPL-3',
'category': 'Others', 'category': 'Others',
'summary': 'Prototype your module',
'summary': 'Prototype your module.',
'depends': [ 'depends': [
'admin_technical_features', 'admin_technical_features',
], ],

43
module_prototyper/views/module_prototyper_view.xml

@ -19,14 +19,13 @@
<field name="model">module_prototyper</field> <field name="model">module_prototyper</field>
<field name="arch" type="xml"> <field name="arch" type="xml">
<form string="Module"> <form string="Module">
<link rel="stylesheet"
href="/base/static/src/css/description.css"/>
<sheet> <sheet>
<field name="icon_image" widget="image" <field name="icon_image" widget="image"
class="oe_avatar oe_left"/> class="oe_avatar oe_left"/>
<div class="oe_title"> <div class="oe_title">
<h1> <h1>
<field name="human_name"/>
<field name="human_name"
placeholder="ex: Module Prototyper"/>
</h1> </h1>
<div> <div>
<button name="%(button_module_export_action)d" <button name="%(button_module_export_action)d"
@ -35,15 +34,21 @@
</div> </div>
<group> <group>
<group> <group>
<field name="name"/>
<field name="summary"/>
<field name="category_id"/>
<field name="name"
placeholder="ex: module_prototyper"/>
<field name="summary"
placeholder="ex: Prototype your module."/>
<field name="category_id"
placeholder="ex: Others, Sales, Website"/>
<field name="version"/> <field name="version"/>
</group> </group>
<group> <group>
<field name="author"/>
<field name="website" widget="url"/>
<field name="maintainer"/>
<field name="author"
placeholder="ex: Odoo Community Association"/>
<field name="website" widget="url"
placeholder="ex: http://odoo-community.org/"/>
<field name="maintainer"
placeholder="ex: Odoo Community Association"/>
<field name="auto_install"/> <field name="auto_install"/>
<field name="application"/> <field name="application"/>
</group> </group>
@ -57,10 +62,10 @@
</page> </page>
<!--Not implemented yet--> <!--Not implemented yet-->
<!--<page string="Data &amp; Demo">--> <!--<page string="Data &amp; Demo">-->
<!--<label for="data_ids"/>-->
<!--<field name="data_ids"/>-->
<!--<label for="demo_ids"/>-->
<!--<field name="demo_ids"/>-->
<!--<label for="data_ids"/>-->
<!--<field name="data_ids"/>-->
<!--<label for="demo_ids"/>-->
<!--<field name="demo_ids"/>-->
<!--</page>--> <!--</page>-->
<page string="Fields"> <page string="Fields">
<label for="field_ids"/> <label for="field_ids"/>
@ -74,12 +79,12 @@
</page> </page>
<!--Not implemented yet--> <!--Not implemented yet-->
<!--<page string="Security">--> <!--<page string="Security">-->
<!--<label for="group_ids"/>-->
<!--<field name="group_ids"/>-->
<!--<label for="right_ids"/>-->
<!--<field name="right_ids"/>-->
<!--<label for="rule_ids"/>-->
<!--<field name="rule_ids"/>-->
<!--<label for="group_ids"/>-->
<!--<field name="group_ids"/>-->
<!--<label for="right_ids"/>-->
<!--<field name="right_ids"/>-->
<!--<label for="rule_ids"/>-->
<!--<field name="rule_ids"/>-->
<!--</page>--> <!--</page>-->
</notebook> </notebook>
</sheet> </sheet>

Loading…
Cancel
Save