PURPOSE
Clean and improve IAP tools integration in Odoo. Introduce bridge modules
to extract common features, notably for CRM and Partner.
SPECIFICATIONS
In this commit we reorganize IAP module to better understand its content
and ease future cleaning
* have models separated from tools;
* rename some tools to find their grep. An iap_ prefix is added to ensure
we don't clash with other global functions or methods;
* perform some linting;
To provide backward compatibility support we keep some import in init file of
IAP addon. Standard code is about to be updated but we want to avoid too
much issues when migrating code to 13.5 . Compatibility layer will be removed
after v14 final freeze.
LINKS
Task ID-2248367
Community PR odoo/odoo#53214
Enterprise PR odoo/enterprise#11258
Upgrade PR odoo/upgrade#1363
IAP PR odoo/iap-apps#191
14 lines
569 B
Python
14 lines
569 B
Python
# -*- coding: utf-8 -*-
|
|
# Part of Odoo. See LICENSE file for full copyright and licensing details.
|
|
|
|
from . import models
|
|
from . import tools
|
|
|
|
# compatibility imports
|
|
from odoo.addons.iap.tools.iap_tools import iap_jsonrpc as jsonrpc
|
|
from odoo.addons.iap.tools.iap_tools import iap_authorize as authorize
|
|
from odoo.addons.iap.tools.iap_tools import iap_cancel as cancel
|
|
from odoo.addons.iap.tools.iap_tools import iap_capture as capture
|
|
from odoo.addons.iap.tools.iap_tools import iap_charge as charge
|
|
from odoo.addons.iap.tools.iap_tools import InsufficientCreditError
|