'm trying to edit the table for Timesheets, by adding 2 custom fields I've created. I've tried tracing the page using Inspect element but i can't really find the code related to it in odoo's repository to edit my custom module. Does anyone know what to do? The only got so far is this snippet from the pages element: <div id="ticket\_content" class="o\_portal\_content col-12 col-lg-8 col-xxl-9 mt-5 mt-lg-0">
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
This question has been flagged
How to find the template:
Usually you would go by the closes, distinguishable element, a headline for example, and using a simple, or a regex search in your IDE (i.e. searching for ">Timesheet</h3>" or regex searching for "h3.*Timesheet.*h3" could help you already).
Also, another approach is to search for the closest parent element with an data-oe-model="ir.ui.view" attribute and data-oe-id in the DOM. The data-oe-id given is the view ID you can search for in Settings -> Technical --> User Interface -> Views.
In this example, this would be view ID 3086 (IDs will vary for you!):

Searching for that ID will provide you with this (template) view:

When checking the Architecture, we can confirm that this is indeed the template in question.
Thus, helpdesk_sale_timesheet.tickets_followup_timesheet is the template you are looking for.
Note: In order to see data-oe-id in DOM you will need to be logged in as an internal user viewing the portal.
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