summaryrefslogtreecommitdiff
path: root/addons/payment/security/payment_security.xml
diff options
context:
space:
mode:
authorDamien Bouvy <dbo@odoo.com>2015-05-18 14:34:25 +0200
committerChristophe Simonis <chs@odoo.com>2015-06-15 14:57:14 +0200
commitdbd3efef1f0d0566265e31d6f89618ce6beec6cd (patch)
tree2428191d9df3728b8efb5d82558fc5b1e780c4c5 /addons/payment/security/payment_security.xml
parent46477787588089b213c5065978e1660f0dbf181e (diff)
[IMP] payment: add support for server2server payments
This commit adds a new model, Payment Method, which stores a reference to the payment acquirer's database and a reference to a partner. Each payment module must have its own implementation. The implementation is completely abstract but may not suit every provider's way of implementing recurring payments.
Diffstat (limited to 'addons/payment/security/payment_security.xml')
-rw-r--r--addons/payment/security/payment_security.xml13
1 files changed, 13 insertions, 0 deletions
diff --git a/addons/payment/security/payment_security.xml b/addons/payment/security/payment_security.xml
index 7bae346c648..f2dedd5e6ee 100644
--- a/addons/payment/security/payment_security.xml
+++ b/addons/payment/security/payment_security.xml
@@ -20,5 +20,18 @@
<field name="groups" eval="[(4, ref('base.group_sale_salesman'))]"/>
</record>
+ <record id="payment_method_user_rule" model="ir.rule">
+ <field name="name">Access own payment methods only</field>
+ <field name="model_id" ref="payment.model_payment_method"/>
+ <field name="domain_force">[('partner_id','=',user.partner_id.id)]</field>
+ <field name="groups" eval="[(4, ref('base.group_user')), (4, ref('base.group_portal')), (4, ref('base.group_public'))]"/>
+ </record>
+
+ <record id="payment_method_salesman_rule" model="ir.rule">
+ <field name="name">Access every payment method</field>
+ <field name="model_id" ref="payment.model_payment_method"/>
+ <field name="groups" eval="[(4, ref('base.group_sale_salesman'))]"/>
+ </record>
+
</data>
</openerp>