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. 23
      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',
], ],

23
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>

Loading…
Cancel
Save