Skip to Content
Odoo Menu
  • Sign in
  • Try it free
  • Apps
    Finance
    • Accounting
    • Invoicing
    • Expenses
    • Spreadsheet (BI)
    • Documents
    • Sign
    Sales
    • CRM
    • Sales
    • POS Shop
    • POS Restaurant
    • Subscriptions
    • Rental
    Websites
    • Website Builder
    • eCommerce
    • Blog
    • Forum
    • Live Chat
    • eLearning
    Supply Chain
    • Inventory
    • Manufacturing
    • PLM
    • Purchase
    • Maintenance
    • Quality
    Human Resources
    • Employees
    • Recruitment
    • Time Off
    • Appraisals
    • Referrals
    • Fleet
    Marketing
    • Social Marketing
    • Email Marketing
    • SMS Marketing
    • Events
    • Marketing Automation
    • Surveys
    Services
    • Project
    • Timesheets
    • Field Service
    • Helpdesk
    • Planning
    • Appointments
    Productivity
    • Discuss
    • Approvals
    • IoT
    • VoIP
    • Knowledge
    • WhatsApp
    Third party apps Odoo Studio Odoo Cloud Platform
  • Industries
    Retail
    • Book Store
    • Clothing Store
    • Furniture Store
    • Grocery Store
    • Hardware Store
    • Toy Store
    Food & Hospitality
    • Bar and Pub
    • Restaurant
    • Fast Food
    • Guest House
    • Beverage Distributor
    • Hotel
    Real Estate
    • Real Estate Agency
    • Architecture Firm
    • Construction
    • Estate Management
    • Gardening
    • Property Owner Association
    Consulting
    • Accounting Firm
    • Odoo Partner
    • Marketing Agency
    • Law firm
    • Talent Acquisition
    • Audit & Certification
    Manufacturing
    • Textile
    • Metal
    • Furnitures
    • Food
    • Brewery
    • Corporate Gifts
    Health & Fitness
    • Sports Club
    • Eyewear Store
    • Fitness Center
    • Wellness Practitioners
    • Pharmacy
    • Hair Salon
    Trades
    • Handyman
    • IT Hardware & Support
    • Solar Energy Systems
    • Shoe Maker
    • Cleaning Services
    • HVAC Services
    Others
    • Nonprofit Organization
    • Environmental Agency
    • Billboard Rental
    • Photography
    • Bike Leasing
    • Software Reseller
    Browse all Industries
  • Community
    Learn
    • Tutorials
    • Documentation
    • Certifications
    • Training
    • Blog
    • Podcast
    Empower Education
    • Education Program
    • Scale Up! Business Game
    • Visit Odoo
    Get the Software
    • Download
    • Compare Editions
    • Releases
    Collaborate
    • Github
    • Forum
    • Events
    • Translations
    • Become a Partner
    • Services for Partners
    • Register your Accounting Firm
    Get Services
    • Find a Partner
    • Find an Accountant
    • Meet an advisor
    • Implementation Services
    • Customer References
    • Support
    • Upgrades
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Get a demo
  • Pricing
  • Help

Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:

  • CRM
  • e-Commerce
  • Accounting
  • Inventory
  • PoS
  • Project
  • MRP
All apps
You need to be registered to interact with the community.
All Posts People Badges
Tags (View all)
odoo accounting v14 pos v15
About this forum
You need to be registered to interact with the community.
All Posts People Badges
Tags (View all)
odoo accounting v14 pos v15
About this forum
Help

How to change 'view account' status to avoid "You cannot create analytic line on view account."

Subscribe

Get notified when there's activity on this post

This question has been flagged
analytictimesheetaccount_id
3 Replies
8886 Views
Avatar
Stefan Reichel

The admin user can add new lines (for existing contracts/account) to his current timesheet. Other users (even wth manager access) receive the following:

ValidateError

Field(s) `account_id` failed against a constraint: You cannot create analytic line on view account.

Error details:

AccessError

The requested operation cannot be completed due to security restrictions. Please contact your system administrator.

(Document type: account.analytic.line, Operation: read)

I verified the ACLs in settings for any "account.analytic.line" entry. I think the problem lies in the first line of the error message "You cannot create analytic line on view account.". How can I check (and reset) the status of the account?

I need to get our users to track their time against those accounts again.

This was working until yesterday, when I invoiced some of the timesheet lines to a customer. since then, the views (timesheet, journal entries, etc) of the analytic account and timesheet records seems to be filtered to only that customers, that we send the invoice to.

Please explain/help how to reset this filter/account state.

We run Odoo 8.

0
Avatar
Discard
Avatar
Sudhir Arya (ERP Harbor Consulting Services)
Best Answer

I don't know why you have this issue.

Please check the access rights and record rules of "account.analytic.line" object.

Go to "Settings / Technical / Database Structure / Models" and then search for account.analytic.line object, open the record and check the access rights.

If access rights seems correct, check the record rules "Settings / Technical / Security / Record Rules" and search for analytic line object and check the record rule. There should be only one rule which looks like this: ['|',('company_id','=',False),('company_id','child_of',[user.company_id.id])]

Let me know if there are another rules.

Sudhir Arya
ERP Harbor Consulting Services
Skype:sudhir@erpharbor.com
Website: http://www.erpharbor.com
3
Avatar
Discard
Stefan Reichel
Author

Hi Sudhir,

Thank you for your response. The model's security's access rights have all "read" boxes ticked.

The Record Rules have only the one rule you mentioned.

What else is there to check, please?

Cheers,

Stefan

Noura Abdelnoor

can't get any object in record rule called analytic line

Avatar
W.J. Stemerdink
Best Answer

Hi Sudhir,

Thanks for your instructions. Like Stefan, I did the same, and still the error pops up.

Do you have any idea how to go about this?

Thanks a lot for your kind help,

Wouter


0
Avatar
Discard
Enjoying the discussion? Don't just read, join in!

Create an account today to enjoy exclusive features and engage with our awesome community!

Sign up
Related Posts Replies Views Activity
What is the Meaning of Analytic Account Solved
analytic timesheet
Avatar
Avatar
1
Dec 23
21966
if I update any current record in timesheet and say Save then also it is showing the previous record.
v7 analytic timesheet
Avatar
0
Mar 15
4226
related Many2One field Solved
analytic timesheet reference related_fields
Avatar
Avatar
2
Sep 22
3672
How to track project cost with Time sheet in V11 Solved
project account analytic timesheet
Avatar
Avatar
1
Nov 19
5195
Non user employee and timesheet
project analytic timesheet employees
Avatar
Avatar
1
Feb 17
5445
Community
  • Tutorials
  • Documentation
  • Forum
Open Source
  • Download
  • Github
  • Runbot
  • Translations
Services
  • Odoo.sh Hosting
  • Support
  • Upgrade
  • Custom Developments
  • Education
  • Find an Accountant
  • Find a Partner
  • Become a Partner
About us
  • Our company
  • Brand Assets
  • Contact us
  • Jobs
  • Events
  • Podcast
  • Blog
  • Customers
  • Legal • Privacy
  • Security
الْعَرَبيّة Català 简体中文 繁體中文 (台灣) Čeština Dansk Nederlands English Suomi Français Deutsch हिंदी Bahasa Indonesia Italiano 日本語 한국어 (KR) Lietuvių kalba Język polski Português (BR) română русский язык Slovenský jazyk slovenščina Español (América Latina) Español ภาษาไทย Türkçe українська Tiếng Việt

Odoo is a suite of open source business apps that cover all your company needs: CRM, eCommerce, accounting, inventory, point of sale, project management, etc.

Odoo's unique value proposition is to be at the same time very easy to use and fully integrated.

Website made with

Odoo Experience on YouTube

1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.

Live support on Youtube
Watch now