Browse Source

Jun 8 [UPDT] : Bug Fixed 'edit_save_button'

pull/257/head
AjmalCybro 2 years ago
parent
commit
6cf2aa71b9
  1. 2
      edit_save_button/static/src/views/form/form_controller.xml

2
edit_save_button/static/src/views/form/form_controller.xml

@ -1,7 +1,7 @@
<templates xml:space="preserve"> <templates xml:space="preserve">
<t t-inherit="web.FormView" t-inherit-mode="extension"> <t t-inherit="web.FormView" t-inherit-mode="extension">
<xpath expr="//button[contains(@class, 'o_form_button_create')]" position="after"> <xpath expr="//t[@t-if='canCreate']" position="after">
<t t-if="!canEdit"> <t t-if="!canEdit">
<button type="button" class="btn btn-outline-primary o_form_button_edit" t-on-click="edit">Edit</button> <button type="button" class="btn btn-outline-primary o_form_button_edit" t-on-click="edit">Edit</button>
</t> </t>

Loading…
Cancel
Save