Commit Graph
538 Commits
Author SHA1 Message Date
rap-odoo a5e7a4c8ae [IMP] Account,...: Change 'string' attribute on some fields to avoid repeated names
In odoo at many places the filter items are having repeated strings eventhough the
fiter works differently , so find all the places where this happens and give
proper string to each filter..
2016-06-08 14:02:23 +02:00
Christophe Simonis d35d8c3fca [MERGE] forward port of branch saas-9 up to e5c2e6e 2016-05-24 16:40:53 +02:00
Christophe Simonis e5c2e6e001 [MERGE] forward port of branch 9.0 up to e69d9b8 2016-05-24 16:39:41 +02:00
Christophe Simonis fac4cc7006 [MERGE] forward port of branch saas-9 up to f8e6bb7 2016-05-24 13:19:19 +02:00
Goffin Simon fea0fef7a2 [FIX] project_issue: number of issues for a customer
When counting the number of issues for a customer, all the the contacts
of this customer must be taken into account.

opw:676985
2016-05-24 12:51:10 +02:00
Martin Trigaux 06c49d19c3 [MERGE] Forwardport of 9.0 up to 3b234a23c 2016-05-20 09:04:38 +02:00
Goffin Simon c286e2d5b2 [FIX] project_issue: number of issues
When no stage has been defined for a project, the new issues are
set in an undefined stage(stage_id = False). Then these issues must
be counted.

opw:676985
2016-05-19 09:30:31 +02:00
Christophe Simonis 6e95659a08 [MERGE] forward port of branch saas-9 up to f4d1adc 2016-04-01 18:51:55 +02:00
Christophe Simonis f4d1adc116 [MERGE] forward port of branch saas-7 up to 1e404b7 2016-04-01 18:49:06 +02:00
Christophe Simonis 94af66fe8b [MERGE] forward port of branch saas-6 up to df45a31 2016-04-01 18:31:04 +02:00
Christophe Simonis df45a3128d [MERGE] forward port of branch 8.0 up to 1d0b9da 2016-04-01 18:25:48 +02:00
qdp-odoo 2b039c7643 [MERGE] forward port of branch 'saas-7' into saas-9 up to revision 7853c9c7bb 2016-04-01 14:50:57 +02:00
Nicolas Martinelli 5de3900258 [FIX] project_issue: count issues
If an issue is created without default stage, it is not counted in the
total of issues. However, a task without default stage is counted (see
commit 432c01c0).

Fixes #11398
opw-672380
2016-04-01 11:55:18 +02:00
Denis Ledoux 17f4d22594 [MERGE] forward port of branch saas-7 up to 2d2028a 2016-04-01 11:26:27 +02:00
Nicolas Martinelli 1d0b9da3f0 [FIX] project_issue: partner email
When a new issue is created, the partner email is not pre-filled.

Fixes #11395
opw-672380
2016-04-01 11:12:39 +02:00
Thibault Delavallée 554f70f218 [FIX] crm, hr_recruitment, project_issue: responsible
When using the mailgateway, the responsible of the newly created lead / applicant /
issue is explicitely set to False since the original mailgateway commit in 2010.

However this conflicts with some custom behavior that tries to set the responsible
on the same objects. Notably in recruitment the responsible is set to be the
recruitment responsible set on the job, if any.

In this commit we replace the explicit set of user_id=False to using a
default_user_id=False in the context. This way the admin or mailgateway user
will not be responsible of every new records. And this enables custom behavior
to find a responsible.
2016-03-25 12:40:34 +01:00
Christophe Simonis ddb0fb2739 [MERGE] forward port of branch saas-9 up to 59d3f63 2016-03-24 16:53:45 +01:00
qdp-odoo 7a3d63b377 [MERGE] forward port of branch saas-7 up to revision 71d16a369e 2016-03-16 10:27:19 +01:00
Yannick Tivisse 271840a282 [FIX] project_issue: Allow portal customer to see their own issues
Some computed fields have been added in v9 and are calling the method
_compute_day. This method accesses the project related to the issue
So a user portal is able to see his own issue, but cannot open the
form view as the prefetching is loading the fields. Hiding them in
the group base.group_user doesn't have any effect as the compute method
is called on the read. These information may have their importance to
the customer too.

We decided to compute these fields on superuser access rights.

Also the field project_id is displayed on the project_issue form view.
As this information is internal, we're hiding this also under the employee
group.
2016-03-07 14:24:18 +01:00
Yannick Tivisse f7c4b5b65e [IMP] project_issue: email notification button for all users
The access/follow/actions buttons on the notification email template
are sent only to employee. For this particular business model when
want all the users to receive them, as the portal users.
2016-03-07 14:24:18 +01:00
Thibault Delavallée 0cf2ceca90 [IMP] project, issue: template on stages
Added a mail_template_field on project stage model (project.task.type). This
fields is used to automatically send an email when a task or issue comes in
this stage.

Recruitment code has been updated to use the mixin method.
2016-02-01 12:15:56 +01:00
Thibault Delavallée 684acf646c [CLEAN] project: dead / unnecessary code
Removed unnecessary imports
Removed duplicated _order
Cleaned kanban state update in write to avoid useless loops. Indeed when
updating the stage the kanban state is reset, if the new stage is different
from the old stage. Now in every case the kanban state is reset. This is
already the case in issue and does not seem to frustrate users.
2016-01-14 15:04:19 +01:00
Martin Trigaux e4bf03aeaf [MERGE] Forward port of branch saas-7 up to c298cf3 2015-12-21 11:37:53 +01:00
Nicolas Lempereur 426172bb95 [FIX] project_issue: don't reset partner on project change
If an issue project is changed, depending if the destination project has
a set partner ("Customer") or not:

- if set, the project issue partner will be set accordingly
- otherway the potentially set partner will be conserved

Since 3fe06da if the project had not partner, the partner was unset
which is undesired.
2015-12-11 16:37:38 +01:00
Thibault Delavallée 9ebbceeb65 [FIX] project, issue: stop spamming partners
Commit bb1200adc7 introduced the automatic
addition of cc as followers of tasks and issues. However it seems to
automatically create partners if the address it not recognized. This
does not seem a good idea.
2015-12-11 15:02:14 +01:00
Christophe Simonis 82a495eed5 [MERGE] forward port of branch saas-7 up to 4022493 2015-12-10 13:05:58 +01:00
Denis Ledoux 0b5935092e [ADD] project: tasks & issues need-actions
Shortcuts to display tasks & issues with notifications
from the projects dashboards
2015-12-07 17:04:50 +01:00
Jamin Shah 3560cf04ee [IMP] mail: headers to notification emails
>
> This merge adds some basic data to notification emails headers. It contains the related
> record of the notification. This allows users to classify / perform action based on
> headers.
>
> Headers :
> - X-Odoo-Objects: list of records
> - X-Odoo-db-uuid: database uid

In task and issue, we had the parent project and the tags in the headers.
2015-11-26 11:26:46 +01:00
Christophe Simonis 56a442e205 [MERGE] forward port of branch saas-6 up to dade7e3 2015-11-25 13:26:02 +01:00
Denis Ledoux 13e1f7afac [MERGE] forward port of branch 8.0 up to 3e03cfe 2015-11-24 16:51:45 +01:00
Thibault Delavallée 8fa7318178 [FIX] project, issue: change user_id + date_start
project.task: use an onchange to update date_start when changing user_id.
Indeed date_start is automatically updated in the create / write. Without
the onchange, this may lead to errors related to date_start being greater
then date_end.

project.issue: code in create and write now takes into account date_open
values given to the method and avoid erasing them.
In issue however the onchange is not added. Indeed the date_open and
date_closed fields are not visible in the view. They are automatically
computed and used to compute statistics.
2015-11-23 17:36:40 +01:00
Christophe Simonis 2450e57775 [MERGE] forward port of branch 8.0 up to f57e580 2015-11-19 11:56:03 +01:00
Thibault Delavallée f57e580f2d [FIX] project_issue: correctly update alias
When choosing use tasks / use issues, correctly update the project alias. Indeed
only the use issues checkbox had an onchange. This revision adds the onchange
on use tasks so that the method correctly computes the new alias destination model.

Also updated the _get_alias_models method to be more modular instead of hardcoding
values. Call super.
2015-11-18 14:41:56 +01:00
Yannick Tivisse 0d1240684a [FIX] web: kanbanSelection widget : labels are not mandatory
Coming from hr_recruitment, where kanban_state is displayed, but without the customization
Also, remove lingering options in view, and missing fields for project_issue
2015-09-22 17:08:55 +02:00
Thibault Delavallée 396c5db41a [FIX] mail, various: buttons in notifications
Various fixes :
- new button (task / issue / note) param name + correct action
- method button fix
2015-09-22 10:28:01 +02:00
Raphael Collet ec181361f0 [IMP] project, project_issue: discard project templates 2015-09-02 14:29:42 +02:00
Gaurav Panchal bb1200adc7 [IMP] project, project_issue : email cc set follower
Partner is created on the fly if it didn't exist yet.
2015-09-01 08:13:53 +02:00
Thibault Delavallée 59c5ff08be [IMP] various: action buttons in notifications
Main addons updated :

 - crm: Conversion and Won / Lost actions
 - hr_holidays: Approve / Refuse for hr users / officers
 - project: Assign / New (task and issues)
 - forum, website_project_issue, website_portal_sale: go to the
   website view
2015-08-28 17:36:16 +02:00
Damien Bouvy 8db80880a6 [FIX] project_issue: missing api.returns decorator on project_issue.message_post() 2015-08-14 13:19:03 +02:00
Thibault Delavallée 8c1d1f5ce1 [IMP] project: stages are not shared anymore, removing the
concept of default / common stages.

However as the link between stages and projects is still a many2many
it is still possible to have shared columns. It is however not the
standard way of using stages.
2015-07-30 16:59:09 +02:00
Parth Mehta f38ebb36b4 [REM] crm_helpdesk: removed module.
Indeed this module is some kind of underweight project issue. Instead we
will add some data to help users using the project issue module instead.
2015-07-17 14:45:13 +02:00
Yannick Tivisse cf7ed33ea0 [IMP] Project : remove issue escalation feature
Conflicts:
	addons/project_issue/project_issue_view.xml
2015-07-08 15:39:02 +02:00
Olivier Dony 0bd4545348 [LEGAL] Use global LICENSE/COPYRIGHT files, remove boilerplate text
- Preserved explicit 3rd-party copyright notices
- Explicit boilerplate should not be necessary - copyright law applies
  automatically in all countries thanks to Berne Convention + WTO rules,
  and a reference to the applicable license is clear enough.
2015-06-02 03:16:04 +02:00
Christophe Simonis fe2b5f35a4 [MERGE] forward port of branch saas-6 up to bf1e999 2015-05-28 14:27:38 +02:00
Pariket Trivedi 2b61f6f6b3 [IMP] project,project_issue,portal_project: code cleaning
- remove unnecessary copy() method from project/res_partner.py
- remove old methods on project.project
- progress is not used anymore on project.project
- use clickable statusbar for project states
- remove _resolve_project_id_from_context
- rename project.category becomes project.tag to be more explicit
- remove old methods on tasks
- issues: remove option fetchmail_issue
2015-05-12 16:31:43 +02:00
Nicolas Lempereur f2b8144bcc [IMP] crm: set user partner team as default team
This fix sets the first sales team of the current user as the default sales
team if no other one is given.

For models: crm.lead, crm.phonecall, crm.claim, crm.helpdesk,
project.issue, sale.order, account.invoice

Existing methods are removed and new methods in sales team model
(crm.team) have to be called when needed.

closes #6438
opw-633562
2015-05-08 12:59:30 +02:00
Gaurav Panchal 3fe06da634 [IMP] project,project_issue,sale: display the current contract state on some various objects like issues or tasks.
Implements a dynamic widget for selection fields to display this state with color codes.
2015-05-08 11:20:54 +02:00
Thibault Delavallée e929428b10 [FIX] event, hr_recruitment, res_partner, project, project_issue: fixed calls
to message_add_suggested_recipient; signature has been updated when migrating to the
new API, removing an argument that is now contained in self. However all addons were
not updated accordingly.
2015-05-07 11:03:37 +02:00
odoo-tac 14183ba2be [REF] Refactored hr_timesheet: Refactored the "timesheet" model in several modules. hr.analytic.timesheet is removed, and account.analytic.line is used directly to represent timesheets.
Also removed worklogs on tasks and replaced them by generic timesheets, i.e. account.analytic.line(s)
2015-04-28 10:31:18 +02:00
Thibault Delavallée 4b122ad41d [MIGR] mail: migration to the new API 2015-04-27 10:36:15 +02:00