项目
模块ID 400
用户手册 本页
开发文档 Module Projects (developer)

简介

项目模块是一个Dolibarr核心模块。它是可选的,可以从模块设置页面激活。

该模块有几个用途:

  • 跟踪销售线索和机会
  • 和|或 管理定义为层次结构任务的项目
  • 和|或 跟踪用户在这些任务上投入的时间。

可用于内部项目,为您的组织或项目链接不同Dolibarr对象(如 报价单、客户订单、客户发票 ...)。

关于定义的重要提醒

术语“任务”经常与“事件”、“操作”、“日记”等术语混淆。

在阅读本文档之前,了解由规范 RFC2445 定义和规范化的每个术语的含义非常重要。

如果您不熟悉这些,请阅读此摘要页面:事件-待办事项-日志。

本模块能做什么

  • 允许定义商机状态和项目是否为商务线索的概率。
  • 将项目作为层次结构的任务进行管理
  • 允许定义内部项目(为您的组织而做)或外部项目(由您的组织为客户而做)
  • 允许在任务上分配内部或外部用户
  • 允许在用户之间共享项目,为每个分配的用户提供任务和项目的正确视图
  • 允许跟踪每个工位和用户在任务上花费的时间。
  • 可以根据花费的时间生成发票。
  • 允许将任何对象(发票,订单,报价单,干预,制造订单...)、文档、URL分配给项目和任务。
  • 提供项目的完整视图,包括计划时间和实际工时,甘特视图和所有文档
  • 支持项目和任务的自定义字段
  • 为项目和任务报表提供文档模型

本模块不能做什么

  • 不支持基于用户空闲时间的自动规划。
  • 不计算任何关键路径。

安装

该模块包含在 Dolibarr 发行版中,因此无需安装。

配置

要使用此模块,必须首先使用管理员帐户通过菜单选项 "主页 - 设置 - 模块"启用它:

选择列出模块的选项卡。然后点击 "激活"。。

模块现在已激活。

如果在该模块的行尾出现一个齿轮图标 ,则单击它以访问特定于模块的设置页面。

以下是可用于配置此模块的选项

配置选项

项目 > 参数

用项目跟进线索/商机
如果选中,您可以将项目关联到合作方并跟踪报价单的状态。这是管理外部项目所必需的。
用项目跟进任务和/或报告时间成本(工时表)
如果选中,您可以输入项目的详细任务并最终跟踪付出的工时(即使选择了该选项,也不是强制性的)。:如果未选,则仅允许跟踪商机(即销售项目状态)。

项目 > 项目编号模式

项目默认使用Simple模式进行自动编号。您也可以使用Universal引擎定义您自己的编号方式。

项目 > 任务编号模式

任务默认使用Simple模式进行自动编号。您也可以使用Universal引擎定义您自己的编号方式。任务编号模式独立于项目编号模式。

项目 > 项目报表文档模板

可以启用timespent模板:项目的工时报表文档模板;

可以启用beluga模板:项目的链接对象概述报表文档模板;

可以启用baleine模板:项目的任务报表文档模板;

可以启用ODT templates模板:从OpenDocuments模板生成文档。

项目 > 任务报表文档模板

可以启用ODT templates模板:从OpenDocuments模板生成文档。

项目 > 其他参数

使用自动完成字段选择项目(而不是使用列表框)
如果您将大量商机作为项目进行跟踪,这将非常有用。
在合作方的文档上,可以选择链接到其他合作方的项目
默认情况下,只有附加到项目的合作方的文档才能链接到项目,但是您可能有一个分包商将提供与项目相关的文档。在这种情况下,您需要激活该选项。

Complementary attributes (project)

Use this tab to define extra fields that will be available in the project card.

Complementary attributes (task)

Use this tab to define extra fields that will be available in the task card.

Dictionaries

The module comes with the the "Opportunity status for project/lead" dictionary.

This dictionary is used when the module is used to follow leads/opportunities. It contains the probability to sign the opportunities.

Go to the Setup menu and select Dictionaries to customize the list of values to qualify your opportunities.

The module also use the "Contact/Address types" dictionary, and populate it by default to associate a contact or a user allocated to a project or a task.

Permissions

  1. Read projects and tasks (shared project and projects i'm contact for). Can also enter time consumed on assigned tasks (timesheet)
  2. Create/modify projects (shared project and projects i'm contact for)
  3. Delete projects (shared project and projects i'm contact for)
  4. Export projects
  5. Read all projects and tasks (also private projects i am not contact for)
  6. Create/modify all projects and tasks (also private projects i am not contact for)
  7. Delete all projects and tasks (also private projects i am not contact for)

Usage

The module is available from the Projects icon available in Dolibarr top menu.

Note that the left menu display two sets of options :

  1. to access your own projects and tasks. These are projects and task you have been assigned to.
  2. to access shared projects and tasks. These are projects and task readable by you (even if you are not assigned to). Depending on your permission, access to this view may be restricted.

Entities and Business rules

Project entity

This is the root object added by the module.

Properties

Property Description Note / Values
Reference Generated automatically by a template. It is unique. See Set-up Options to customize the template.
Label The full name of the project.
Visibility This property define the users permissions.
  • Project Contacts, the project is only available to users associated.
  • Everybody, the project is shared (public).
Status Current status of the project, updated by the project workflow.
  • Draft
  • Open
  • Closed
Start date Starting date for the project Could be any valid date in past or future. Note that no control is made between start and end date.
End date Ending date for the project Could be any valid date in past or future. Note that no control is made between start and end date.
Opportunity status Value selected from the "Opportunity status for project/lead" dictionary. Only displayed when "Use projects to follow leads/opportunities" option is set-up.
Opportunity probability The percentage associated to the Opportunity status, could be updated manually. Only displayed when "Use projects to follow leads/opportunities" option is set-up.
Opportunity amount Amount of the opportunity in default currency. Only displayed when "Use projects to follow leads/opportunities" option is set-up.
Budget Amount of the budget required for the project in default currency (if any).
Description A text to describe your project.
Public Notes A text area (html) to store public notes on the project.
Private Notes A text area (html) to store private notes on the project.

Links

Entity linked Description Notes
Users You could allocate multiple users to a project, specifying a role. Two roles are defined by default, but you could extend it if needed. There is no limitation to number of users linked, even with the same role.
Contacts You could allocate multiple contacts - from different third parties - to a project, specifying a role. Two roles are defined by default, but you could extend it if needed There is no limitation to number of contacts linked, even with the same role. Contact and User roles could be different if needed.
Documents You could upload multiple document files and link them to a project. Document could also be generated using templates, see Set-up Options to activate the templates.
URL You could attach multiple URL links to a project.
Commercial proposal You could attach multiple proposals to a project. You could create the proposal from the project overview tab.
Customer order You could attach multiple customer orders to a project. You could create the order from the project overview tab.
Customer invoice You could attach multiple customer invoices to a project. You could create the invoice from the project overview tab.
Customer template invoice You could attach multiple template customer invoices to a project. You could create the invoice from the project overview tab.
Supplier order You could attach multiple supplier orders to a project. You could create the order from the project overview tab.
Supplier invoice You could attach multiple supplier invoices to a project. You could create the invoice from the project overview tab.
Contract You could attach multiple contracts to a project. You could create the contract from the project overview tab.
Expense report You could attach multiple expense report to a project. You could create the invoice from the project overview tab.
Event You could attach multiple events to a project. You could create the event from the project overview tab. The Agenda module should be activated.
Task You could attach multiple tasks to a project. See below the tasks properties. The option to manage tasks in a project should be properly activated, see Set-up Options

Task entity

This is the child entity of the project entity. It is possible to create a hierarchy of tasks, the project being the root of the tree.

Properties

Property Description Note / Values
Reference Generated automatically by a template. It is unique. See Set-up Options to customize the template.
Label The full name of the task.
Child of project/task By default the current project but could be changed to an other project task to create a tasks hierarchy.
Assigned to The user responsible of the task. By default the task creator.
Start date Starting date for the task Could be any valid date in past or future. Note that no control is made between start and end date neither with project dates.
End date Ending date for the task Could be any valid date in past or future. Note that no control is made between start and end date neither with project dates.
Planned workload Planned workload to complete the task in hours and minutes.
Declared progress A percentage to be updated manually. Could also be updated when capturing time spend on task.
Description A text to describe your task.
Public Notes A text area (html) to store public notes on the task.
Private Notes A text area (html) to store private notes on the task.

Links

Entity linked Description Notes
Users You could allocate multiple users to a task, specifying a role. Two roles are defined by default, but you could extend it if needed. There is no limitation to number of users linked, even with the same role.
Contacts You could allocate multiple contacts - from different third parties - to a task, specifying a role. Two roles are defined by default, but you could extend it if needed There is no limitation to number of contacts linked, even with the same role. Contact and User roles could be different if needed.
Documents You could upload multiple document files and link them to a project. Document could also be generated using ODT templates, see Set-up Options to activate the templates.
URL You could attach multiple URL links to a project.
Time spent You could attach multiple time spent slot to a task. See the entity attributes below for more details.
Task You could attach multiple tasks to a task by using it as a parent task.

Time spent record

These records allows to capture the time spent by a user on a task at a given time.

The time spent could be entered from different points:

  • using the tab dedicated in the task form
  • using the "New time spent" option in the module left menu.

In both cases you could enter time spend by day, but the menu option allows also to enter time spend by week. In this case you could only enter one time slot by day.

Properties

Property Description Note / Values
Start Date and Time Define when the time has been spent. Time is not available when you enter the data by weeks.
Duration Hours and minutes spent on the task. This is mandatory to create a record
Note A small text to comment what was done or how time was spent. Note is not available when you enter the data by weeks.
Done by The user who has spent time on the task. The user should be assigned to the task to enter a time spent record

Links

Entity linked Description Notes
Users One and only one user is linked to a time spent record The user should be linked to the task, to create the record.
Task One and only one task is linked to a time spent record

Project visibility and user actions

This module allow to share projects and task across users. Each user could interact based on :

  • Permissions allowed
  • Project visibility
  • Assignment to project

The following table summarizes actions available based on these factors.

User Project
Visibility on project contact only Visibility for everybody
Status User is not a contact of project User is a contact of project User is not a contact of project User is a contact of project
Permission Read Project hidden read project & tasks

add time spent on owned tasks

Project hidden read project & tasks

add time spent on tasks

Create/Modify modify close project

create modify tasks

modify close project

create modify tasks

Delete delete projects & tasks delete projects & tasks
Read all projects (even if not contact or public) read projects & tasks

add time spent on owned tasks

Create/Modify all projects (even if not contact or public) modify close project

create modify tasks

Delete all projects (even if not contact or public) delete projects and tasks

Project Workflow

Project status follows this workflow sequence : Draft, Open, Closed.

Create a project

Creation of a new project is done from menu "New project" on main menu "Project" Public projects (and all tasks) can be read/edited by anybody with read project permissions. Private project (and all tasks) can be read/edited only by users defined as contact/actors of project + the creator of project (if all contacts are removed, we must keep at least one user authorized on project. This is the creator).

Create a task

Creation of a task is done from button "Create Task" on the tab "Task" of a project or from menu "Projects -> New task".

  • A task can be created if you have permission to create/edit projects and if you are contact of a project (or if projet is a public project).
  • A task is on the root of a project or under another task of the project.

  Page waiting to complete. To complete, create an account, go back and clic on "Modify".
  Page en attente d'être complété. Pour compléter, créez un compte, revenez et cliquez sur "Modifier".
  Página a completar. Para completarla, cree una cuenta, vuelva a la página y haga clic en "editar"
  Seite wartet auf Vervollständigung. Um zu helfen, erstelle ein Konto, gehe zurück und klicke auf "Bearbeiten".
  待完成,欲帮助完成,注册帐号,点击“编辑"
  ページは未完成の状態です。完成させるにはアカウントを作成し、ページに戻って「編集」をクリックして下さい。