AccessError "You can not read this document! (hr_timesheet_invoice.factor)"

Bug #373180 reported by Freerk Kalsbeek (Mindswitch BV)
16
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Odoo Addons (MOVED TO GITHUB)
Fix Released
Undecided
Jay Vora (Serpent Consulting Services)

Bug Description

On selecting the Analytic Account when encoding working hours I get an AccessError "You can not read this document! (hr_timesheet_invoice.factor)"

The user is member of groups:
- Employees
- Human Resources / Attendences User
- Human Resources / User

Server: 1776
Addons: 2305

Changed in openobject-addons:
assignee: nobody → gkh (Open ERP) (gkh-openerp)
Revision history for this message
Jay Vora (Serpent Consulting Services) (jayvora) wrote :

Hello,

Human Resources / User has the right to read hr_timesheet_invoice.factor.

We cant reproduce the error.

And, Access rights can be specified by you too if needed for your personal use.

Thanks.

Changed in openobject-addons:
status: New → Invalid
Revision history for this message
Freerk Kalsbeek (Mindswitch BV) (f-kalsbeek) wrote :

I just retested it again with a clean database.
Installed hr_timesheet and hr_timesheet_invoice.

The latter introduces the hr_timesheet_invoice.factor object.

When checking security, HR / User has no access on this object.

Attached a screenprint.

Snippet from the logfile on the server on installing hr_timesheet_invoice:

[2009-05-08 16:06:23,913] WARNING:init:module hr_timesheet_invoice: no quality certificate
[2009-05-08 16:06:23,913] INFO:init:module hr_timesheet_invoice: loading security/ir.model.access.csv
[2009-05-08 16:06:23,973] INFO:init:module hr_timesheet_invoice: loading hr_timesheet_invoice_view.xml
[2009-05-08 16:06:25,020] INFO:init:module hr_timesheet_invoice: loading hr_timesheet_invoice_wizard.xml
[2009-05-08 16:06:25,088] INFO:init:module hr_timesheet_invoice: loading hr_timesheet_invoice_report.xml
[2009-05-08 16:06:25,445] INFO:i18n:module hr_timesheet_invoice: loading translation file for language nl_NL
[2009-05-08 16:06:25,746] DEBUG:orm:column relate is in the table ir_model_fields but not in the corresponding object ir.model.fields
[2009-05-08 16:06:25,798] DEBUG:orm:column usage is in the table ir_act_url but not in the corresponding object ir.actions.url
[2009-05-08 16:06:25,844] DEBUG:orm:column trigger_type is in the table wkf_transition but not in the corresponding object workflow.transition
[2009-05-08 16:06:25,873] DEBUG:orm:column version_pattern is in the table ir_module_module_dependency but not in the corresponding object ir.module.module.dependency

Revision history for this message
Jay Vora (Serpent Consulting Services) (jayvora) wrote :

Hello,
I beg your pardon.
I was checking with hr_timesheet_sheet too and it has the rights.

I confirm this and will sort it out soon.

Thanks.

Changed in openobject-addons:
assignee: gkh (Open ERP) (gkh-openerp) → Jay (Open ERP) (jvo-openerp)
status: Invalid → Confirmed
Revision history for this message
Jay Vora (Serpent Consulting Services) (jayvora) wrote :

Hello,

Fixed in revision 2316(stable 5.0).

Thanks.

Changed in openobject-addons:
status: Confirmed → In Progress
status: In Progress → Fix Released
Revision history for this message
j_ K (jkamau30034) wrote :

This problem is still occurring. In new installs, even the superuser belongs to {} Null group. This could or could not be the problem. This error persists especially in new installs or at creation of new database.

Revision history for this message
JMA(Open ERP) (jma-openerp) wrote :

Hello jkamau,

Can you please send us the exact steps which you follow?
As, there seems no problem on our end. It behaves pretty normally.
I have also checked it with the new database installation.

I hope you have properly given access rights to the demo user for the particular object.
Also, please update your code and re-check as this has already been fixed.

Thanks.

Revision history for this message
Csaba TOTH (tsabi) wrote :

I have this bug too.

Installed the 5.0.15 version, created a new database, started the server, and this is at the end of the logs:

[2010-12-14 12:25:18,832][openerp_i3sys] INFO:init:module base: loading res/partner/partner_data.xml
[2010-12-14 12:25:18,851][openerp_i3sys] INFO:init:module base: loading res/ir_property_view.xml
[2010-12-14 12:25:18,879][openerp_i3sys] INFO:init:module base: loading security/base_security.xml
[2010-12-14 12:25:18,908][openerp_i3sys] INFO:init:module base: loading maintenance/maintenance_view.xml
[2010-12-14 12:25:18,941][openerp_i3sys] INFO:init:module base: loading security/ir.model.access.csv
[2010-12-14 12:25:19,248][openerp_i3sys] INFO:init:module base: loading base_demo.xml
[2010-12-14 12:25:19,267][openerp_i3sys] INFO:init:module base: loading res/partner/partner_demo.xml
[2010-12-14 12:25:19,388][openerp_i3sys] INFO:init:module base: loading res/partner/crm_demo.xml
[2010-12-14 12:25:19,400][openerp_i3sys] INFO:init:module base: loading base_test.xml
[2010-12-14 12:25:19,642][openerp_i3sys] INFO:init:updating modules list
[2010-12-14 12:25:21,269][openerp_i3sys] DEBUG:init:Updating graph with 1 more modules
[2010-12-14 12:25:21,304][openerp_i3sys] INFO:init:module base: loading objects
[2010-12-14 12:25:21,341][openerp_i3sys] INFO:init:module base_setup: loading objects
[2010-12-14 12:25:21,342][openerp_i3sys] INFO:init:module base_setup: registering objects
[2010-12-14 12:25:21,342][openerp_i3sys] INFO:init:module base_setup: creating or updating database tables
[2010-12-14 12:25:21,344][openerp_i3sys] INFO:init:module base_setup: loading base_setup_data.xml
[2010-12-14 12:25:21,368][openerp_i3sys] INFO:init:module base_setup: loading security/ir.model.access.csv
[2010-12-14 12:25:21,385][openerp_i3sys] INFO:init:module base_setup: loading base_setup_wizard.xml
[2010-12-14 12:25:21,391][openerp_i3sys] INFO:init:module base_setup: loading base_setup_demo.xml
[2010-12-14 12:25:21,410][openerp_i3sys] DEBUG:orm:column relate is in the table ir_model_fields but not in the corresponding object ir.model.fields
[2010-12-14 12:25:21,420][openerp_i3sys] DEBUG:orm:column usage is in the table ir_act_url but not in the corresponding object ir.actions.url
[2010-12-14 12:25:21,430][openerp_i3sys] DEBUG:orm:column trigger_type is in the table wkf_transition but not in the corresponding object workflow.transition
[2010-12-14 12:25:21,435][openerp_i3sys] DEBUG:orm:column version_pattern is in the table ir_module_module_dependency but not in the corresponding object ir.module.module.dependency
[2010-12-14 12:25:21,452][openerp_i3sys] INFO:init:[01]: Assertions report:
[2010-12-14 12:25:21,452][openerp_i3sys] INFO:init:[02]: Level success failed
[2010-12-14 12:25:21,452][openerp_i3sys] INFO:init:[03]: error 4 0
[2010-12-14 12:25:21,453][openerp_i3sys] INFO:init:[04]: total 4 0
[2010-12-14 12:25:21,453][openerp_i3sys] INFO:init:[05]: end of report (4 assertion(s) checked)
[2010-12-14 12:25:21,474][openerp_i3sys] INFO:web-services:starting NET-RPC service, port 8070
[2010-12-14 12:25:21,474][openerp_i3sys] INFO:web-services:the server is running, waiting for connections...

Revision history for this message
Dhruti Shastri(OpenERP) (dhs-openerp) wrote :

Hello,

I check with the latest version but fortunately do not happen to meet the error !

Thanks.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.