GithubHelp home page GithubHelp logo

Comments (10)

pedrobaeza avatar pedrobaeza commented on July 25, 2024

That it's because mail migration is not yet completed. Current work is being discused here: #116

from openupgrade.

Arcaudas avatar Arcaudas commented on July 25, 2024

Thanks
I'll wait.

from openupgrade.

pedrobaeza avatar pedrobaeza commented on July 25, 2024

Or review current PR...

from openupgrade.

Arcaudas avatar Arcaudas commented on July 25, 2024

Sorry, I don't understand what can I do.

from openupgrade.

pedrobaeza avatar pedrobaeza commented on July 25, 2024

You can propose a fix according the discussion.

from openupgrade.

Arcaudas avatar Arcaudas commented on July 25, 2024

Ah, ok.
But is necessary knowledge about programming with Odoo, I presume.
Isn't it?

from openupgrade.

pedrobaeza avatar pedrobaeza commented on July 25, 2024

Yeah, that's it

from openupgrade.

StefanRijnhart avatar StefanRijnhart commented on July 25, 2024

Fixed in #116, which is now merged.

from openupgrade.

ShrikrishnaPatil avatar ShrikrishnaPatil commented on July 25, 2024

Odoo Server Error
Traceback (most recent call last):
File "/opt/odoo/openerp/http.py", line 650, in _handle_exception
return super(JsonRequest, self)._handle_exception(exception)
File "/opt/odoo/openerp/http.py", line 687, in dispatch
result = self._call_function(**self.params)
File "/opt/odoo/openerp/http.py", line 323, in _call_function
return checked_call(self.db, *args, **kwargs)
File "/opt/odoo/openerp/service/model.py", line 118, in wrapper
return f(dbname, *args, **kwargs)
File "/opt/odoo/openerp/http.py", line 316, in checked_call
result = self.endpoint(*a, **kw)
File "/opt/odoo/openerp/http.py", line 966, in call
return self.method(*args, **kw)
File "/opt/odoo/openerp/http.py", line 516, in response_wrap
response = f(*args, **kw)
File "/opt/odoo/addons/web/controllers/main.py", line 895, in call_kw
return self._call_kw(model, method, args, kwargs)
File "/opt/odoo/addons/web/controllers/main.py", line 887, in _call_kw
return getattr(request.registry.get(model), method)(request.cr, request.uid, *args, **kwargs)
File "/opt/odoo/openerp/api.py", line 250, in wrapper
return old_api(self, *args, **kwargs)
File "/opt/odoo/openerp/api.py", line 354, in old_api
result = method(recs, *args, **kwargs)
File "/opt/odoo/addons/account/models/account_invoice.py", line 361, in create
invoice = super(AccountInvoice, self.with_context(mail_create_nolog=True)).create(vals)
File "/opt/odoo/openerp/api.py", line 248, in wrapper
return new_api(self, *args, **kwargs)
File "/opt/odoo/openerp/api.py", line 490, in new_api
result = method(self._model, cr, uid, *args, **old_kwargs)
File "/opt/odoo/addons/product/product.py", line 1184, in create
product_id = super(product_product, self).create(cr, uid, vals, context=ctx)
File "/opt/odoo/openerp/api.py", line 250, in wrapper
return old_api(self, *args, **kwargs)
File "/opt/odoo/openerp/api.py", line 354, in old_api
result = method(recs, *args, **kwargs)
File "/opt/odoo/addons/mail/models/mail_thread.py", line 235, in create
thread = super(MailThread, self).create(values)
File "/opt/odoo/openerp/api.py", line 248, in wrapper
return new_api(self, *args, **kwargs)
File "/opt/odoo/openerp/models.py", line 4174, in create
record = self.browse(self._create(old_vals))
File "/opt/odoo/openerp/api.py", line 248, in wrapper
return new_api(self, *args, **kwargs)
File "/opt/odoo/openerp/api.py", line 490, in new_api
result = method(self._model, cr, uid, *args, **old_kwargs)
File "/opt/odoo/openerp/models.py", line 4236, in _create
record_id = self.pool[table].create(cr, user, tocreate[table], context=context)
File "/opt/odoo/openerp/api.py", line 250, in wrapper
return old_api(self, *args, **kwargs)
File "/opt/odoo/addons/stock_account/product.py", line 76, in create
return super(product_template, self).create(cr, uid, vals, context=context)
File "/opt/odoo/openerp/api.py", line 250, in wrapper
return old_api(self, *args, **kwargs)
File "/opt/odoo/addons/product/product.py", line 675, in create
product_template_id = super(product_template, self).create(cr, uid, vals, context=context)
File "/opt/odoo/openerp/api.py", line 250, in wrapper
return old_api(self, *args, **kwargs)
File "/opt/odoo/openerp/api.py", line 354, in old_api
result = method(recs, *args, **kwargs)
File "/opt/odoo/addons/mail/models/mail_thread.py", line 235, in create
thread = super(MailThread, self).create(values)
File "/opt/odoo/openerp/api.py", line 248, in wrapper
return new_api(self, *args, **kwargs)
File "/opt/odoo/openerp/models.py", line 4174, in create
record = self.browse(self._create(old_vals))
File "/opt/odoo/openerp/api.py", line 248, in wrapper
return new_api(self, *args, **kwargs)
File "/opt/odoo/openerp/api.py", line 490, in new_api
result = method(self._model, cr, uid, *args, **old_kwargs)
File "/opt/odoo/openerp/models.py", line 4300, in _create
self._check_selection_field_value(cr, user, field, vals[field], context=context)
File "/opt/odoo/openerp/api.py", line 250, in wrapper
return old_api(self, *args, **kwargs)
File "/opt/odoo/openerp/api.py", line 354, in old_api
result = method(recs, *args, **kwargs)
File "/opt/odoo/openerp/models.py", line 2254, in _check_selection_field_value
field.convert_to_cache(value, self)
File "/opt/odoo/openerp/fields.py", line 1545, in convert_to_cache
raise ValueError("Wrong value for %s: %r" % (self, value))
ValueError: Wrong value for product.template.type: u'out_invoice'

helme

from openupgrade.

StefanRijnhart avatar StefanRijnhart commented on July 25, 2024

ShrikrishnaPatil if you think this is related to OpenUpgrade (rather than just Odoo), please create a new issue. However, it looks like insufficient context sanitation, so that the default_type value is passed to the product creation, containing a value that is only valid for the invoice.

from openupgrade.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.