summaryrefslogtreecommitdiff
path: root/addons/web/static/src/xml/base_common.xml
diff options
context:
space:
mode:
authorGéry Debongnie <ged@odoo.com>2017-03-05 10:05:56 +0100
committerAaron Bohy <aab@odoo.com>2017-04-11 19:44:38 +0200
commit905e01921f3c3ef43ace6fc537d1d8c0d280002c (patch)
tree265c43ab21c5401a5d9f0f3d64d86f1ac417451c /addons/web/static/src/xml/base_common.xml
parent54d4c73af4ad05c7640d28c1892247c9538b8017 (diff)
[REF] web, *: redesign all JS views
This commit introduce a full redesign of all JS views. We started basically from scratch. The goal was to unify all the various views under a common framework, to make them testable, to make then usable in different conditions (in studio, or in the frontend), and to make our lives easier. Some important points are: - we introduced new coding guidelines (camelCase, 80 chars width, ...) - we have a brand new testing framework (still QUnit based) - kanban view moved to the web addon - calendar view (formerly web_calender) moved to web as well - the tree view was removed - all new code should be documented We hope that this code is the start of a new era for the Odoo web client, we want to have a high quality codebase, well documented, well tested, well designed. Work done by the framework team: mostly aab, ged, chm, dmo, qsm
Diffstat (limited to 'addons/web/static/src/xml/base_common.xml')
-rw-r--r--addons/web/static/src/xml/base_common.xml36
1 files changed, 19 insertions, 17 deletions
diff --git a/addons/web/static/src/xml/base_common.xml b/addons/web/static/src/xml/base_common.xml
index f5a4a44b857..618c3a1f7e2 100644
--- a/addons/web/static/src/xml/base_common.xml
+++ b/addons/web/static/src/xml/base_common.xml
@@ -31,49 +31,51 @@
</t>
<t t-name="WidgetLabel.tooltip">
<div class="oe_tooltip_string" t-if="widget.string">
- <t t-esc="widget.node.attrs.string"/> <t t-if="debug and widget.nolabel">(nolabel)</t>
+ <t t-esc="widget.string"/> <t t-if="debug and widget.nolabel">(nolabel)</t>
</div>
- <p t-if="widget.node.attrs.help or (widget.field and widget.field.help)" class="oe_tooltip_help"><t t-esc="widget.node.attrs.help || widget.field.help"/></p>
+ <p t-if="widget.attrs.help || widget.field.help" class="oe_tooltip_help">
+ <t t-esc="widget.attrs.help || widget.field.help"/>
+ </p>
<ul t-if="debug" class="oe_tooltip_technical">
<li data-item="field" t-if="widget.name">
<span class="oe_tooltip_technical_title">Field:</span>
<t t-esc="widget.name"/>
</li>
- <li data-item="object" t-if="widget.view and widget.view.fields_view">
+ <li data-item="object">
<span class="oe_tooltip_technical_title">Object:</span>
- <t t-esc="widget.view.fields_view.model"/>
+ <t t-esc="widget.model"/>
</li>
- <li data-item="type" t-if="widget.field">
+ <li data-item="type">
<span class="oe_tooltip_technical_title">Type:</span>
<t t-esc="widget.field.type"/>
</li>
- <li t-if="widget.node.attrs.widget" data-item="widget">
+ <li t-if="widget.attrs.widget" data-item="widget">
<span class="oe_tooltip_technical_title">Widget:</span>
- <t t-esc="widget.node.attrs.widget"/>
+ <t t-esc="widget.attrs.widget"/>
</li>
- <li t-if="widget.node.attrs.size || (widget.field and widget.field.size)" data-item="size">
+ <li t-if="widget.attrs.size || widget.field.size" data-item="size">
<span class="oe_tooltip_technical_title">Size:</span>
- <t t-esc="widget.node.attrs.size || widget.field.size"/>
+ <t t-esc="widget.attrs.size || widget.field.size"/>
</li>
- <li t-if="widget.node.attrs.context" data-item="context">
+ <li t-if="widget.attrs.context || widget.field.context" data-item="context">
<span class="oe_tooltip_technical_title">Context:</span>
- <t t-esc="widget.node.attrs.context"/>
+ <t t-esc="widget.attrs.context || widget.field.context"/>
</li>
- <li t-if="widget.node.attrs.domain" data-item="domain">
+ <li t-if="widget.attrs.domain || widget.field.domain" data-item="domain">
<span class="oe_tooltip_technical_title">Domain:</span>
- <t t-esc="widget.node.attrs.domain"/>
+ <t t-esc="widget.attrs.domain || widget.field.domain"/>
</li>
- <li t-if="widget.node.attrs.modifiers and widget.node.attrs.modifiers != '{}'" data-item="modifiers">
+ <li t-if="widget.attrs.modifiers and widget.attrs.modifiers != '{}'" data-item="modifiers">
<span class="oe_tooltip_technical_title">Modifiers:</span>
- <t t-esc="widget.node.attrs.modifiers"/>
+ <t t-esc="widget.attrs.modifiers"/>
</li>
<li t-if="widget.field and widget.field.change_default" data-item="change_default">
<span class="oe_tooltip_technical_title">Change default:</span>
Yes
</li>
- <li t-if="widget.node.attrs.on_change" data-item="on_change">
+ <li t-if="widget.attrs.on_change" data-item="on_change">
<span class="oe_tooltip_technical_title">On change:</span>
- <t t-esc="widget.node.attrs.on_change"/>
+ <t t-esc="widget.attrs.on_change"/>
</li>
<li t-if="widget.field and widget.field.relation" data-item="relation">
<span class="oe_tooltip_technical_title">Relation:</span>