Skip to content

Conversation

@ljimenezsidoo
Copy link

Project Task Analytic Tag

This module extends the functionality of project to support to
add Tags in the timesheet and allow you to use the tags of the projects in your timesheet

@oca-clabot
Copy link

Hey @acm1pt-colorado, thank you for your Pull Request.

It looks like some users haven't signed our Contributor License Agreement, yet.
You can read and sign our full Contributor License Agreement here: http://odoo-community.org/page/website.cla
Here is a list of the users:

  • Luis Adan JH (no github login found)

Appreciation of efforts,
OCA CLAbot

Project Task Analytic Tag
=========================

This module extends the functionality of project and mrp_repair to support to

Choose a reason for hiding this comment

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

mrp_repair?
It is not in dependency list and anyway would simply need another module if you'd wish to do so.

Choose a reason for hiding this comment

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

Isnot this module overlapping with https://github.com/OCA/project/tree/10.0/project_categ and https://github.com/OCA/project/tree/10.0/project_categ_issue?

I am not so much in favor of adding a new category system without clear value

Copy link
Member

Choose a reason for hiding this comment

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

Hi @elicoidal , you are right about README, it's a mistake about copy & paste from other module.

But this module is not overlapping with project category. The target to add analytic tags to project task is to create analytic lines (timesheet lines) with right tag.

This way you can set tags like "Design", "Develop", "Testing"... on your timesheet lines, and you will be able to get analytic about type of work you was doing. Also interesting in combination with analytic dimensions.

Choose a reason for hiding this comment

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

Add a note in the README

@angelmoya
Copy link
Member

I copy this comment because it's hidden by outdated change, but I think is usefull to see for other reviewers

This module is not overlapping with project category. The target to add analytic tags to project task is to create analytic lines (timesheet lines) with right tag.
This way you can set tags like "Design", "Develop", "Testing"... on your timesheet lines, and you will be able to get analytic about type of work you was doing. Also interesting in combination with analytic dimensions.

@elicoidal
Copy link

@angelmoya then I would suggest to make it permanent in the README ;)

:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-3

Project Task Analytic Tag

Choose a reason for hiding this comment

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

Line before for the document title

Project Task Analytic Tag
=========================

This module extends the functionality of project to support to

Choose a reason for hiding this comment

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

"This module extends the functionality of project to support Tags in timesheet and the possibility to add them from the projects."


To install this module, you need to:

- First Add in the addons path the module and install in your odoo.

Choose a reason for hiding this comment

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

Odoo


To use this module, you need to:

- Go to project and enter in a task section, here you only need to go to the

Choose a reason for hiding this comment

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

make better use of enumerated list "#. " for procedures. For example:

#. Go to project and enter in a task section, 
#. Go to the page timesheet
#. You can add a new element. 
#. When you add the tag in the extra Information, the tag is automatically set for newly added element.

Choose a reason for hiding this comment

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

When i read the code, I dont get all above mentioned feature though.
Anything I missed?

Copy link
Member

Choose a reason for hiding this comment

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

Really no more code is needed, now on tasks, timesheets page are analytic entries (previously are timesheet_sheet_lines that are related).
Then this module just show tag_ids from analytic_account_line on project_task. And set analytic_tag_ids on project task to define default analytic_tag_ids for all timesheets (account_analytic_line) for this task.

extra-Information, when you add a new element the tag is set auto.


Known issues / Roadmap

Choose a reason for hiding this comment

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

remove the section

@ljimenezsidoo
Copy link
Author

@elicoidal thanks for the comments all the changes updated

@dreispt
Copy link
Member

dreispt commented Apr 27, 2017

I wonder if OCA/project is not better suited for this.

From the functional PoV, it's not clear to me the use case for this.
Why do we want several analytic accounts on the same task? How do you analyse Tasks then?

@angelmoya
Copy link
Member

Hi @dreispt , we also were thinking about puting it on OCA/project , but finally we thought that final scope is to get correct analytic accounting.

You are wrong about this "several analytic accounts on the same task", it's not for analytic accounts, is for analytic tags. This way you can set type of work you are doing in one task.

Without this module you can not set analytic tags for this account.analytic.lines

@dreispt
Copy link
Member

dreispt commented Apr 28, 2017

@angelmoya I see, but what is the point. Can you give a real life example of haw this is used?
Don't take me wrong, I just want to better understand the use case.

@angelmoya
Copy link
Member

Sorry @dreispt , I said you are wrong because you said account instead tag, and I thought that you can undertand the scope using analytic tags.

Ok, for example.

  • you have a project, that is an analytic account, remember that you lose hierarchical structure on analytic account.
  • then you create a task on this project, your task could be "Design 3D for new component" and you can set analytic tag on task "Design 3D". Other task could be "Manufacture prototype" with other analytic tag, on same project.
  • as you set analytic tag on project task (then in timesheet lines), then your analytic account line has correct analytic tag.
  • Then you can get from analytic account things like "Total amounts by Design 3D by project" or "Total by project by analytic tag (Design 3D, Prototype)"

My real use case is more easy, I improve the use of mrp_repair, to be able to create projects and task. Then all task created from RMA has analytic tag "RMA" and then you can get analytic account for RMA.

All this could be better if you install also #87 this way you can group analytic tags on dimensions like:

  • type of project (Productive, RMA, ...)
  • type of task (Design, Manufacture, Manage, ...)
  • departments ....

@dreispt
Copy link
Member

dreispt commented Apr 28, 2017

For the example, IMO it would be better to have an Analytic Account on Tasks. This has been done on OCA/project (although looking the module name - service_desk - is unfortunate).
My use case is a "Corrective Maintenance" project, where I open tasks, and then on each Task I select the Contract (Analytic Account) it corresponds to.

@pedrobaeza
Copy link
Member

Since v9, there's a field analytic_account_id in tasks and issues...

@dreispt
Copy link
Member

dreispt commented Apr 28, 2017

@pedrobaeza Thanks! I guess it shows I'm still on v8 😛
So we already know the task Analytic Tags - just follow the Task analytic_account_id, right?

@pedrobaeza
Copy link
Member

Yeah, at task or issue level you can predefine an analytic account to be filled for timesheet entries, so theoretically you can switch this analytic account for changing where to put the entry. We have been working on restoring analytic hierarchy. Have you seen it?

@dreispt
Copy link
Member

dreispt commented Apr 28, 2017

I haven't read the RFC yet, but I'm aware it is being discussed.
Tags don't replace Parents: they don't support things like WBS, relevant for non trivial Projects.

@pedrobaeza
Copy link
Member

It's no more an RFC, but an implementation: https://github.com/OCA/account-analytic/tree/9.0/account_analytic_parent and an improvement here: #91

@angelmoya
Copy link
Member

@dreispt with analytic dimension you can support things like WBS, and I think that it could be better than use analytic parent.

You can think on this structure with analytic parent:

  • Customer 1
    • Project 1
      • Materials 1
      • Hours 1

With previous structure, if you use parent account you need to create one account for each Materials of each Project. And you need to set task on Materials or on Hours.

Also on BI you can not view amounts group rightly.

If you use dimensions you can do things like:

  • Customer (directly customer because res.partner is on analytic.line)
    • Project (analytic account without parent)
    • Materials (dimension concept = materials, created dimanicaly on analytic.line)
    • Hours (dimension concept = hours, created dimanicaly on analytic.line)

And you can use on BI, and group on diferents dimensions on diferent order.

Is hard to me to explain in english, but I really think that tags with dimensions are better way to do analytic. And for BI is better than use parent account.

On v8 I did things like add parent_id on BI, and parent_parent_id, and product_category, to get similar functionality, and know this could be done automatically.

@dreispt
Copy link
Member

dreispt commented Apr 28, 2017

That was a great explanation, and I think I understand your point.
From my PoV the scenario you describe is implemented with two Dimensions: Dim1="Project" and Dim2="Resource"".
Both of them are a hierarchy of analytic accounts:

  • Project Dimension
    • Customer 1
      • Project 1
  • Resource Dimension
    • Materials
    • Time

Now each analytic line should have be assigned to a "analytic combination", with values for each of the Dimensions. have a look at this.

Maybe what I describe if far from being possible in practice and your approach is a good short term solution. We're just discussing here.

@angelmoya
Copy link
Member

@dreispt @pedrobaeza one more review to aprove?


analytic_tag_ids = fields.Many2many(
comodel_name='account.analytic.tag',
relation='default_tag_account_tag',
Copy link
Member

Choose a reason for hiding this comment

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

Convention is for this table to end with _rel

"license": "AGPL-3",
"depends": [
'project',
"hr_timesheet"
Copy link
Member

Choose a reason for hiding this comment

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

This is related to analytic_tag_dimension right?
Does it make sense to add it as a dependency?
If not, at least that module should be mentioned in the README, as a way to use the information added here.

Copy link
Member

Choose a reason for hiding this comment

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

Hi @dreispt , it's not related, and is not a dependency.

You can use it alone, to set analytic tag on analytic lines created on timesheet.

We only talk about the other module to explain why we decided to improve analytic tags instead of migrate analytic account parent.

Copy link
Author

Choose a reason for hiding this comment

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

@dreispt The dependency is not necessary. As @angelmoya said you can use it alone.

Copy link
Author

Choose a reason for hiding this comment

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

@dreispt Do you agree that there is no need for dependency? I'm going to add in the readme file for more info as you said.

Copy link
Member

Choose a reason for hiding this comment

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

ok

@rafaelbn rafaelbn added this to the 10.0 milestone Sep 14, 2018
@rafaelbn rafaelbn closed this Sep 14, 2018
@rafaelbn rafaelbn reopened this Sep 14, 2018
@rafaelbn
Copy link
Member

Rebuilding for testing @angelmoya

@rafaelbn
Copy link
Member

@angelmoya @acm1pt-colorado could you please rebase? I cannot test it. Travis fails and runbot doesn't build 😢

@angelmoya
Copy link
Member

angelmoya commented Sep 14, 2018 via email

@rafaelbn
Copy link
Member

Hi @angelmoya , I've tested functionally and it's 👍

But I don¡t understand why in this PR are you changing files of other modules: https://github.com/OCA/account-analytic/pull/88/files#diff-de1af174f37e99cfcd5af533f2eeb68f

❓ 😄

Copy link
Member

@rafaelbn rafaelbn left a comment

Choose a reason for hiding this comment

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

Functionally 👍

But in this PR "Files changed 934" 😲

@angelmoya angelmoya force-pushed the ADD-10.0-project_task_analytic_tag branch from 8c5d3c8 to 85a5ae5 Compare September 18, 2018 08:34
@angelmoya
Copy link
Member

OK @rafaelbn , maybe was a problem with rebase, I did it again and do force push to do in one commit and only update my module files.

@angelmoya angelmoya force-pushed the ADD-10.0-project_task_analytic_tag branch from 85a5ae5 to 6e4d8c7 Compare September 18, 2018 09:50
@ljimenezsidoo ljimenezsidoo force-pushed the ADD-10.0-project_task_analytic_tag branch from 6e4d8c7 to 42ac8cc Compare October 7, 2020 16:08
@github-actions
Copy link

There hasn't been any activity on this pull request in the past 4 months, so it has been marked as stale and it will be closed automatically if no further activity occurs in the next 30 days.
If you want this PR to never become stale, please ask a PSC member to apply the "no stale" label.

@github-actions github-actions bot added the stale PR/Issue without recent activity, it'll be soon closed automatically. label Oct 24, 2021
@github-actions github-actions bot closed this Nov 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs review stale PR/Issue without recent activity, it'll be soon closed automatically.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants