summaryrefslogtreecommitdiff
path: root/addons/web/static/src/xml/base.xml
diff options
context:
space:
mode:
authorFabien Meghazi <fme@openerp.com>2011-12-21 17:43:35 +0100
committerFabien Meghazi <fme@openerp.com>2011-12-21 17:43:35 +0100
commit5727e989c5a75df304ed86fb6705f0062445cb1a (patch)
tree0711fac8e2aa50fcbc01e27e4e38b3d86285630e /addons/web/static/src/xml/base.xml
parent96dbcce7ce678c38a62f8e31ecda695c4ad14e65 (diff)
[ADD] Add 'Create' button in o2m's formviews
bzr revid: fme@openerp.com-20111221164335-vy7zh9w3b7l1b0pa
Diffstat (limited to 'addons/web/static/src/xml/base.xml')
-rw-r--r--addons/web/static/src/xml/base.xml5
1 files changed, 5 insertions, 0 deletions
diff --git a/addons/web/static/src/xml/base.xml b/addons/web/static/src/xml/base.xml
index 7fcee86537e..20664ad082a 100644
--- a/addons/web/static/src/xml/base.xml
+++ b/addons/web/static/src/xml/base.xml
@@ -713,6 +713,11 @@
</div>
<t t-raw="frame.render()"/>
</t>
+<t t-name="One2Many.formview" t-extend="FormView">
+ <t t-jquery=".oe_form_buttons" t-operation="replace">
+ <button type="button" class="oe_button oe_form_button_create">Create</button>
+ </t>
+</t>
<t t-name="PageView" t-extend="FormView">
<t t-jquery=".oe_form_buttons" t-operation="inner">
<button type="button" class="oe_button oe_form_button_edit">Edit</button>