mirror of
https://gitlab.com/hibou-io/hibou-odoo/suite.git
synced 2025-01-20 12:37:31 +02:00
[IMP] sale_payment_web: add ACL for account.payment, don't show view if not in group.
This commit is contained in:
committed by
Cedric Collins
parent
8b0c63d29a
commit
ef0b05e62e
@@ -1,2 +1,3 @@
|
||||
id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink
|
||||
access_payment_method,account.payment.method,account.model_account_payment_method,group_payment_web,1,0,0,0
|
||||
access_payment,account.payment,account.model_account_payment,group_payment_web,1,1,1,1
|
||||
|
||||
|
@@ -5,6 +5,7 @@
|
||||
<field name="name">sale.order.form.inherit</field>
|
||||
<field name="model">sale.order</field>
|
||||
<field name="inherit_id" ref="sale.view_order_form"/>
|
||||
<field name="groups_id" eval="[(4, ref('group_payment_web'))]"/>
|
||||
<field name="arch" type="xml">
|
||||
<xpath expr="//button[@name='action_draft']" position="after">
|
||||
<button name="action_payment_register" type="object" string="Register Payment"/>
|
||||
|
||||
Reference in New Issue
Block a user