mirror of
https://gitlab.com/hibou-io/hibou-odoo/suite.git
synced 2025-01-20 12:37:31 +02:00
[REL] connector_amazon_sp: for 11.0
This commit is contained in:
22
connector_amazon_sp/components/binder.py
Normal file
22
connector_amazon_sp/components/binder.py
Normal file
@@ -0,0 +1,22 @@
|
||||
# © 2021 Hibou Corp.
|
||||
|
||||
from odoo.addons.component.core import Component
|
||||
|
||||
|
||||
class AmazonModelBinder(Component):
|
||||
""" Bind records and give odoo/amazon ids correspondence
|
||||
|
||||
Binding models are models called ``amazon.{normal_model}``,
|
||||
like ``amazon.sale.order`` or ``amazon.product.product``.
|
||||
They are ``_inherits`` of the normal models and contains
|
||||
the Amazon ID, the ID of the Amazon Backend and the additional
|
||||
fields belonging to the Amazon instance.
|
||||
"""
|
||||
_name = 'amazon.binder'
|
||||
_inherit = ['base.binder', 'base.amazon.connector']
|
||||
_apply_on = [
|
||||
'amazon.product.product',
|
||||
'amazon.sale.order',
|
||||
'amazon.sale.order.line',
|
||||
'amazon.stock.picking',
|
||||
]
|
||||
Reference in New Issue
Block a user