mirror of
https://gitlab.com/hibou-io/hibou-odoo/suite.git
synced 2025-01-20 12:37:31 +02:00
Initial commit of connector_walmart for Odoo 11.0 (using beta version of connector_ecommerce)
This commit is contained in:
22
connector_walmart/components/binder.py
Normal file
22
connector_walmart/components/binder.py
Normal file
@@ -0,0 +1,22 @@
|
||||
# © 2017,2018 Hibou Corp.
|
||||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
||||
|
||||
from odoo.addons.component.core import Component
|
||||
|
||||
|
||||
class WalmartModelBinder(Component):
|
||||
""" Bind records and give odoo/walmart ids correspondence
|
||||
|
||||
Binding models are models called ``walmart.{normal_model}``,
|
||||
like ``walmart.sale.order`` or ``walmart.product.product``.
|
||||
They are ``_inherits`` of the normal models and contains
|
||||
the Walmart ID, the ID of the Walmart Backend and the additional
|
||||
fields belonging to the Walmart instance.
|
||||
"""
|
||||
_name = 'walmart.binder'
|
||||
_inherit = ['base.binder', 'base.walmart.connector']
|
||||
_apply_on = [
|
||||
'walmart.sale.order',
|
||||
'walmart.sale.order.line',
|
||||
'walmart.stock.picking',
|
||||
]
|
||||
Reference in New Issue
Block a user