mirror of
https://gitlab.com/flectra-hq/flectra.git
synced 2026-08-17 16:54:42 -05:00
18 lines
558 B
Python
18 lines
558 B
Python
# -*- coding: utf-8 -*-
|
|
# Part of Odoo, Flectra. See LICENSE file for full copyright and licensing details.
|
|
from flectra import api, SUPERUSER_ID
|
|
|
|
from . import models
|
|
from . import controllers
|
|
from . import wizards
|
|
|
|
|
|
def reset_payment_provider(cr, registry, provider):
|
|
env = api.Environment(cr, SUPERUSER_ID, {})
|
|
acquirers = env['payment.acquirer'].search([('provider', '=', provider)])
|
|
acquirers.write({
|
|
'view_template_id': acquirers._get_default_view_template_id().id,
|
|
'provider': 'manual',
|
|
'state': 'disabled',
|
|
})
|