Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[10.0][MIG] project_timesheet_time_control #266

Merged

Conversation

luismontalba
Copy link
Member

Project Timesheet Time Control

  • This module adds a button at account analytic line level to compute the spent
    time, in minutes, from start date to the current moment.
  • It improves the domain applied to task field for accommodating to a project
    flow.
  • It adds a datetime field that replaces date field in tree view, and write
    date field with datetime field value.
  • Finally, it allows to open and close tasks from account analytic lines.
    The selected closed stage is the first one that is found with the mark
    "Closed" checked.

Usage

You can access via timesheets:

  • Go to Timesheets > My Timesheet > Detailed Activities.
  • Create a new record.
  • You will see now that the "Date" field contains also time information.
  • If you don't select any "Analytic account/project", you will be able to
    select any task, opened or not.
  • Selecting a task, the corresponding analytic account/project is filled.
  • Selecting an analytic account/project, tasks are filtered for only allow
    to select opened tasks for that project. Remember that an opened task is
    a task whose stage doesn't have "Closed" mark checked.
  • At the end of the line, you will see an icon of a cross inside a circle.
  • When you press this button, the difference between "Date" field and the
    current time, writing this in the field "Duration".
  • You can modify the "Date" field for altering the computation of the
    duration.

or via tasks:

  • Go to Project > Search > Tasks.
  • Click on one existing task or create a new one.
  • On the "Timesheets" page, you will be able to handle records the same way
    as you do in the above explanation (except the task selection part, which
    in this case doesn't appear as it's the current one).

cc @Tecnativa

@luismontalba
Copy link
Member Author

This PR depends on #265

@pedrobaeza
Copy link
Member

Please rebase now that I have merged the dependency

@luismontalba luismontalba force-pushed the 10.0-mig-project_timesheet_time_control branch 4 times, most recently from 847a5c6 to 75c725c Compare May 5, 2017 22:30
Copy link
Member

@pedrobaeza pedrobaeza left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When I don't have any analytic account selected, I only see tasks that don't have a project assigned. The idea is to see all the tasks in this case. Please look for the domain returned on the account_id onchange

@@ -1,18 +1,22 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>

<record id="account_analytic_line_tree" model="ir.ui.view">
<record id="hr_timesheet_line_tree_inherited" model="ir.ui.view">
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't rename the view. Put the same name as the original one.

@luismontalba luismontalba force-pushed the 10.0-mig-project_timesheet_time_control branch 2 times, most recently from 48f8dcf to 3e2ef40 Compare May 8, 2017 23:17
@pedrobaeza pedrobaeza mentioned this pull request May 9, 2017
27 tasks
@pedrobaeza pedrobaeza force-pushed the 10.0-mig-project_timesheet_time_control branch from 3e2ef40 to cf4b193 Compare May 9, 2017 07:30
sergio-teruel and others added 5 commits May 9, 2017 09:31
* Decorate methods correctly + README imp
* Add tests
* Add button on tasks
* Better README
* open/close behaviour
All the lines are initialized with default value, so we need to remove
the condition for this to work. For allowing the possibility to rerun
the hook, a new condition has been added.
@pedrobaeza pedrobaeza force-pushed the 10.0-mig-project_timesheet_time_control branch from cf4b193 to 74e48f0 Compare May 9, 2017 07:32
@pedrobaeza
Copy link
Member

Merging for continuing with the last dependent module. @luismontalba you can go on with project_issue_timesheet_time_control

@pedrobaeza pedrobaeza merged commit f8874ca into OCA:10.0 May 9, 2017
@pedrobaeza pedrobaeza deleted the 10.0-mig-project_timesheet_time_control branch May 9, 2017 07:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants