[document_page_approval] Rename classes and files to match model names, and removed workflow engine.

This commit is contained in:
Iván Todorovich
2018-04-20 10:42:49 -03:00
parent 6b80913167
commit bb90405d48
5 changed files with 60 additions and 51 deletions

View File

@@ -10,19 +10,19 @@
<sheet position="before">
<header>
<!-- draft -> to approve -->
<button name="page_approval_to_approve" type="object" string="Send to Review" state="draft" class="oe_highlight"
<button name="action_to_approve" type="object" string="Send to Review" class="oe_highlight"
attrs="{'invisible':['|','|',('is_approval_required','=',False),('am_i_owner','=',False),('state', 'not in', ['draft'])]}"/>
<!-- approve if i am approver -->
<button name="page_approval_approved" type="object" string="Approve" state="to aprrove" class="oe_highlight"
<button name="action_approve" type="object" string="Approve" class="oe_highlight"
attrs="{'invisible':['|','|',('is_approval_required','=',False),('am_i_approver','=',False),('state','not in',['draft','to approve'])]}"/>
<!-- approve if it's not required and i am owner -->
<button name="page_approval_approved" type="object" string="Approve" class="oe_highlight"
<button name="action_approve" type="object" string="Approve" class="oe_highlight"
attrs="{'invisible':['|','|',('is_approval_required','=',True),('am_i_owner','=',False),('state','not in',['draft', 'to approve'])]}"/>
<!-- cancel if i am owner or approver -->
<button name="page_approval_cancelled" type="object" string="Cancel"
<button name="action_cancel" type="object" string="Cancel"
attrs="{'invisible':['|','&amp;',('am_i_owner','=',False),('am_i_approver','=',False),('state','not in',['draft','to approve'])]}"/>
<!-- reopen if i am owner or approver -->
<button name="page_approval_draft" type="object" string="Back to draft" state="cancelled"
<button name="action_draft" type="object" string="Back to draft"
attrs="{'invisible':['|','&amp;',('am_i_owner','=',False),('am_i_approver','=',False),('state','not in',['cancelled'])]}"/>
<field name="am_i_owner" invisible="1"/>
<field name="am_i_approver" invisible="1"/>