Comments (10)
That it's because mail migration is not yet completed. Current work is being discused here: #116
from openupgrade.
Thanks
I'll wait.
from openupgrade.
Or review current PR...
from openupgrade.
Sorry, I don't understand what can I do.
from openupgrade.
You can propose a fix according the discussion.
from openupgrade.
Ah, ok.
But is necessary knowledge about programming with Odoo, I presume.
Isn't it?
from openupgrade.
Yeah, that's it
from openupgrade.
Fixed in #116, which is now merged.
from openupgrade.
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.
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)
- Migration continue don't run migration scripts HOT 5
- [14.0 -> 16.0] SQL views removed in Odoo HOT 6
- [v15 -> v16 Openupgrade] res_partner_views: Inherited view cannot have 'Groups' define on the record. Use 'groups' attributes inside the view definition
- [14.0] update all multi-company security rules HOT 6
- [12.0] violates not-null constraint decimal.precision HOT 4
- [13.0] wrong rename for account.move.reverse_entry_id HOT 1
- [12] Update 12 to 13 HOT 7
- Is there any config in openupgrade to disable oca install dependency? HOT 4
- [11→12]: psycopg2.ProgrammingError: can't adapt type 'res.company' [stock] HOT 4
- [15→16] sale_purchase: AttributeError: 'ir.model.constraint' object has no attribute '_module_data_uninstall' HOT 2
- [11->12] payment_icons in inherited website model of module website_payment from v11 is unavailable in v12, but used in footer template view HOT 1
- i cannot access to accounting HOT 1
- I am trying to update Odoo bitnami 15.0 and it isn't working
- [13 -> 14] Migration Error
- Unable Upgrade: How to upgrade from Odoo 16 to Odoo 17 ? HOT 2
- [14.0][account] ERROR: column "account_reconcile_model_line_id" referenced in foreign key constraint does not exist HOT 1
- [16.0] After DB migration account resequence failing HOT 1
- [IMP] openupgrade_framework: Do remove the ir.model.fields entries HOT 15
- Unescaped parameters in website 15.0 post-migration script HOT 2
- Migration to version 18.0
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from openupgrade.