2024-07-26 14:47:15
|
WARNING
|
server
|
odoo.modules.loading:93
Module demo_base demo data failed to install, installed without demo data
Traceback (most recent call last):
File "/data/build/adhoc-cicd-odoo-odoo/odoo/tools/convert.py", line 556, in _tag_root
f(rec)
File "/data/build/adhoc-cicd-odoo-odoo/odoo/tools/convert.py", line 456, in _tag_record
record = model._load_records([data], self.mode == 'update')
File "/data/build/adhoc-cicd-odoo-odoo/odoo/models.py", line 5071, in _load_records
records = self._load_records_create([data['values'] for data in to_create])
File "/data/build/adhoc-cicd-odoo-odoo/odoo/models.py", line 4982, in _load_records_create
return self.create(values)
File "<decorator-gen-317>", line 2, in create
File "/data/build/adhoc-cicd-odoo-odoo/odoo/api.py", line 415, in _model_create_multi
return create(self, arg)
File "/data/build/adhoc-cicd-odoo-odoo/addons/payment_custom/models/payment_provider.py", line 31, in create
providers = super().create(values_list)
File "<decorator-gen-246>", line 2, in create
File "/data/build/adhoc-cicd-odoo-odoo/odoo/api.py", line 415, in _model_create_multi
return create(self, arg)
File "/data/build/adhoc-cicd-odoo-odoo/addons/payment/models/payment_provider.py", line 343, in create
providers = super().create(values_list)
File "<decorator-gen-12>", line 2, in create
File "/data/build/adhoc-cicd-odoo-odoo/odoo/api.py", line 415, in _model_create_multi
return create(self, arg)
File "/data/build/adhoc-cicd-odoo-odoo/odoo/models.py", line 4641, in create
next(iter(fields)).determine_inverse(batch_recs)
File "/data/build/adhoc-cicd-odoo-odoo/odoo/fields.py", line 1398, in determine_inverse
determine(self.inverse, records)
File "/data/build/adhoc-cicd-odoo-odoo/odoo/fields.py", line 102, in determine
return needle(*args)
File "/data/build/ingadhoc-multi-company/payment_multic_ux/models/payment_provider.py", line 21, in _inverse_journal_id
self._link_payment_method_to_journal(provider)
File "/data/build/ingadhoc-multi-company/payment_multic_ux/models/payment_provider.py", line 30, in _link_payment_method_to_journal
existing_payment_method_line = self.env['account.payment.method.line'].search([('journal_id.company_id', '=', provider.company_id.id),('code', '=', provider.code),('payment_method_id', '=', default_payment_method_id),('code', '=', code),], limit=1)
File "/data/build/adhoc-cicd-odoo-odoo/odoo/models.py", line 1611, in search
return self.search_fetch(domain, [], offset=offset, limit=limit, order=order)
File "/data/build/adhoc-cicd-odoo-odoo/odoo/models.py", line 1642, in search_fetch
return self._fetch_query(query, fields_to_fetch)
File "/data/build/adhoc-cicd-odoo-odoo/odoo/models.py", line 3942, in _fetch_query
fetched = self.browse(query)
File "/data/build/adhoc-cicd-odoo-odoo/odoo/models.py", line 5817, in browse
if not ids:
File "/data/build/adhoc-cicd-odoo-odoo/odoo/tools/query.py", line 261, in __bool__
return bool(self.get_result_ids())
File "/data/build/adhoc-cicd-odoo-odoo/odoo/tools/query.py", line 224, in get_result_ids
self._cr.execute(self.select())
File "/data/build/adhoc-cicd-odoo-odoo/odoo/sql_db.py", line 332, in execute
res = self._obj.execute(query, params)
psycopg2.ProgrammingError: can't adapt type 'account.payment.method'
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/data/build/adhoc-cicd-odoo-odoo/odoo/modules/loading.py", line 89, in load_demo
load_data(env(su=True), idref, mode, kind='demo', package=package)
File "/data/build/adhoc-cicd-odoo-odoo/odoo/modules/loading.py", line 71, in load_data
tools.convert_file(env, package.name, filename, idref, mode, noupdate, kind)
File "/data/build/adhoc-cicd-odoo-odoo/odoo/tools/convert.py", line 627, in convert_file
convert_xml_import(env, module, fp, idref, mode, noupdate)
File "/data/build/adhoc-cicd-odoo-odoo/odoo/tools/convert.py", line 693, in convert_xml_import
obj.parse(doc.getroot())
File "/data/build/adhoc-cicd-odoo-odoo/odoo/tools/convert.py", line 613, in parse
self._tag_root(de)
File "/data/build/adhoc-cicd-odoo-odoo/odoo/tools/convert.py", line 569, in _tag_root
raise ParseError('while parsing %s:%s, somewhere inside\n%s' % (
odoo.tools.convert.ParseError: while parsing /data/build/ingadhoc-ingadhoc-demo/demo_base/demo/payment_provider_demo.xml:3, somewhere inside
<record id="payment_provider_arg" model="payment.provider">
<field name="name">Demo Ar</field>
<field name="image_128" type="base64" file="payment_demo/static/description/icon.png"/>
<field name="code">demo</field>
<field name="inline_form_view_id" ref="payment_demo.inline_form"/>
<field name="token_inline_form_view_id" ref="payment_demo.token_inline_form"/>
<field name="allow_tokenization">True</field>
<field name="state">test</field>
<field name="company_id" ref="l10n_ar.company_ri"/>
<field name="journal_id" model="account.journal" search="[('type', '=', 'bank'), ('company_id', '=', ref('l10n_ar.company_ri'))]"/>
</record>
|