[FIX] purchase: unlock PO
Only allows a manager to unlock a PO. Otherwise, when the option 'Confirmed purchase orders are not editable', any user can unlock a PO and modify it. opw-707035
This commit is contained in:
@@ -167,7 +167,7 @@
|
||||
<button name="button_draft" states="cancel" string="Set to Draft" type="object" />
|
||||
<button name="button_cancel" states="draft,to approve,sent,purchase" string="Cancel" type="object" />
|
||||
<button name="button_done" type="object" string="Lock" states="purchase"/>
|
||||
<button name="button_unlock" type="object" string="Unlock" states="done"/>
|
||||
<button name="button_unlock" type="object" string="Unlock" states="done" groups="purchase.group_purchase_manager"/>
|
||||
<field name="state" widget="statusbar" statusbar_visible="draft,sent,purchase" readonly="1"/>
|
||||
</header>
|
||||
<sheet>
|
||||
|
||||
Reference in New Issue
Block a user