mirror of
https://gitlab.com/hibou-io/hibou-odoo/suite.git
synced 2025-01-20 12:37:31 +02:00
MIG connector_walmart to Odoo 12.0
Note that this relies on BETA quality OCA merge requests, including a known bug copying the Payment Mode from SO to Invoice.
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
|
||||
{
|
||||
'name': 'Walmart Connector',
|
||||
'version': '11.0.1.0.0',
|
||||
'version': '12.0.1.0.0',
|
||||
'category': 'Connector',
|
||||
'depends': [
|
||||
'account',
|
||||
|
||||
@@ -6,6 +6,7 @@ import logging
|
||||
import odoo.addons.decimal_precision as dp
|
||||
|
||||
from odoo import models, fields, api
|
||||
from odoo.exceptions import ValidationError
|
||||
from odoo.addons.queue_job.job import job
|
||||
from odoo.addons.component.core import Component
|
||||
from odoo.addons.queue_job.exception import RetryableJobError
|
||||
@@ -167,6 +168,8 @@ class SaleOrderAdapter(Component):
|
||||
|
||||
api_instance = self.api_instance
|
||||
orders_response = api_instance.orders.all(**arguments)
|
||||
if 'error' in orders_response:
|
||||
raise ValidationError(str(orders_response))
|
||||
_logger.debug(orders_response)
|
||||
|
||||
if not 'list' in orders_response:
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
<field name="name" class="oe_inline" />
|
||||
</h1>
|
||||
<group name="walmart" string="Walmart Configuration">
|
||||
<notebook>
|
||||
<notebook name="api">
|
||||
<page string="API" name="api">
|
||||
<group colspan="4" col="4">
|
||||
<field name="consumer_id"/>
|
||||
@@ -38,7 +38,7 @@
|
||||
<field name="product_categ_id"/>
|
||||
</group>
|
||||
</group>
|
||||
<notebook>
|
||||
<notebook name="import_config">
|
||||
<page name="import" string="Imports">
|
||||
<p class="oe_grey oe_inline">
|
||||
By clicking on the buttons,
|
||||
@@ -58,9 +58,9 @@
|
||||
of the new records to review
|
||||
in the menu 'Connectors > Checkpoint'.
|
||||
</p>
|
||||
<group>
|
||||
<group name="import_since">
|
||||
<div>
|
||||
<label string="Import sale orders since" class="oe_inline"/>
|
||||
<label for="import_orders_from_date" string="Import sale orders since" class="oe_inline"/>
|
||||
<field name="import_orders_from_date"
|
||||
class="oe_inline"
|
||||
nolabel="1"/>
|
||||
|
||||
Reference in New Issue
Block a user