[IMP] add link to payment acquirers in website settings

bzr revid: ddm@openerp.com-20140123172455-7prrhpxfakgg0zv4
This commit is contained in:
ddm@openerp.com 2014-01-23 18:24:55 +01:00
parent eb0a81dc93
commit 8c8b20bc66
2 changed files with 23 additions and 0 deletions

View File

@ -13,6 +13,7 @@
],
'data': [
'views/website_payment_templates.xml',
'views/website_settings_payment.xml',
],
'auto_install': False,
}

View File

@ -0,0 +1,22 @@
<?xml version="1.0" encoding="utf-8"?>
<openerp>
<data>
<record id="website_settings_payment" model="ir.ui.view">
<field name="name">website.form</field>
<field name="model">website</field>
<field name="inherit_id" ref="website.view_website_form"/>
<field name="arch" type="xml">
<xpath expr="//div[@name='other']" position='before'>
<div name="shop">
<separator string="E-Commerce"/>
<group name="shop">
<button type="action"
name="%(payment_acquirer.action_payment_acquirer)d"
string="Configure payment acquirers" class="oe_link"/>
</group>
</div>
</xpath>
</field>
</record>
</data>
</openerp>