summaryrefslogtreecommitdiff
path: root/addons/web/static/src/xml
diff options
context:
space:
mode:
authorVo Minh Thu <vmt@openerp.com>2012-01-18 11:12:52 +0100
committerVo Minh Thu <vmt@openerp.com>2012-01-18 11:12:52 +0100
commit75b3fc0907ee873c6e16d1fa8e8bfe58d4f520c1 (patch)
tree3e7f7bbe9110eeae766b46bb9c16a867579b6452 /addons/web/static/src/xml
parent3203d264aecd751a8c261cea4f72fa323a3098be (diff)
parent152f92916bc36d00c0e59fbc49fb655a4fd85908 (diff)
[MERGE] merged trunk.
bzr revid: vmt@openerp.com-20120118101252-e81nlyzym2nkebf4
Diffstat (limited to 'addons/web/static/src/xml')
-rw-r--r--addons/web/static/src/xml/base.xml38
1 files changed, 15 insertions, 23 deletions
diff --git a/addons/web/static/src/xml/base.xml b/addons/web/static/src/xml/base.xml
index 5158fda62c2..b119e5aae3c 100644
--- a/addons/web/static/src/xml/base.xml
+++ b/addons/web/static/src/xml/base.xml
@@ -70,7 +70,8 @@
</tr>
<tr>
<td><label for="db_name">New database name:</label></td>
- <td><input type="text" name="db_name" class="required"/></td>
+ <td><input type="text" name="db_name"
+ class="required" matches="^[a-zA-Z][a-zA-Z0-9_]+$"/></td>
</tr>
<tr>
<td><label for="demo_data">Load Demonstration data:</label></td>
@@ -553,16 +554,21 @@
t-att-data-id="record.id" t-att-data-level="level + 1">
<t t-set="children" t-value="record[children_field]"/>
<t t-set="class" t-value="children and children.length ? 'treeview-tr' : 'treeview-td'"/>
+ <t t-set="style" t-value="'background-position: ' + 19*level + 'px; padding-left: ' + 19*level + 'px;'"/>
<td t-foreach="fields_view" t-as="field"
t-if="!field.attrs.modifiers.tree_invisible"
t-att-data-id="record.id"
- t-att-style="color_for(record) + (!field_index ? 'background-position: ' + 19*level + 'px; padding-left: ' + 19*level + 'px;' : '')"
- t-att-class="class">
- <span t-if="!field.attrs.modifiers.invisible">
+ t-att-style="color_for(record) + style "
+ t-att-class="(fields[field.attrs.name].type === 'float') or (fields[field.attrs.name].type === 'integer')
+ ? (class +' ' +'oe-number') : class">
+
+ <span t-if="!field.attrs.modifiers.invisible" >
<t t-esc="render(record[field.attrs.name], fields[field.attrs.name])" />
</span>
+
<t t-set="class" t-value="'treeview-td'"/>
+ <t t-set="style" t-value="''"/>
</td>
</tr>
@@ -1717,32 +1723,18 @@
<t t-name="About-Page">
<div>
- <a class="oe_activate_debug_mode" href="?debug">Debug mode</a>
- <h1>OpenERP Web</h1>
- <h3 style="padding:0 5px 5px">Version <t t-esc="version_info.version"/></h3>
+ <a class="oe_activate_debug_mode" href="?debug" style="float:right; font-size: 80%;">Activate the developper mode</a>
+ <h1 style="margin:0;">OpenERP</h1>
+ <h3 style="margin:15px 0;padding:0;">Version <t t-esc="version_info.version"/></h3>
<p>
- Copyright © 2011-TODAY OpenERP SA. All Rights Reserved.<br />
+ Copyright © 2004-TODAY OpenERP SA. All Rights Reserved.<br />
OpenERP is a trademark of the <a target="_blank" href="http://openerp.com/" style="text-decoration: underline;">OpenERP SA Company</a>.
</p>
<p>
Licenced under the terms of <a target="_blank" href="http://www.gnu.org/licenses/agpl.html" style="text-decoration: underline;">GNU Affero General Public License</a>
</p>
- <br />
- <h1>About OpenERP</h1>
- <p>
- <a target="_blank" href="http://openerp.com/" style="text-decoration: underline;">OpenERP</a> is a free enterprise-scale software system that is designed to boost
- productivity and profit through data integration. It connects, improves and
- manages business processes in areas such as sales, finance, supply chain,
- project management, production, services, CRM, etc...
- </p>
- <p>
- The system is platform-independent, and can be installed on Windows, Mac OS X,
- and various Linux and other Unix-based distributions. Its architecture enables
- new functionality to be rapidly created, modifications to be made to a
- production system and migration to a new version to be straightforward.
- </p>
<p>
- Depending on your needs, OpenERP is available through a web or application client.
+ For more information visit <a target="_blank" href="http://openerp.com/" style="text-decoration: underline;">OpenERP.com</a>
</p>
</div>
</t>