You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Error when trying to create mis_builder_cash_flow_forecast lines with cron, even when the company and account company are the same
Error:
Exception:odoo.exceptions.ValidationError
Traceback (most recent call last):
File "/opt/odoo/auto/addons/queue_job/controllers/main.py", line 110, in runjob
self._try_perform_job(env, job)
File "/opt/odoo/auto/addons/queue_job/controllers/main.py", line 37, in _try_perform_job
job.perform()
File "/opt/odoo/auto/addons/queue_job/job.py", line 525, in perform
self.result = self.func(*tuple(self.args), **self.kwargs)
File "/opt/odoo/auto/addons/mis_builder_cash_flow_forecast_purchase/models/purchase_order.py", line 239, in _generate_mis_cash_flow_forecast_lines
return self.env["mis.cash_flow.forecast_line"].create(values)
File "<decorator-gen-66>", line 2, in create
File "/opt/odoo/custom/src/odoo/odoo/api.py", line 353, in _model_create_multi
return create(self, arg)
File "/opt/odoo/custom/src/odoo/odoo/addons/base/models/ir_fields.py", line 534, in create
recs = super().create(vals_list)
File "<decorator-gen-15>", line 2, in create
File "/opt/odoo/custom/src/odoo/odoo/api.py", line 353, in _model_create_multi
return create(self, arg)
File "/opt/odoo/custom/src/odoo/odoo/models.py", line 3899, in create
records = self._create(data_list)
File "/opt/odoo/custom/src/odoo/odoo/models.py", line 4072, in _create
records._validate_fields(name for data in data_list for name in data['stored'])
File "/opt/odoo/custom/src/odoo/odoo/models.py", line 1277, in _validate_fields
check(self)
File "/opt/odoo/auto/addons/mis_builder_cash_flow/models/mis_cash_flow_forecast_line.py", line 44, in _check_company_id_account_id
raise ValidationError(
odoo.exceptions.ValidationError: The Company and the Company of the Account must be the same.
The text was updated successfully, but these errors were encountered:
Modules
mis_builder_cash_flow_forecast_contract
mis_builder_cash_flow_forecast_purchase
mis_builder_cash_flow_forecast_sale
mis_builder_cash_flow_forecast_sale_invoice_plan
Describe the bug
Error when trying to create mis_builder_cash_flow_forecast lines with cron, even when the company and account company are the same
Error:
The text was updated successfully, but these errors were encountered: