Before this commit, it was impossible to migrate from one payment acquirer to another as the only way to do so was to change a payment acquirer’s state to ‘disabled’, subsequently disabling all tokens of that acquirer (detrimental for eg. running subscriptions). After this commit, payment acquirers have an additional boolean ‘Published’. With this functionality, users can safely migrate by keeping an acquirer ‘enabled’, but invisible for customers. There are five combined states an acquirer can take: ‘enabled’ & ‘published’: Visible to all users ‘enabled’ & ‘unpublished’: Visible only to internal users ‘disabled’ & ‘unpublished’: Same as previously ‘disabled’ ‘test’ & ‘published’: Same as previously ‘test’ ‘test’ & ‘unpublished’: visible only to internal users task-2871459 closes odoo/odoo#94242 Related: odoo/upgrade#3688 Related: odoo/documentation#2308 Signed-off-by: Antoine Vandevenne (anv) <anv@odoo.com>
14 lines
498 B
XML
14 lines
498 B
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<odoo noupdate="1">
|
|
|
|
<record id="payment.payment_acquirer_transfer" model="payment.acquirer">
|
|
<field name="provider">transfer</field>
|
|
<field name="state">enabled</field>
|
|
<field name="is_published">True</field>
|
|
<field name="redirect_form_view_id" ref="redirect_form"/>
|
|
<!-- Clear the default value to trigger the computation of the message -->
|
|
<field name="pending_msg" eval="False"/>
|
|
</record>
|
|
|
|
</odoo>
|