kittiu / aagc

0 stars 0 forks source link

Error when click on smart button "Invoices", from an SO Invoice Plan #1

Closed kittiu closed 4 years ago

kittiu commented 4 years ago

image

kittiu commented 4 years ago

Error: Odoo Server Error

Traceback (most recent call last): File "/opt/odoo/custom/src/odoo/odoo/api.py", line 1049, in get value = self._data[key][field][record._ids[0]] KeyError: 204

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/opt/odoo/custom/src/odoo/odoo/fields.py", line 1005, in get value = record.env.cache.get(record, self) File "/opt/odoo/custom/src/odoo/odoo/api.py", line 1051, in get raise CacheMiss(record, field) odoo.exceptions.CacheMiss: ('ir.actions.act_window(204,).search_view', None)

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/opt/odoo/custom/src/odoo/odoo/http.py", line 656, in _handle_exception return super(JsonRequest, self)._handle_exception(exception) File "/opt/odoo/custom/src/odoo/odoo/http.py", line 314, in _handle_exception raise pycompat.reraise(type(exception), exception, sys.exc_info()[2]) File "/opt/odoo/custom/src/odoo/odoo/tools/pycompat.py", line 87, in reraise raise value File "/opt/odoo/custom/src/odoo/odoo/http.py", line 698, in dispatch result = self._call_function(self.params) File "/opt/odoo/custom/src/odoo/odoo/http.py", line 346, in _call_function return checked_call(self.db, *args, *kwargs) File "/opt/odoo/custom/src/odoo/odoo/service/model.py", line 97, in wrapper return f(dbname, args, kwargs) File "/opt/odoo/custom/src/odoo/odoo/http.py", line 339, in checked_call result = self.endpoint(*a, kw) File "/opt/odoo/custom/src/odoo/odoo/http.py", line 941, in call return self.method(*args, *kw) File "/opt/odoo/custom/src/odoo/odoo/http.py", line 519, in response_wrap response = f(args, kw) File "/opt/odoo/auto/addons/web/controllers/main.py", line 966, in call_button action = self._call_kw(model, method, args, {}) File "/opt/odoo/auto/addons/web/controllers/main.py", line 954, in _call_kw return call_kw(request.env[model], method, args, kwargs) File "/opt/odoo/custom/src/odoo/odoo/api.py", line 759, in call_kw return _call_kw_multi(method, model, args, kwargs) File "/opt/odoo/custom/src/odoo/odoo/api.py", line 746, in _call_kw_multi result = method(recs, *args, **kwargs) File "/opt/odoo/auto/addons/sale/models/sale.py", line 504, in action_view_invoice action = self.env.ref('account.action_invoice_tree1').read()[0] File "/opt/odoo/custom/src/odoo/odoo/addons/base/models/ir_actions.py", line 210, in read result = super(IrActionsActWindow, self).read(fields, load=load) File "/opt/odoo/custom/src/odoo/odoo/models.py", line 2806, in read vals[name] = convert(record[name], record, use_name_get) File "/opt/odoo/custom/src/odoo/odoo/models.py", line 5134, in getitem return self._fields[key].get(self, type(self)) File "/opt/odoo/custom/src/odoo/odoo/fields.py", line 1009, in get self.determine_value(record) File "/opt/odoo/custom/src/odoo/odoo/fields.py", line 1122, in determine_value self.compute_value(recs) File "/opt/odoo/custom/src/odoo/odoo/fields.py", line 1076, in compute_value self._compute_value(records) File "/opt/odoo/custom/src/odoo/odoo/fields.py", line 1067, in _compute_value getattr(records, self.compute)() File "/opt/odoo/custom/src/odoo/odoo/addons/base/models/ir_actions.py", line 170, in _compute_search_view fvg = self.env[act.res_model].fields_view_get(act.search_view_id.id, 'search') File "/opt/odoo/auto/addons/account/models/account_invoice.py", line 643, in fields_view_get return super(AccountInvoice, self).fields_view_get(view_id=view_id, view_type=view_type, toolbar=toolbar, submenu=submenu) File "/opt/odoo/auto/addons/mail/models/mail_thread.py", line 409, in fields_view_get res = super(MailThread, self).fields_view_get(view_id=view_id, view_type=view_type, toolbar=toolbar, submenu=submenu) File "/opt/odoo/custom/src/odoo/odoo/models.py", line 1471, in fields_view_get xarch, xfields = View.postprocess_and_fields(self._name, etree.fromstring(result['arch']), view_id) File "/opt/odoo/custom/src/odoo/odoo/addons/base/models/ir_ui_view.py", line 1111, in postprocess_and_fields self.raise_view_error(message, view_id) File "/opt/odoo/custom/src/odoo/odoo/addons/base/models/ir_ui_view.py", line 548, in raise_view_error raise ValueError(message) ValueError: Field account_analytic_ids does not exist

Error context: View account.invoice.select [view_id: 539, xml_id: account.view_account_invoice_filter, model: account.invoice, parent_id: n/a]

AaronHForgeFlow commented 4 years ago

Same issue as https://github.com/kittiu/aagc/issues/3. It is now fixed. Please apologies.

kittiu commented 4 years ago

Thanks!