OCA / sale-reporting

GNU Affero General Public License v3.0
45 stars 186 forks source link

Migration to version 17.0 #241

Open OCA-git-bot opened 8 months ago

OCA-git-bot commented 8 months ago

Todo

https://github.com/OCA/maintainer-tools/wiki/Migration-to-version-17.0

Modules to migrate

Missing module? Check https://github.com/OCA/maintainer-tools/wiki/%5BFAQ%5D-Missing-modules-in-migration-issue-list

jeroenev commented 5 months ago

migrated sale_layout_category_hide_detail in #253

willievmobile commented 3 months ago

@jeroenev i tried to install and test your #253 but it doesnt install if tails with a error (below) and if its forced it crashes odoo when trying to open quotations, ` RPC_ERROR Odoo Server Error Traceback (most recent call last): File "/cloudclusters/odoo/odoo/http.py", line 1732, in _serve_db return service_model.retrying(self._serve_ir_http, self.env) File "/cloudclusters/odoo/odoo/service/model.py", line 133, in retrying result = func() File "/cloudclusters/odoo/odoo/http.py", line 1759, in _serve_ir_http response = self.dispatcher.dispatch(rule.endpoint, args) File "/cloudclusters/odoo/odoo/http.py", line 1960, in dispatch result = self.request.registry['ir.http']._dispatch(endpoint) File "/cloudclusters/odoo/addons/website/models/ir_http.py", line 235, in _dispatch response = super()._dispatch(endpoint) File "/cloudclusters/odoo/odoo/addons/base/models/ir_http.py", line 207, in _dispatch result = endpoint(request.params) File "/cloudclusters/odoo/odoo/http.py", line 722, in route_wrapper result = endpoint(self, *args, *params_ok) File "/cloudclusters/odoo/addons/web/controllers/dataset.py", line 28, in call_button action = self._call_kw(model, method, args, kwargs) File "/cloudclusters/odoo/addons/web/controllers/dataset.py", line 20, in _call_kw return call_kw(request.env[model], method, args, kwargs) File "/cloudclusters/odoo/odoo/api.py", line 466, in call_kw result = _call_kw_multi(method, model, args, kwargs) File "/cloudclusters/odoo/odoo/api.py", line 453, in _call_kw_multi result = method(recs, args, kwargs) File "", line 2, in button_immediate_install File "/cloudclusters/odoo/odoo/addons/base/models/ir_module.py", line 75, in check_and_log return method(self, *args, *kwargs) File "/cloudclusters/odoo/odoo/addons/base/models/ir_module.py", line 459, in button_immediate_install return self._button_immediate_function(type(self).button_install) File "/cloudclusters/odoo/odoo/addons/base/models/ir_module.py", line 583, in _button_immediate_function registry = modules.registry.Registry.new(self._cr.dbname, update_module=True) File "", line 2, in new File "/cloudclusters/odoo/odoo/tools/func.py", line 87, in locked return func(inst, args, **kwargs) File "/cloudclusters/odoo/odoo/modules/registry.py", line 113, in new odoo.modules.load_modules(registry, force_demo, status, update_module) File "/cloudclusters/odoo/odoo/modules/loading.py", line 480, in load_modules processed_modules += load_marked_modules(env, graph, File "/cloudclusters/odoo/odoo/modules/loading.py", line 364, in load_marked_modules loaded, processed = load_module_graph( File "/cloudclusters/odoo/odoo/modules/loading.py", line 227, in load_module_graph load_data(env, idref, mode, kind='data', package=package) File "/cloudclusters/odoo/odoo/modules/loading.py", line 71, in load_data tools.convert_file(env, package.name, filename, idref, mode, noupdate, kind) File "/cloudclusters/odoo/odoo/tools/convert.py", line 627, in convert_file convert_xml_import(env, module, fp, idref, mode, noupdate) File "/cloudclusters/odoo/odoo/tools/convert.py", line 693, in convert_xml_import obj.parse(doc.getroot()) File "/cloudclusters/odoo/odoo/tools/convert.py", line 613, in parse self._tag_root(de) File "/cloudclusters/odoo/odoo/tools/convert.py", line 567, in _tag_root raise ParseError(msg) from None # Restart with "--log-handler odoo.tools.convert:DEBUG" for complete traceback odoo.tools.convert.ParseError: while parsing None:8 Error while parsing or validating view:

Element '' cannot be located in parent view

View error context: {'file': '/cloudclusters/odoo/odoo/addons/sale_layout_category_hide_detail/views/invoice_report_templates.xml', 'line': 2, 'name': 'report_invoice_document_hide_detail', 'view': ir.ui.view(2838,), 'view.model': False, 'view.parent': ir.ui.view(717,), 'xmlid': 'report_invoice_document_hide_detail'}

The above server error caused the following client error: RPC_ERROR: Odoo Server Error RPCError@https://odoo--0.cloudclusters.net/web/assets/a135007/web.assets_web.min.js:2869:319 makeErrorFromResponse@https://odoo--0.cloudclusters.net/web/assets/a135007/web.assets_web.min.js:2872:163 jsonrpc/promise</<@https://odoo--0.cloudclusters.net/web/assets/a135007/web.assets_web.min.js:2876:34 `

jeroenev commented 3 months ago

Try updating Odoo17 to the latest commit/version, they changed something a week ago in that template see last commit: https://github.com/OCA/sale-reporting/pull/253/commits/d69532806985fcca323ef127dc15c8af1b45cda3 if you're running an Odoo17 commit from a week or 2 ago it will give an error, if you're running the latest version it should work

pedrobaeza commented 3 months ago

Please do this conversation in the corresponding PR, not here.

xaviedoanhduy commented 3 months ago

sale_order_line_position #264

alan196 commented 2 months ago

sale_comment_template https://github.com/OCA/sale-reporting/pull/265