← Back to team overview

openerp-connector-community team mailing list archive

Re: Prices are managed in OpenERP with pricelists error

 

Thank you Guewen

I’ll try this this evening.
It’s so important that the connector does not change the status of the product to out of stock because then it overrides the sell inventory below 0 and notify customer setting in Magento.

Tero Juola

> On 23 Oct 2015, at 12:51, Guewen Baconnier <guewen.baconnier@xxxxxxxxxxxxxx> wrote:
> 
> In product.py, you have this line:
> "from .backend import magento"
> and there is no backend file here. It should be:
> "from openerp.addons.magentoerpconnect.backend import magento"
> 
> Also, you should replace
> from magentoerpconnect.product import ProductInventoryExporter
> with
> from openerp.addons.magentoerpconnect.product import ProductInventoryExporter
> 
> 
> -- 
> Guewen Baconnier
> Business Solutions Software Developer
> 
> Camptocamp SA
> PSE A, CH-1015 Lausanne
> Phone: +41 21 619 10 39
> Office: +41 21 619 10 10
> http://www.camptocamp.com/ <http://www.camptocamp.com/>
> On Tue, Oct 20, 2015 at 7:26 AM, Tero Juola <tjuola@xxxxxx <mailto:tjuola@xxxxxx>> wrote:
> Hi Guewen
> 
> I tried to use the customization to change the behaviour of the connector not the change the status of the products out of stock then the inventory is 0 or less. Attached you can find the code and here is the error message the connector gives in settings:
> The connector gives this error message:
> Odoo Server Error
> Traceback (most recent call last):
>   File "/opt/bitnami/apps/odoo/lib/odoo-8.0_20150423-py2.7.egg/openerp/http.py", line 530, in _handle_exception
>     return super(JsonRequest, self)._handle_exception(exception)
>   File "/opt/bitnami/apps/odoo/lib/odoo-8.0_20150423-py2.7.egg/openerp/http.py", line 567, in dispatch
>     result = self._call_function(**self.params)
>   File "/opt/bitnami/apps/odoo/lib/odoo-8.0_20150423-py2.7.egg/openerp/http.py", line 303, in _call_function
>     return checked_call(self.db, *args, **kwargs)
>   File "/opt/bitnami/apps/odoo/lib/odoo-8.0_20150423-py2.7.egg/openerp/service/model.py", line 113, in wrapper
>     return f(dbname, *args, **kwargs)
>   File "/opt/bitnami/apps/odoo/lib/odoo-8.0_20150423-py2.7.egg/openerp/http.py", line 300, in checked_call
>     return self.endpoint(*a, **kw)
>   File "/opt/bitnami/apps/odoo/lib/odoo-8.0_20150423-py2.7.egg/openerp/http.py", line 796, in __call__
>     return self.method(*args, **kw)
>   File "/opt/bitnami/apps/odoo/lib/odoo-8.0_20150423-py2.7.egg/openerp/http.py", line 396, in response_wrap
>     response = f(*args, **kw)
>   File "/opt/bitnami/apps/odoo/lib/odoo-8.0_20150423-py2.7.egg/openerp/addons/web/controllers/main.py", line 1238, in load
>     action = request.session.model(action_type).read([action_id], False, ctx)
>   File "/opt/bitnami/apps/odoo/lib/odoo-8.0_20150423-py2.7.egg/openerp/http.py", line 900, in proxy
>     result = meth(cr, request.uid, *args, **kw)
>   File "/opt/bitnami/apps/odoo/lib/odoo-8.0_20150423-py2.7.egg/openerp/api.py", line 241, in wrapper
>     return old_api(self, *args, **kwargs)
>   File "/opt/bitnami/apps/odoo/lib/odoo-8.0_20150423-py2.7.egg/openerp/addons/base/ir/ir_actions.py", line 325, in read
>     results = super(ir_actions_act_window, self).read(cr, uid, ids, fields=fields, context=context, load=load)
>   File "/opt/bitnami/apps/odoo/lib/odoo-8.0_20150423-py2.7.egg/openerp/api.py", line 241, in wrapper
>     return old_api(self, *args, **kwargs)
>   File "/opt/bitnami/apps/odoo/lib/odoo-8.0_20150423-py2.7.egg/openerp/models.py", line 3125, in read
>     result = BaseModel.read(records, fields, load=load)
>   File "/opt/bitnami/apps/odoo/lib/odoo-8.0_20150423-py2.7.egg/openerp/api.py", line 239, in wrapper
>     return new_api(self, *args, **kwargs)
>   File "/opt/bitnami/apps/odoo/lib/odoo-8.0_20150423-py2.7.egg/openerp/models.py", line 3160, in read
>     self._read_from_database(stored, inherited)
>   File "/opt/bitnami/apps/odoo/lib/odoo-8.0_20150423-py2.7.egg/openerp/api.py", line 239, in wrapper
>     return new_api(self, *args, **kwargs)
>   File "/opt/bitnami/apps/odoo/lib/odoo-8.0_20150423-py2.7.egg/openerp/models.py", line 3338, in _read_from_database
>     res2 = self._columns[f].get(cr, self._model, ids, f, user, context=context, values=result)
>   File "/opt/bitnami/apps/odoo/lib/odoo-8.0_20150423-py2.7.egg/openerp/osv/fields.py", line 1448, in get
>     result = self._fnct(obj, cr, uid, ids, name, self._arg, context)
>   File "/opt/bitnami/apps/odoo/lib/odoo-8.0_20150423-py2.7.egg/openerp/addons/base/ir/ir_actions.py", line 265, in _search_view
>     field_get = self.pool[act.res_model].fields_view_get(cr, uid,
>   File "/opt/bitnami/apps/odoo/lib/odoo-8.0_20150423-py2.7.egg/openerp/modules/registry.py", line 102, in __getitem__
>     return self.models[model_name]
> KeyError: u’connector.config.settings'
> What went wrong?
> 
> Tero
> 
> 
> 
>> On 19 Oct 2015, at 12:44, Tero Juola <tjuola@xxxxxx <mailto:tjuola@xxxxxx>> wrote:
>> 
>> Hi Guewen
>> 
>> Thank you.
>> I’ll wait until it’s merged. 
>> Can I upgrade the Magento Connector in Odoo? It’s now 8.0.3.0.0.
>> 
>> Tero
>> 
>> 
>>> On 19 Oct 2015, at 12:40, Guewen Baconnier <guewen.baconnier@xxxxxxxxxxxxxx <mailto:guewen.baconnier@xxxxxxxxxxxxxx>> wrote:
>>> 
>>> On Mon, Oct 19, 2015 at 11:31 AM, Tero Juola <tjuola@xxxxxx <mailto:tjuola@xxxxxx>> wrote:
>>> Hi Guewen
>>> 
>>> The addons_path looks like this:
>>> ...
>>> 
>>> All seems correct! I had a look on the branch and indeed there is a problem.
>>> I migrated this module a while ago but it never got merged: https://github.com/OCA/connector-magento/pull/92 <https://github.com/OCA/connector-magento/pull/92>
>>> 
>>> So you can merge this branch on yours or wait until it's merged.
>>>  
>> 
>> -- 
>> Mailing list: https://launchpad.net/~openerp-connector-community <https://launchpad.net/~openerp-connector-community>
>> Post to     : openerp-connector-community@xxxxxxxxxxxxxxxxxxx <mailto:openerp-connector-community@xxxxxxxxxxxxxxxxxxx>
>> Unsubscribe : https://launchpad.net/~openerp-connector-community <https://launchpad.net/~openerp-connector-community>
>> More help   : https://help.launchpad.net/ListHelp <https://help.launchpad.net/ListHelp>
> 
> 
> 


Follow ups

References