Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[7.0] Fix error in Aeroo reports #13

Closed
bwrsandman opened this issue Jul 22, 2014 · 2 comments
Closed

[7.0] Fix error in Aeroo reports #13

bwrsandman opened this issue Jul 22, 2014 · 2 comments

Comments

@bwrsandman
Copy link

Test fail in travis due to Aeroo reports

2014-07-13 15:23:08,873 12085 INFO openerp_test openerp.modules.loading: module hr_policy_absence: loading data/salary_rules_data.xml
2014-07-13 15:23:08,878 12085 ERROR openerp_test openerp.sql_db: bad query: delete from hr_holidays_status where id IN (1)
Traceback (most recent call last):
File "/usr/lib/pymodules/python2.7/openerp/sql_db.py", line 226, in execute
res = self._obj.execute(query, params)
IntegrityError: null value in column "holiday_status_id" violates not-null constraint
CONTEXT: SQL statement "UPDATE ONLY "public"."hr_holidays" SET "holiday_status_id" = NULL WHERE $1 OPERATOR(pg_catalog.=) "holiday_status_id""
2014-07-13 15:23:08,878 12085 ERROR openerp_test openerp.tools.convert: Parse error in /home/travis/build/OCA/hr/hr_policy_absence/data/salary_rules_data.xml:6:
<delete model="hr.holidays.status" search="[('name','like','Legal Leaves%')]"/>
Traceback (most recent call last):
File "/usr/lib/pymodules/python2.7/openerp/tools/convert.py", line 852, in parse
self._tags[rec.tag](self.cr, rec, n)
File "/usr/lib/pymodules/python2.7/openerp/tools/convert.py", line 282, in _tag_delete
self.pool.get(d_model).unlink(cr, self.uid, ids)
File "/usr/lib/pymodules/python2.7/openerp/osv/orm.py", line 4050, in unlink
'where id IN %s', (sub_ids,))
File "/usr/lib/pymodules/python2.7/openerp/sql_db.py", line 161, in wrapper
return f(self, *args, **kwargs)
File "/usr/lib/pymodules/python2.7/openerp/sql_db.py", line 226, in execute
res = self._obj.execute(query, params)
IntegrityError: null value in column "holiday_status_id" violates not-null constraint
CONTEXT: SQL statement "UPDATE ONLY "public"."hr_holidays" SET "holiday_status_id" = NULL WHERE $1 OPERATOR(pg_catalog.=) "holiday_status_id""
2014-07-13 15:23:08,880 12085 ERROR openerp_test openerp: Failed to initialize database `openerp_test`.
Traceback (most recent call last):
File "/usr/lib/pymodules/python2.7/openerp/cli/server.py", line 97, in preload_registry
db, registry = openerp.pooler.get_db_and_pool(dbname,update_module=update_module)
File "/usr/lib/pymodules/python2.7/openerp/pooler.py", line 33, in get_db_and_pool
registry = RegistryManager.get(db_name, force_demo, status, update_module)
File "/usr/lib/pymodules/python2.7/openerp/modules/registry.py", line 203, in get
update_module)
File "/usr/lib/pymodules/python2.7/openerp/modules/registry.py", line 233, in new
openerp.modules.load_modules(registry.db, force_demo, status, update_module)
File "/usr/lib/pymodules/python2.7/openerp/modules/loading.py", line 354, in load_modules
loaded_modules, update_module)
File "/usr/lib/pymodules/python2.7/openerp/modules/loading.py", line 256, in load_marked_modules
loaded, processed = load_module_graph(cr, graph, progressdict, report=report, skip_modules=loaded_modules, perform_checks=perform_checks)
File "/usr/lib/pymodules/python2.7/openerp/modules/loading.py", line 188, in load_module_graph
load_data(module_name, idref, mode)
File "/usr/lib/pymodules/python2.7/openerp/modules/loading.py", line 76, in <lambda>
load_data = lambda *args: _load_data(cr, *args, kind='data')
File "/usr/lib/pymodules/python2.7/openerp/modules/loading.py", line 124, in _load_data
tools.convert_xml_import(cr, module_name, fp, idref, mode, noupdate, report)
File "/usr/lib/pymodules/python2.7/openerp/tools/convert.py", line 959, in convert_xml_import
obj.parse(doc.getroot())
File "/usr/lib/pymodules/python2.7/openerp/tools/convert.py", line 852, in parse
self._tags[rec.tag](self.cr, rec, n)
File "/usr/lib/pymodules/python2.7/openerp/tools/convert.py", line 282, in _tag_delete
self.pool.get(d_model).unlink(cr, self.uid, ids)
File "/usr/lib/pymodules/python2.7/openerp/osv/orm.py", line 4050, in unlink
'where id IN %s', (sub_ids,))
File "/usr/lib/pymodules/python2.7/openerp/sql_db.py", line 161, in wrapper
return f(self, *args, **kwargs)
File "/usr/lib/pymodules/python2.7/openerp/sql_db.py", line 226, in execute
res = self._obj.execute(query, params)
IntegrityError: null value in column "holiday_status_id" violates not-null constraint
CONTEXT: SQL statement "UPDATE ONLY "public"."hr_holidays" SET "holiday_status_id" = NULL WHERE $1 OPERATOR(pg_catalog.=) "holiday_status_id""
@eLBati
Copy link
Member

eLBati commented Sep 12, 2014

About aeroo inclusion: OCA/reporting-engine#1

@bwrsandman
Copy link
Author

7.0 is passing, so I am closing this

sambarros pushed a commit to sambarros/hr that referenced this issue Jul 26, 2018
[BSSFL-86] Add sf_partner_entity_type
Mraimou pushed a commit to camptocamp/hr that referenced this issue Nov 25, 2019
Use docker image camptocamp/odoo-project:9.0-1.7.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants