Skip to content
Permalink
Browse files

[IMP] web_sale/sale : Security rules correction

> Payment.transaction not readable without web_sale
> in sales order form view  (for capture/void transaction)
> if website_sale not installed.
>> Rule moved from website_sale to sale
  • Loading branch information...
Feyensv committed Jan 25, 2019
1 parent 29ddc6f commit 06524032beb46f4b16dc0b502acc93a4890033f8
Showing with 7 additions and 7 deletions.
  1. +7 −0 addons/sale/security/sale_security.xml
  2. +0 −7 addons/website_sale/security/website_sale.xml
@@ -134,5 +134,12 @@
<field name="domain_force">[(1, '=', 1)]</field>
<field name="groups" eval="[(4, ref('sales_team.group_sale_salesman_all_leads'))]"/>
</record>

<record id="payment_transaction_salesman_rule" model="ir.rule">
<field name="name">Access every payment transaction</field>
<field name="model_id" ref="payment.model_payment_transaction"/>
<field name="domain_force">[(1, '=', 1)]</field>
<field name="groups" eval="[(4, ref('sales_team.group_sale_salesman'))]"/>
</record>
</data>
</odoo>
@@ -23,13 +23,6 @@
<field name="perm_unlink" eval="False"/>
</record>

<record id="payment_transaction_salesman_rule" model="ir.rule">
<field name="name">Access every payment transaction</field>
<field name="model_id" ref="payment.model_payment_transaction"/>
<field name="domain_force">[(1, '=', 1)]</field>
<field name="groups" eval="[(4, ref('sales_team.group_sale_salesman'))]"/>
</record>

<record id="payment_token_salesman_rule" model="ir.rule">
<field name="name">Access every payment token</field>
<field name="model_id" ref="payment.model_payment_token"/>

0 comments on commit 0652403

Please sign in to comment.
You can’t perform that action at this time.