summaryrefslogtreecommitdiff
path: root/addons/web/static/src/xml/base.xml
diff options
context:
space:
mode:
authorXavier Morel <xmo@openerp.com>2012-02-09 16:16:05 +0100
committerXavier Morel <xmo@openerp.com>2012-02-09 16:16:05 +0100
commit76de030cde385dc2294a850371443b4dd840a475 (patch)
tree4cc520fd8f396320f66d38c4d129c2b73b450e32 /addons/web/static/src/xml/base.xml
parent264fd842943587ae0cbc710726aeda37641aa985 (diff)
parentbe5bab60c8b3f88ff32f6bcd78af79a08c0a4843 (diff)
[ADD] UI to set default ir.values in web client's from view
lp bug: https://launchpad.net/bugs/888466 fixed bzr revid: xmo@openerp.com-20120209151605-sqt0mzceqr8u160z
Diffstat (limited to 'addons/web/static/src/xml/base.xml')
-rw-r--r--addons/web/static/src/xml/base.xml66
1 files changed, 61 insertions, 5 deletions
diff --git a/addons/web/static/src/xml/base.xml b/addons/web/static/src/xml/base.xml
index dce0ca78ee4..953593d9b39 100644
--- a/addons/web/static/src/xml/base.xml
+++ b/addons/web/static/src/xml/base.xml
@@ -529,11 +529,11 @@
</div>
</t>
<t t-name="Sidebar.section.items">
- <li t-foreach="items" t-as="item" t-att-class="item.classname">
- <a class="oe_sidebar_action_a" t-att-id="item.element_id" t-att-title="item.title" href="#">
- <t t-esc="item.label"/>
- </a>
- </li>
+ <li t-foreach="items" t-as="item" t-att-class="item.classname">
+ <a class="oe_sidebar_action_a" t-att-id="item.element_id" t-att-title="item.title" href="#">
+ <t t-esc="item.label"/>
+ </a>
+ </li>
</t>
<t t-name="TranslateDialog">
@@ -792,6 +792,62 @@
</li>
</ul>
</t>
+<form t-name="FormView.set_default" class="oe_forms oe_frame">
+ <t t-set="args" t-value="widget.dialog_options.args"/>
+ <table style="width: 100%">
+ <tr>
+ <td>
+ <label for="formview_default_fields"
+ class="oe_label oe_align_right">
+ Default:
+ </label>
+ </td>
+ <td class="required">
+ <select id="formview_default_fields">
+ <option value=""/>
+ <option t-foreach="args.fields" t-as="field"
+ t-att-value="field.name">
+ <t t-esc="field.string"/> = <t t-esc="field.displayed"/>
+ </option>
+ </select>
+ </td>
+ </tr>
+ <tr t-if="args.conditions.length">
+ <td>
+ <label for="formview_default_conditions"
+ class="oe_label oe_align_right">
+ Condition:
+ </label>
+ </td>
+ <td>
+ <select id="formview_default_conditions">
+ <option value=""/>
+ <option t-foreach="args.conditions" t-as="cond"
+ t-att-value="cond.name + '=' + cond.value">
+ <t t-esc="cond.string"/>=<t t-esc="cond.displayed"/>
+ </option>
+ </select>
+ </td>
+ </tr>
+ <tr>
+ <td colspan="2">
+ <input type="radio" id="formview_default_self"
+ value="self" name="scope" checked="checked"/>
+ <label for="formview_default_self" class="oe_label"
+ style="display: inline;">
+ Only you
+ </label>
+ <br/>
+ <input type="radio" id="formview_default_all"
+ value="all" name="scope"/>
+ <label for="formview_default_all" class="oe_label"
+ style="display: inline;">
+ All users
+ </label>
+ </td>
+ </tr>
+ </table>
+</form>
<t t-name="Widget">
Unhandled widget
<t t-js="dict">console.warn('Unhandled widget', dict.widget);</t>