WIP from 12

This commit is contained in:
Jared Kipe
2021-12-15 10:36:44 -08:00
parent 01d68c1267
commit 6e04b9d61d
35 changed files with 2637 additions and 0 deletions

View File

@@ -0,0 +1,25 @@
# © 2019 Hibou Corp.
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo.addons.component.core import Component
class OpencartModelBinder(Component):
""" Bind records and give odoo/opencart ids correspondence
Binding models are models called ``opencart.{normal_model}``,
like ``opencart.sale.order`` or ``opencart.product.product``.
They are ``_inherits`` of the normal models and contains
the Opencart ID, the ID of the Opencart Backend and the additional
fields belonging to the Opencart instance.
"""
_name = 'opencart.binder'
_inherit = ['base.binder', 'base.opencart.connector']
_apply_on = [
'opencart.store',
'opencart.sale.order',
'opencart.sale.order.line',
'opencart.stock.picking',
'opencart.product.template',
'opencart.product.template.attribute.value',
]