Skip to Content
Menu
This question has been flagged
1424 Rodiniai

Hi.

How can I use Odoo JSON-RPC to call the function get_work_hours_count from resource.calendar model, over the record with id=6?

In other words I would like to something like:

my_resource_calendar = self.env["resource.calendar "].browse(6)
my_resource_calendar.get_work_hours_count("2024-01-01","2024-01-05")

But using the JSON-RPC. Is it possible?

Version: Odoo 17

Thanks in advance.




Portretas
Atmesti
Related Posts Replies Rodiniai Veikla
1
rugs. 25
1134
1
liep. 25
575
0
liep. 25
625
0
kov. 25
1140
0
kov. 25
1137