[IMP] sale_payment_web: add ACL for account.payment, don't show view if not in group.

This commit is contained in:
Jared Kipe
2021-03-01 14:09:06 -08:00
committed by Cedric Collins
parent 8b0c63d29a
commit ef0b05e62e
2 changed files with 2 additions and 0 deletions

View File

@@ -1,2 +1,3 @@
id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink 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_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
1 id name model_id:id group_id:id perm_read perm_write perm_create perm_unlink
2 access_payment_method account.payment.method account.model_account_payment_method group_payment_web 1 0 0 0
3 access_payment account.payment account.model_account_payment group_payment_web 1 1 1 1

View File

@@ -5,6 +5,7 @@
<field name="name">sale.order.form.inherit</field> <field name="name">sale.order.form.inherit</field>
<field name="model">sale.order</field> <field name="model">sale.order</field>
<field name="inherit_id" ref="sale.view_order_form"/> <field name="inherit_id" ref="sale.view_order_form"/>
<field name="groups_id" eval="[(4, ref('group_payment_web'))]"/>
<field name="arch" type="xml"> <field name="arch" type="xml">
<xpath expr="//button[@name='action_draft']" position="after"> <xpath expr="//button[@name='action_draft']" position="after">
<button name="action_payment_register" type="object" string="Register Payment"/> <button name="action_payment_register" type="object" string="Register Payment"/>