跳至內容
選單
此問題已被標幟
1342 瀏覽次數

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.




頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
1
7月 25
414
0
7月 25
446
1
5月 25
941
0
3月 25
1065
0
3月 25
1012