How to Get Metadata Method in Odoo 17 - Odoo 17 Slides

CelineGeorge1 701 views 8 slides Jul 31, 2024
Slide 1
Slide 1 of 8
Slide 1
1
Slide 2
2
Slide 3
3
Slide 4
4
Slide 5
5
Slide 6
6
Slide 7
7
Slide 8
8

About This Presentation

In this slide, we’ll discuss about the get_metadata method in Odoo. It will return metadata about recordset such as, its created from xml or csv file or its created by user including date and time.


Slide Content

get_metadata method in Odoo Enterprise

Introduction Enterpr ise In this slide, we’ll discuss about the get_metadata method in Odoo. I t will return metadata about recordset such as, its created from xml or csv file or its created by user including date and time.

Enterprise After activating the debug mode, in the form view we can get the metadata of the record by clicking on the View Metadata option.

Enterprise This will return a pop up which includes the id, xml id, created user and date and updation details. Xml id ‘/’ indicates this record is created from UI.

Enterprise From here, we can see that the record is created via code and we can search inside the code using this external id.

Enterprise From here, we can see that the record is created via code and we can search inside the code using this external id.

Enterprise Also, we can get the metadata of the records using the function get_metadata() in the code.

For More Info. Check our company website for related blogs and Odoo book. Check our YouTube channel for functional and technical videos in Odoo. Enterprise www.cybrosys.com