Migrate to 13.0 document_page_approval

To pass test is necesary set approval required to False in demo data
This commit is contained in:
flachica
2020-07-04 19:13:10 +02:00
committed by FernandoRomera
parent bc79903d9e
commit 32b684c65f
8 changed files with 27 additions and 37 deletions

View File

@@ -164,7 +164,7 @@
<field name="has_changes_pending_approval" invisible="1" />
<field name="user_has_drafts" invisible="1" />
</sheet>
<button name="toggle_active" position="after">
<xpath expr="//div[@name='button_box']" position="inside">
<button
class="oe_stat_button"
name="action_changes_pending_approval"
@@ -173,7 +173,7 @@
attrs="{'invisible':[('has_changes_pending_approval','=',False),('user_has_drafts','=',False)]}"
icon="fa-edit"
/>
</button>
</xpath>
<field name="content_uid" position="after">
<field name="approved_uid" />
</field>
@@ -288,7 +288,6 @@
<record model="ir.actions.act_window" id="action_change_requests">
<field name="name">Change Requests</field>
<field name="res_model">document.page.history</field>
<field name="view_type">form</field>
<field name="view_mode">tree,form</field>
<field
name="context"