Before this commit: there was no stat button 'publish' displayed for payment provider 'pay in store'. Reason: The stat button is shown when the module is installed but there was no connected module on the 'payment_provider_onsite' record. With this commit the module_id is added. closes odoo/odoo#146349 X-original-commit: 4480fe7c990c498175f8e7ed75a1abf34bef9547 Signed-off-by: Antoine Vandevenne (anv) <anv@odoo.com> Signed-off-by: Valeriya Chuprina (vchu) <vchu@odoo.com>
25 lines
965 B
XML
25 lines
965 B
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<odoo>
|
|
|
|
<record id="payment_provider_onsite" model="payment.provider">
|
|
<field name="name">Pay in Store</field>
|
|
<field name="module_id" ref="base.module_website_sale_picking"/>
|
|
<field name="code">custom</field>
|
|
<field name="state">enabled</field>
|
|
<field name="custom_mode">onsite</field>
|
|
<field name="payment_method_ids"
|
|
eval="[(6, 0, [
|
|
ref('website_sale_picking.payment_method_pay_on_site'),
|
|
])]"
|
|
/>
|
|
<field name="image_128" type="base64" file="website_sale_picking/static/description/icon.png"/>
|
|
<field name="redirect_form_view_id" ref="payment_custom.redirect_form"/>
|
|
<field name="pending_msg" type="html">
|
|
<p>
|
|
<i>Your order has been saved.</i> Please come to the store to pay for your products
|
|
</p>
|
|
</field>
|
|
</record>
|
|
|
|
</odoo>
|