mirror of
https://gitlab.com/hibou-io/hibou-odoo/suite.git
synced 2025-01-20 12:37:31 +02:00
IMP connector_opencart Add bindings between Opencart Product Option Values and Odoo's Product Template Attribute Values
This commit is contained in:
@@ -22,6 +22,10 @@ class Opencart:
|
||||
def stores(self):
|
||||
return Stores(connection=self)
|
||||
|
||||
@property
|
||||
def products(self):
|
||||
return Products(connection=self)
|
||||
|
||||
def get_headers(self, url, method):
|
||||
headers = {}
|
||||
if method in ('POST', 'PUT', ):
|
||||
@@ -138,3 +142,14 @@ class Stores(Resource):
|
||||
def get(self, id):
|
||||
url = self.url + ('/%s' % id)
|
||||
return self.connection.send_request(method='GET', url=url)
|
||||
|
||||
|
||||
class Products(Resource):
|
||||
"""
|
||||
Retrieves Product details
|
||||
"""
|
||||
path = 'products'
|
||||
|
||||
def get(self, id):
|
||||
url = self.url + ('/%s' % id)
|
||||
return self.connection.send_request(method='GET', url=url)
|
||||
|
||||
Reference in New Issue
Block a user