ctmil / meli_oerp

Modulo para sincronizar MercadoLibre con Odoo
https://www.moldeointeractive.com.ar/p/mercadolibre-odoo
GNU Affero General Public License v3.0
47 stars 86 forks source link

Invalid field 'lst_price' on model 'product.template' #93

Open mariogustavoorrillo opened 2 years ago

mariogustavoorrillo commented 2 years ago

While importing products and orders in meli_oerp 15CE, I get the following error message

Traceback (most recent call last): File "/opt/odoo15/sources/meli_oerp/models/product.py", line 1451, in product_meli_get_product product._meli_set_product_price( product_template, rjson['price'], force_variant=force_price_for_variant, config=config ) File "/opt/odoo15/sources/meli_oerp/models/product.py", line 592, in _meli_set_product_price product_template.write({'lst_price': ml_price_converted}) File "/opt/odoo15/odoo/addons/stock_account/models/product.py", line 51, in write res = super(ProductTemplate, self).write(vals) File "/opt/odoo15/odoo/addons/mrp/models/product.py", line 64, in write return super().write(values) File "/opt/odoo15/odoo/addons/stock/models/product.py", line 874, in write return super(ProductTemplate, self).write(vals) File "/opt/odoo15/odoo/addons/product/models/product_template.py", line 503, in write res = super(ProductTemplate, self).write(vals) File "/opt/odoo15/odoo/addons/mail/models/mail_thread.py", line 323, in write result = super(MailThread, self).write(values) File "/opt/odoo15/odoo/addons/mail/models/mail_activity_mixin.py", line 243, in write return super(MailActivityMixin, self).write(vals) File "/opt/odoo15/odoo/addons/website/models/mixins.py", line 224, in write return super(WebsitePublishedMixin, self).write(values) File "/opt/odoo15/odoo/addons/rating/models/rating_mixin.py", line 84, in write result = super(RatingMixin, self).write(values) File "/opt/odoo15/odoo/odoo/models.py", line 3789, in write raise ValueError("Invalid field %r on model %r" % (fname, self._name)) ValueError: Invalid field 'lst_price' on model 'product.template'