コンテンツへスキップ
メニュー
この質問にフラグが付けられました
3 返信
9083 ビュー

Hello, I have make a server action who create a crm.meeting object at the creation of a project.task.work object. I want to have a single calendar with all "meetings"(holidays, meeting, project task and so on).

But work object has just a duration and a date field, how can I calculate the date_deadline field for meeting object with one datetime and one float.

I remember that for duration 8:30=8,5 in database.

I don't know how to do.

アバター
破棄
最善の回答

Maybe you could use the datetime and timedelta Python module if you are programming it?

アバター
破棄
著作者

I'll test it

著作者

thanks a lot

最善の回答

Dear, seee the lunch module ...

アバター
破棄
著作者

what can I found on lunch module?

You will find a way to add days to the current date in demo data XML file!

最善の回答

try this:

<field name="date_deadline" widget="float_time"/>

アバター
破棄
著作者

error:" arch: Invalid XML for View Architecture!' ". But thanks for help. I will try to build a function who make this and call it in my view.

'date_deadline' must be of type float btw. I have a payroll system that uses that function specially for the biometric and attendance

関連投稿 返信 ビュー 活動
2
3月 24
28222
1
3月 15
11123
0
3月 15
6151
1
3月 15
10516
45
4月 23
85975