|
2026-11-12 12:50:41
|
WARNING
|
Module sale_timesheet demo data failed to install, installed without demo data
Traceback (most recent call last):
File "/data/build/odoo/odoo/tools/convert.py", line 608, in _tag_root
f(rec)
~^^^^^
File "/data/build/odoo/odoo/tools/convert.py", line 463, in _tag_record
record = model._load_records([data], self.mode == 'update')
File "/data/build/odoo/odoo/orm/models.py", line 5215, in _load_records
records = self._load_records_create([data['values'] for data in to_create])
File "/data/build/odoo/odoo/orm/models.py", line 5122, in _load_records_create
records = self.create(vals_list)
File "/data/build/odoo/odoo/orm/decorators.py", line 369, in create
return method(self, vals_list)
File "/data/build/odoo/addons/hr_timesheet/models/hr_timesheet.py", line 340, in create
lines = super().create(vals_list)
File "/data/build/odoo/odoo/orm/decorators.py", line 369, in create
return method(self, vals_list)
File "/data/build/odoo/addons/account/models/account_analytic_line.py", line 127, in create
analytic_lines = super().create(vals_list)
File "/data/build/odoo/odoo/orm/decorators.py", line 369, in create
return method(self, vals_list)
File "/data/build/odoo/odoo/orm/models.py", line 4750, in create
records._check_company()
~~~~~~~~~~~~~~~~~~~~~~^^
File "/data/build/odoo/odoo/orm/models.py", line 4103, in _check_company
raise UserError("\n".join(lines))
odoo.exceptions.UserError: Uh-oh! You’ve got some company inconsistencies here:
- “Hotel Accommodation” belongs to company “My Company (San Francisco)” while “Partner” (partner_id: 'YourCompany, Marc Demo') belongs to another company.
To avoid a mess, no company crossover is allowed!
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/data/build/odoo/odoo/modules/loading.py", line 75, in load_demo
load_data(env(su=True, context=dict(env.context, install_demo=True)), idref, mode, kind='demo', package=package)
~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/data/build/odoo/odoo/modules/loading.py", line 61, in load_data
convert_file(env, package.name, filename, idref, mode, noupdate=kind == 'demo')
~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/data/build/odoo/odoo/tools/convert.py", line 696, in convert_file
convert_xml_import(env, module, fp, idref, mode, noupdate)
~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/data/build/odoo/odoo/tools/convert.py", line 795, in convert_xml_import
obj.parse(doc.getroot())
~~~~~~~~~^^^^^^^^^^^^^^^
File "/data/build/odoo/odoo/tools/convert.py", line 666, in parse
self._tag_root(de)
~~~~~~~~~~~~~~^^^^
File "/data/build/odoo/odoo/tools/convert.py", line 608, in _tag_root
f(rec)
~^^^^^
File "/data/build/odoo/odoo/tools/convert.py", line 621, in _tag_root
raise ParseError('while parsing %s:%s, somewhere inside\n%s' % (
...<3 lines>...
)) from e
odoo.tools.convert.ParseError: while parsing /data/build/odoo/addons/sale_timesheet/data/sale_service_demo.xml:1260, somewhere inside
<record id="account_analytic_line_exp_2" model="account.analytic.line">
<field name="name" model="account.analytic.line" eval="obj().env.ref('product.expense_hotel').get_product_multiline_description_sale()"/>
<field name="account_id" search="[('partner_id', '=', ref('base.res_partner_4'))]"/>
<field name="partner_id" ref="base.partner_demo"/>
<field name="date" eval="(DateTime.now() + relativedelta(days=0)).strftime('%Y-%m-%d')"/>
<field name="amount">-75.00</field>
<field name="product_id" ref="product.expense_hotel"/>
<field name="product_uom_id" ref="uom.product_uom_day"/>
<field name="unit_amount">1.00</field>
</record>
|
|