Commit Graph
490 Commits
Author SHA1 Message Date
Christophe Simonis df45a3128d [MERGE] forward port of branch 8.0 up to 1d0b9da 2016-04-01 18:25:48 +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
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
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
Thibault Delavallée 20eb86a5dd [FIX] crm, project, project_issue, hr_recruitment: fixed override of method not taking the
same parameters as the base method. An argument was missing.
2015-04-01 10:11:30 +02:00
Jérome Maes e11ed3f01c [FIX] project : issue_ids field should contains only the open issues. Closed issues are interesting for reporting, not for today job. A issue is closed when its stage is fold. this implies changes in rating : a search is required to find issue of the current project. This may introduce performance issue in a case of big data. Create a custom request is a too important change in a stable version. 2015-03-02 16:17:51 +01:00
Fabien Pinckaers 29ace2949e [IMP] removing project sparkline 2015-02-15 19:59:54 +01:00
Bhumi Patel e8eced9f36 [IMP] project: project form view cleaning, project stage form view
overhaul: usability improvements, better user experience.

By the way: fixed the column tooltips display in kanban view.
2015-01-19 16:39:31 +01:00
Goffin Simon 0fd773a486 [IMP] Cleanup and refactoring of exception handling
Unify and refactor exception handling in framework and addons.

The generic `except_osv` is now deprecated, and replaced by more specialized exception subtypes:
 - `UserError` (renamed from Warning, as it conflicts with the built-in `Warning`) raised when a non-technical error occurs during a business operation. It could be a missing information in the data provided by the user, or a misconfiguration.
 - `AccessError`: raised when any operation is denied because the user conducting it does not have the required access rights.
 - `AccessDenied`: raised when an operation that requires authenticated access is attempted via an unauthenticated request.
 - `MissingError`: raised when an operation is attempted on a record that does not exist.
 - `ValidationError`: raised when an operation violates a SQL or Python constraint.
 - All other exceptions are internal errors due to a system problem or bug, and raised untouched to the client-side, which should display a traceback.

All exceptions take a single message argument.

The `test_exceptions` module has been updated to showcase both new and old (deprecated) exceptions.

A great many old `except_osv` had a useless title with "Error!" or "Warning", those have been removed, as this is handled by the client-side widget that displays the messages.

This commit introduces a more consistent policy for logging errors and warnings:
 - All messages that do not require administrator attention should be logged at INFO level or lower. This includes all errors that are notified to the user in a friendly manner, even for access right problems or validation errors during business operations.
 - All messages that indicate a likely misconfiguration or malicious use by the users should be logged at WARNING level, as they typically require administrator attention.
 - All other unhandled internal errors cannot typically be handled by the user and should be logged at ERROR or higher level, as they require immediate administrator attention.
2015-01-16 17:15:18 +01:00
ppa-odoo 660b13bb78 [IMP] project, project_issue : fix the escalation, usability improvements on views, tooltips and error messages (onboarding). 2015-01-02 17:14:47 +01:00
Leonardo Donelli 4a0b13ed92 [REF] remove vim modelines and resulting trailing blank lines
Let 2015 be a year without modelines!
cf #4174
2014-12-31 15:52:13 +01:00
Thibault Delavallée a3bcdfd6f8 [FIX] project, project_issue: when no project in context, display default
columns in kanban view. Also fixed some issues in the issue kanban view.
2014-11-21 10:27:44 +01:00
Thibault Delavallée dd343c8633 [IMP] project: kanban customization
- stage model (project.task.type): add fields holding the eventual specific
legends for kanban states and star (priority) management
- project: task now have labels; you may use project to hold trainings
instead of tasks.
- project form: use label field on tasks statinfo to use the label
- project.task form: use kanban state customization using states_legend option;
- project.task kanban: use kanban column and kanban state cuztomization
using group_by_tooltip and states_legend options
- project_issue: issues now have labels, like tasks.
- issue: same kanban custo as for tasks
- update data and demo data

[IMP] web: statinfo widget now take an optional label_field option allowing
to have strings coming from another field present in the form view
2014-11-13 11:31:39 +01:00
Christophe Simonis 5068cffbb0 [MERGE] forward port of branch 8.0 up to 491372e 2014-11-05 20:30:40 +01:00
Denis Ledoux f7723037d6 [MERGE] forward port of branch saas-3 up to 8c4a7cb 2014-11-04 12:30:01 +01:00
Turkesh Patel fd659e908b [IMP] crm: business model cleaning
Models renamings:
- crm.case.stage becomes crm.stage
- crm.case.section becomes crm.team

Model split:
crm.case.categ has been splitted into:
- crm.phonecall.tag
- crm.lead tag
- crm.claim.tag
- crm.helpdesk.tag

Models removal:
- crm.payment.mode
- crm.segmentation
- report.crm.case

Removal of the crm_profiling module

(all these refactorings have been done in order to ease new API
migrations)
2014-11-04 16:58:41 +05:30
Denis Ledoux 8c4a7cb371 [MERGE] forward port of branch 7.0 up to 5035c76 2014-11-04 12:19:58 +01:00
Sheth Sunny 576218b003 [IMP] project_issue : correct model name in onchange method
There is no model project.issueS, making the onchange select an inexistant model.
Fixes #3418
2014-11-03 20:16:56 +01:00
Géry Debongnie 1f5a323f2f [FIX] add missing descriptions to many fields 2014-10-31 13:57:16 +01:00
Julien Legros 6a95c9cf3e [FIX] project_issue: explicit store attribute for the progress function field
This is a workaround for an ORM limitation. A stored function field is
not updated when it should if the "source" field is also a stored function
field
2014-10-30 18:07:07 +01:00
Christophe Simonis 709c9868de [MERGE] forward port of branch 8.0 up to e883193 2014-10-01 19:18:14 +02:00
sus 56dfb4eeb9 [IMP] project: onboardin / usability improvements
- project kanban view: dashboard-like view, add sparklines for open tasks
and closed issues
- project: cleaned demo data, less stages
- project: description is now an html field
2014-09-18 11:38:10 +02:00
Thibault Delavallée 7cad4baa84 [FIX] [CLEAN] Various: fixed / cleaned use of dict.fromkeys.
Indeed using fromkeys with a list / dict as argument leads to the creation
of shared list / dict. This could create some ugly side effects when
used in loops. This commit fixes or cleans this kind of statement to avoid
unwanted side effects.
2014-09-18 11:18:30 +02:00
cod-odoo b42fcb7575 [IMP] hr_timesheet, project: various usability-related improvements
hr_timesheet: merged use_timesheets and invoice_on_timesheets fields on account.analytic.account
that basically tells the same thing (project using timesheets). Propagated this change in
the various views using it.
project: various improvements in views to ease the user experience.
2014-09-10 13:23:08 +02:00
Christophe Simonis 31bf30d2d0 [MERGE] forward port of branch 8.0 up to ed1c173 2014-09-05 15:28:22 +02:00
Thibault Delavallée 78a9a6fcaa [FIX] crm, hr_recruitment, task, issue: fixed default priorities + order based on priority (desc for everyone now) 2014-08-22 14:39:36 +02:00
Richard Mathot 968813cc57 [FIX] project,project_issue: display order
Task/issues shuld be sorted on descending priority
2014-08-20 11:12:33 +02:00
Thibault Delavallée 622b52d262 [FIX] project_issue, resource: fixed computation of hours / days to open (assign) or close an issue. Those fields now have a conditional store, because they were not recomputed even when changing date_open and date_closed. Changing the stage now correctly changes the date_closed. Also added some fixes in resource module, the date was not correctly taken into account when computing the number of working hours between two dates. 2014-08-07 08:54:09 +02:00
cod-odoo a301b4c7fc [MOVE] account: moved account/project files to analytic or account, depending on which module the moved code belongs to. This allows to remove references to project in account module. Also added some improvements in project when deleting a project (delete account if void) or when deleting an account (delete project if void). 2014-08-04 13:23:46 +02:00
Christophe Simonis 120a2c1ec1 [FIX] {base_action_rule,calendar,hr,mail,project_issue}: decorate the method message_post to specify signature 2014-07-28 18:07:17 +02:00
Raphael Collet cbe2dbb672 [MERGE] new v8 api by rco
A squashed merge is required as the conversion of the apiculture branch from
bzr to git was not correctly done. The git history contains irrelevant blobs
and commits. This branch brings a lot of changes and fixes, too many to list
exhaustively.

- New orm api, objects are now used instead of ids
- Environements to encapsulates cr uid context while maintaining backward compatibility
- Field compute attribute is a new object oriented way to define function fields
- Shared browse record cache
- New onchange protocol
- Optional copy flag on fields
- Documentation update
- Dead code cleanup
- Lots of fixes
2014-07-06 17:05:41 +02:00
Jaydeep Barot 026e38b48f [REM] Unnecessary size parameters on char fields 2014-06-25 17:13:43 +02:00
Randhir Mayatra 053a2b2e42 [IMP] remove dependancy of crm on project_issue 2014-06-23 12:33:08 +02:00
Thibault Delavallée 719a4f02c9 [REF] mail, crm, hr_recruitment, project, project_issue: simplified reply-to of notification emails (now displaying 'YourCompany -docname- <email>' instead of 'Followers of ...'; added same_thread directly on the mail.message model to ease the reply_to and message-id computation; factorized a bit the reply-to generation for a batch of records; udpated tests accordingly. 2014-06-23 10:47:47 +02:00
Thibault Delavallée ea1e0e3275 [CLEAN] crm, hr_recruitmnet, project: cleaned priority / kanban state in kanban views
bzr revid: tde@openerp.com-20140508152536-s3my5onl33z3kxxx
2014-05-08 17:25:36 +02:00
Thibault Delavallée 400b194d60 [MERGE] Sync with trunk
bzr revid: tde@openerp.com-20140508123529-w91cb0e6ugzutqd1
2014-05-08 14:35:29 +02:00
Gery Debongnie e83709bdcc [FIX] code cleanup (addon project_issue)
improves the code of _issue_count (both in partner and in project).  This makes the issue_ids field in res_partner useless,
so issue_ids is also removed.

bzr revid: ged@openerp.com-20140507132949-tbtd4pl33zwhzgwd
2014-05-07 15:29:49 +02:00
Barad Mahendra 07ccf397a3 [Merge]with trunk
bzr revid: mba@tinyerp.com-20140507104533-jeorqz7rtx8m8i1c
2014-05-07 16:15:33 +05:30
Gery Debongnie 2e9ee9c76e [MERGE] merge from rma branch
bzr revid: ged@openerp.com-20140410145131-fj17mdpi13wa5a9m
2014-04-10 16:51:31 +02:00
Barad Mahendra 0522e80ea5 [Merge]with trunk
bzr revid: mba@tinyerp.com-20140408123641-0qyrg1fmgguezmro
2014-04-08 18:06:41 +05:30
Christophe Simonis 0fad8159f3 [MERGE] forward port of branch saas-3 up to revid 9380 chs@openerp.com-20140407144439-10n8fs6zovodwwtx
bzr revid: chs@openerp.com-20140407163318-hh3jwfkj3o2c83lk
2014-04-07 18:33:18 +02:00
Christophe Simonis db6fb31870 [MERGE] forward port of branch 7.0 up to revid 9954 chs@openerp.com-20140403153129-jq9zc7ityoy25c73
bzr revid: chs@openerp.com-20140403155904-ya5mas5s3g7ivihb
2014-04-03 17:59:04 +02:00
Barad Mahendra c395f97d13 [Merge]with trunk
bzr revid: mba@tinyerp.com-20140403123831-nb68n6863f9cnfc1
2014-04-03 18:08:31 +05:30
Olivier Dony 4fe43d9ac6 [FIX] project,project_issue: missing indexes on stage/state/project_id/user_id
bzr revid: odo@openerp.com-20140402110700-h3ryoroibj1m92ig
2014-04-02 13:07:00 +02:00
Denis Ledoux 07ae370d90 [FIX] project, project_issue: overwritten method on_change template, wrong signature, following commit 9277 revid:dle@openerp.com-20140401123657-ozh4ycx36jojpg51
bzr revid: dle@openerp.com-20140401144205-cmm5vfzlpsro0f7j
2014-04-01 16:42:05 +02:00
Randhir Mayatra rma-openerp 0f40b3bc8f [IMP] convert button into stat button for project_issue and stock_claim
bzr revid: rma@tinyerp.com-20140324050921-qxn3n4getus3il6c
2014-03-24 10:39:21 +05:30
Randhir Mayatra rma-openerp b51066b500 [IMP] convert button into stat button for customer
bzr revid: rma@tinyerp.com-20140320134414-mk1ie8okynrtudsq
2014-03-20 19:14:14 +05:30