コンテンツへスキップ
Odoo メニュー
  • サインイン
  • 無料で15日試す
  • アプリ
    財務
    • 会計
    • 請求
    • 経費
    • スプレッドシート(BI)
    • ドキュメント管理
    • 署名
    販売
    • CRM
    • 販売
    • POS店舗
    • POSレストラン
    • サブスクリプション
    • レンタル
    ウェブサイト
    • ウェブサイトビルダー
    • eコマース
    • ブログ
    • フォーラム
    • ライブチャット
    • eラーニング
    サプライチェーン
    • 在庫
    • 製造
    • 製品ライフサイクル管理 (PLM)
    • 購買
    • 整備
    • 品質
    人事業務
    • 従業員管理
    • 採用
    • 休暇管理
    • 人事評価
    • リファラル
    • フリート
    マーケティング
    • ソーシャルマーケティング
    • メールマーケティング
    • SMSマーケティング
    • イベント
    • マーケティングオートメーション
    • アンケート調査
    サービス
    • プロジェクト管理
    • タイムシート
    • フィールドサービス
    • ヘルプデスク
    • 計画
    • アポイントメント
    生産性向上ツール
    • ディスカッション
    • 承認
    • IoT
    • VoIP
    • ナレッジ
    • WhatsApp
    サードパーティアプリ Odooスタジオ Odooクラウドプラットホーム
  • インダストリー(業種別ソリューション)
    小売
    • 書店
    • アパレルショップ
    • 家具専門店
    • 食料品店
    • 金物店
    • 玩具店
    飲食・ホスピタリティ業界
    • バー・パブ
    • レストラン
    • ファストフード
    • ゲストハウス
    • 飲料販売代理店
    • ホテル
    不動産
    • 不動産会社
    • 建築事務所
    • 建設
    • 不動産管理
    • 造園
    • 住宅所有者組合
    コンサルティング
    • 会計事務所
    • Odooパートナー
    • マーケティングエージェンシー
    • 法律事務所
    • 人材派遣
    • 監査・認証
    製造
    • テキスタイル
    • 金属
    • 家具
    • 飲食
    • 醸造所
    • コーポレートギフト
    ヘルス & フィットネス
    • スポーツクラブ
    • 眼鏡店
    • フィットネスセンター
    • ウェルネス専門家
    • 薬局
    • ヘアサロン
    業種
    • 便利屋
    • IT ハードウェア・サポート
    • 太陽エネルギーシステム
    • 靴メーカー
    • クリーニングサービス
    • 空調設備サービス
    その他
    • 非営利団体
    • 環境機関
    • ビルボードレンタル
    • 写真
    • 自転車リース
    • ソフトウェアリセラー
    すべての業種を見る
  • コミュニティ
    学ぶ
    • チュートリアル
    • ドキュメンテーション
    • 認定
    • トレーニング
    • ブログ
    • ポッドキャスト
    教育サポート
    • 教育プログラム
    • Scale Up! ビジネスゲーム
    • Odooオフィス訪問
    ソフトを入手
    • ダウンロード
    • エディションを比較
    • リリース
    コラボレーション
    • Github
    • フォーラム
    • イベント
    • 翻訳
    • パートナーになる
    • パートナー様向けサービス
    • 会計事務所を登録
    サービス利用
    • パートナー一覧
    • 会計事務所一覧
    • 今すぐ相談する
    • 導入支援サービス
    • お客様一覧
    • サポート
    • アップグレード
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    製品デモを利用する
  • 料金
  • ヘルプ

Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:

  • CRM
  • e-Commerce
  • 会計
  • 在庫
  • PoS
  • プロジェクト
  • MRP
All apps
コミュニティで交流するには登録する必要があります。
全てのポスト 人々 バッジ
タグ (全て表示)
odoo accounting v14 pos v15
このフォーラムについて
コミュニティで交流するには登録する必要があります。
全てのポスト 人々 バッジ
タグ (全て表示)
odoo accounting v14 pos v15
このフォーラムについて
ヘルプ

How to implement automatically signout in odoo 8 or openerp 7 human resource module , if the PC is idle(or sleep) condition

購読

この投稿に活動があった際に通知を受け取ります

この質問にフラグが付けられました
8 返信
9927 ビュー
アバター
ABU K

Hi all,

I want to implement automatically signout feature from HR module in odoo 8 or openerp 7 version.

Currently the attendance system shows last sign in message and click for signout and sign in alert .But I want to do signout steps automatically ,if the user is in idle(sleep ,based on our PC) condition for a particular time period.How can I achievee this task? 

0
アバター
破棄
アバター
Simplify it!
最善の回答

You can install the community addon: Idle Logout

0
アバター
破棄
ABU K
著作者

Hi..Appreciate for your response.But actual requirement is related to HR Employees ,not for users in odoo.. I can easily customize users Logout by http.py file.But my question is related to hr employees sign out if the PC is idle some time...Please replay for this question..

アバター
Mukundayi Mpapa T.
最善の回答


the same function is available in odoo 8. The only difference is that the http.py file is located at the root of odoo directory and not in addons/web . One more thing. If you server doesnt have a heavy request, it could be better for you to increase the top limit of the random value : for example

if random.random() < 0.1:

This is valid for session timeout from the server and not from HR module

To automaticaly sign out of HR attendance, this is one of the steps you can do:

1. Create a module that depends on hr.attendance

2. inherit the hr.employee class

3. define a function that you can call in an action. this function is in the new hr_employe class you created

4. Inside the function, for each employee (hr.employee) define a routine to check if the session is active for the user (res.user) related to the employee (it can be similar to the function in http.py session_gc(session_store) without the random ). dont forget to import packages like os, sys

5. When the user has no active session, if employee.state=='present', call attendance_action_change(cr, employee.id, [], context=None) . This function is already defined in the hr.employee under hr.attendance module

6. Create an action that you can call, lets say every 5 min. Bind it on the hr.employee object with the function you created on step 3



0
アバター
破棄
ABU K
著作者

Then how to implement this in odoo 8,Can you explain step by step

Mukundayi Mpapa T.

You mean for the HR attendance Signout? If yes then one of the things to to could be 1. Create a module that depends on hr.attendance 2. inherit the hr.employee class 3. define a function that you can call in an action. this function is in the new hr_employe class you created 4. Inside the function, for each employe define a routine to check if the session is active for a user (it can be similar to the function in http.py session_gc(session_store) without the random ) 5. When the session is not active, if employee.state=='present', call attendance_action_change(cr, employee.id, [], context=None) . This function is defined in the hr.employee under hr.attendance module 6. Create an action that you can call, lets say every 5 min. Bind it on the hr.employee object with the function you created on step 3

アバター
Med Said BARA
最善の回答

Signout or Logout, a little bit confused: login (logon) and logout (logoff) or sign in sign out ...... OpenERP Session or HR Time and Attendance !!! ???

In your question you are talking about 2 different things: OpenERP automatic Logout from session (based on timeout) and  HR Attendance Signout.

For the first case, if you just want to log out user (ending his session): edit the file ../addons/web/http.py at line 450 (last_week = time.time() - 60*60*24*7), and replace 60*60*24*24*7 by the value you want (Idle Time = Timeout - in seconds )  (e.g for 15 minutes = 60*15, for one day = 60*60*24, for 2 days = 60*60*24*2 ...). And restart the server if needed.

For the second case, just post another question, describing what you really want.

And if you want to implement an automatic sign out solution for Time tracking in HR Attendance (an employee forgot to sign out ...)  just take a look to the code in this module (or use it as it is).

Important Remark: When a user is Login out from his session this not mean that he Signed out for the Day in Attendance.

Very complicated solution, you are putting the bar very high !!!

In fact you need a mix of the both cases, maybe this can simply done by executing the hr_sign_out_forgotten_solve when removing session (i mean calling the function hr_sign_out_forgotten_solve ​in the removed_sessions) BUT HOW ???And this implies that the employee is already in Sign in State.

0
アバター
破棄
ABU K
著作者

Yes I need the second case HR Attendance Signout(should automatically signout if the system is idle after some time ,not about session expiring),I dont want to openerp session time out .

Med Said BARA

Very complicated solution, you are putting the bar very high !!!

Med Said BARA

It's a "Google" translation from French "Mettre la barre très haut", which means the question is reaching a High Level of difficulties and need more skills (Nothing bad)

ディスカッションを楽しんでいますか?読むだけでなく、参加しましょう!

今すぐアカウントを作成して、限定機能を利用したり、素晴らしいコミュニティと交流しましょう!

登録
コミュニティ
  • チュートリアル
  • ドキュメンテーション
  • フォーラム
オープンソース
  • ダウンロード
  • Github
  • Runbot
  • 翻訳
サービス
  • Odoo.shホスティング
  • サポート
  • アップグレード
  • カスタム開発
  • 教育プログラム
  • 会計事務所一覧
  • パートナー一覧
  • パートナーになる
企業情報
  • 会社概要
  • ブランドアセット
  • お問い合わせ
  • 採用情報
  • イベント
  • ポッドキャスト
  • ブログ
  • お客様一覧
  • リーガル情報 • プライバシーポリシー
  • セキュリティ
الْعَرَبيّة Català 简体中文 繁體中文 (台灣) Čeština Dansk Nederlands English Suomi Français Deutsch हिंदी Bahasa Indonesia Italiano 日本語 한국어 (KR) Lietuvių kalba Język polski Português (BR) română русский язык Slovenský jazyk slovenščina Español (América Latina) Español ภาษาไทย Türkçe українська Tiếng Việt

Odoo(オドゥー)は、CRM、eコマース、会計、在庫管理、POS、プロジェクト管理など、企業のさまざまな業務を一つのシステムで管理できる、ベルギー発のオープンソースのERPソフトウェアです。

高機能で使いやすく、完全に統合されたERPとして、ユニークな価値を提供しています。

Website made with

Odoo Experience on YouTube

1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.

Live support on Youtube
Watch now