Commit Graph
103632 Commits
Author SHA1 Message Date
Fabien Pinckaers fb289e0b5d [SEC] rating: escape feedback, text2html to avoid js injection
[IMP] rating: website rating page: reviewed design, rate on click, update on submit
[IMP] rating_project: rating_status: 'no' instead of False
[IMP] rating_project/issue: smileys insteaf of thumbs for consistency in kanban
[IMP] rating: allow to update an existing rating (feedback + rate)
[IMP] rating: consistency on rating names (statisfied, not satisfied, higly dissatisfed)
[IMP] rating: avoid deadend after rating, button to go to Odoo
[IMP] rating: res_config better sentence
2016-07-02 18:33:55 +02:00
Denis Vermylen (dve) 580129522f [FIX] hr: data remove duplicate root user employee
Replace employee linked to base.user_root (administator) in data
by employee_fp (Pieter Parker) from demo data in order to avoid having 2
employees linked to the root user.
2016-07-01 16:01:42 +02:00
Joren Van Onder 61d830c302 [IMP] website_quote: add option to save payment token
The form_save payment type is used by acquirers (currently only ogone)
to return a reusable payment token on successful payments. These can
then be used to charge the customer again.
2016-07-01 14:45:37 +02:00
jat-odoo 0b1a27a3c7 [REF,IMP] project,project_issue,rating: Handle ratings more efficiently
Purpose:

For our internal project management, we would like to track the customer
satisfaction on the open projects. We send them an email every one or 2
weeks allowing them to give a feedback by clicking on one of 3
smileys: Happy, Average, Angry. They can also put a additional explanation.

We already have something similar which is working on livechat with a
unusable reporting, and on issues but unusable. Our project are managed by tasks.

Specification:
- On the project : Selection fields : (Periodical Rating or Rating on Stage)
  + Fields to choose the period if periodical
- On the stage : email_template_id field.
- IF :
---> Periodical : Send an email to all the customers for the tasks on this stage periodically
---> On Stage : Send an email to the customer's tasks when the task reaches the stage
- That way, it's impossible to send a satisfaction request both periodically and sequentially.
  FP request
- Who is the customer : The customer on the task OR the customer on the related sales order
  OR the customer on the projet OR nobody
- The last feedback is displayed on the task kanban card (Thumb up, down, or neutral)
- On the project kanban card, the customer satisfaction is displayed. This is the simple
  mean of all the previous ratings.
2016-07-01 14:05:03 +02:00
Raphael Collet 5560ac4a04 [FIX] models: generalize the protection mechanism to not recompute some fields
The protection prevents fields to be invalidated/recomputed on some records.
This mechanism is useful against accidental cache invalidation when computing
or inversing fields.  It also prevents to trigger the recomputation of fields
before and/or after their inversion.

Add a test on stored field with compute and inverse methods: the test checks
how many times the compute and inverse methods are invoked in several cases.
Essentially, the field should not be recomputed when it is written.
2016-07-01 10:49:27 +02:00
fwi-odoo c03b29b8b2 [MOV] crm_partner_assign: merge into website_crm_partner_assign 2016-07-01 09:59:10 +02:00
Vipul Bhatt 5dde1626f6 [ADD] website_crm_partner_assign: added frontend view for 'Leads' and 'Opportunities'
- Added 'Leads' and 'Opportunities' in menu and dashboard in 'My Account'
	- Added list views with filters and sorting features and detailed views
2016-07-01 09:58:04 +02:00
Olivier Dony 2fb0784d64 [IMP] base: simplify code from b3feb2358c 2016-06-30 20:08:35 +02:00
Nicolas Martinelli 82a9b77f54 [FIX] pos_restaurant: order of kitchen ticket
When the kitchen ticket is printed, the order lines appear jumbled in
comparison to what is displayed on the PoS interface. This is an issue
since the kitchen cannot link main and side dishes for a given guest.
For example, the following order:
- Steak
- Fries
- Salmon
- Pasta
- Chicken
- Salad

On the kitchen ticket, this could appear as:
- Salmon
- Salad
- Chicken
- Steak
- Fries
- Pasta

The order actually depends on the product id.

The fix is to use the order line id instead of the product id in the
resume dictionary. Although a dictionary is an unordered collection,
most browsers keep the dictionary ordered. For example:
```
var a = {"18": "18", "1": "1", "21": "21", "14": "14"};
for(var i in a) { console.log(i) };
1
14
18
21
```

opw-680796
2016-06-30 18:09:32 +02:00
David Monjoie 58742a5dd5 [MERGE] project,project_issue,project_issue_sheet: migration to new api 2016-06-30 14:41:56 +02:00
David Monjoie 5a6a701815 [MIG] project_issue_sheet: migration to new api 2016-06-30 14:41:27 +02:00
David Monjoie 73df45d8c5 [MOV] project_issue_sheet: split project_issue_sheet.py file 2016-06-30 14:41:26 +02:00
David Monjoie 095abc3f4c [MOV] project_issue_sheet: re-organized file structure 2016-06-30 14:41:26 +02:00
David Monjoie b86284ecc2 [REF] project_issue: renamed project.issue.report field nbr into nbr_issue 2016-06-30 14:41:26 +02:00
vbh-odoo 42b498dc6f [MIG] project_issue: converted test cases from yml to python 2016-06-30 14:41:25 +02:00
David Monjoie ccfea6b2f6 [REM] project_issue: removed dead on_change_template override
This function was removed in 9.0 at 1dbccc8215.
2016-06-30 14:41:25 +02:00
vbh-odoo e70605f2d1 [MIG] project_issue: migration to new api 2016-06-30 14:41:24 +02:00
vbh-odoo 3eb717baec [MOV] project_issue: split project_issue.py and project_issue_view files 2016-06-30 14:41:24 +02:00
vbh-odoo 0239d9d4da [MOV] project_issue: re-organized file structure 2016-06-30 14:41:23 +02:00
Ravi Gohil b9e8bc5687 [FIX] project: consider inactive projects for analytic accounts 2016-06-30 14:41:23 +02:00
Ravi Gohil f077a6c7bd [IMP] project: replaced except_orm by AccessError in tests
Comments were referring to Warning rather than AccessError but:
- Warning is deprecated
- The functions that are tested actually raise AccessError
2016-06-30 14:41:22 +02:00
Ravi Gohil 25dcc5e03c [IMP] project: use sql constraint for start/end date 2016-06-30 14:41:22 +02:00
Ravi Gohil 58b5d09890 [MIG] project: migration to new api of project.py
Also:
- removed onchange_partner_id() from 'project.project' model as
  'pricelist_id' field does not exist in project nor in any inherit(s)
  since its removal in 2008 by 07b1f0b9da
- removed 'type' field from _defaults dictionary of 'project.project'
  model as it does not exists anymore, it used to be defined on
  account.analytic.account
- removed on_change_template() from 'account.analytic.account' model as
  it doesn't seem to be useful and/or called from any view
- overridden _default_get() for 'project.project' model to set default
  value for 'use_tasks' field of inherits account.analytic.account
2016-06-30 14:41:22 +02:00
Gaurav Panchal 40fa74e3f5 [MIG] project: migration to new api except project.py 2016-06-30 14:41:21 +02:00
Ravi Gohil 2c29168307 [MOV] project: split and restructured files according to new API guidelines
- created report/project_cumulative.py for model
  project.task.history.cumulative that was in project.py
- moved project.project kanban view from project_dashboard.xml
  to project_views.xml, which required moving some menuitems
  as well so they are available while refering them in other files
2016-06-30 14:41:21 +02:00
Ravi Gohil 1449a1eaf1 [MOV] project: renamed and moved files according to new API guidelines 2016-06-30 14:41:20 +02:00
David Monjoie b41bbb2b87 [REM] project,hr_timesheet: removed dead _get_total_hours function
It should have been removed by 9b69184ffa.
2016-06-30 14:41:20 +02:00
Gaurav Panchal e7e277480c [REM] project: removed dead code from removed template mechanism 2016-06-30 14:41:19 +02:00
Gaurav Panchal b4280b3bb5 [REM] project: removed dead code since Archive/Unarchive 2016-06-30 14:41:19 +02:00
Gaurav Panchal 0b9a3f94fb [REM] project: removed dead task delegation code
Task delegation was removed at e485b6c5ee.
2016-06-30 14:41:18 +02:00
Yannick Tivisse 70c1de4244 [CRM] crm: activities improvements
When you change the activity on the Schedule activity wizard, keep the scheduled date

Rename a string on dashboard
2016-06-30 14:36:07 +02:00
Jeremy Kersten 96dbbba064 [FIX] hr_holidays: force employee during test
Since base.user_root has 2 employees (one in demo, one in data).
The method _compute_leaves will use the employee id forced in context.

The test should be improved later.
Maybe not 2 employees for same partner...
2016-06-30 13:45:11 +02:00
Fabien Pinckaers aed9b23688 [IMP] hr_expense: on boarding tour: accept non employee email option 2016-06-29 22:19:46 -07:00
Fabien Pinckaers 7aa835ae11 [NEW] hr_expense: new tour
[NEW] point_of_sale: new tour
[IMP] hr_expense: main employee is created by default, so that you can
use the email gateway and record expenses, without configuration
required
[IMP] all tours: applying JWR propositions: americanization of tips
[IMP] crm tour: add invite people steps

Merge branch 'master-expense-tip-fp'
2016-06-29 22:00:44 -07:00
Fabien Pinckaers 8c65bb7311 [IMP] project: tour improvements 2016-06-29 21:58:36 -07:00
Fabien Pinckaers 0ea1db4d34 [FIX] project: tour: misc fixes: missing extra_trigger, clean selectors,
missing _t(), adding a step to edit before asking to change a field.
2016-06-29 21:50:29 -07:00
Fabien Pinckaers 724eb557d1 [IMP] partial revert of 3106d5a3f2
Usability: remove the Settings tour and include the addition of users
back at the end of others tour. The reasons:
- When someone starts with Project, we don't want to invite him going on
  the settings tour (Don't make me think/choose)
- If the user starts with Settings (e.g. out of curisity), he will not
  have a great on boarding experience.
- We expect the user to follow the steps in this order 1/ discover
  project tasks and, only after, 2/ invite users (he will probably not
  invite users before discovering the application)

The drawback is that we have to add "Invite Users" steps on others tour,
but only those for which it has a sense:
- Website, Accounting, eCommerce are typically single-users apps (we
  don't need to make him invite people)
- CRM, Project are multi-users apps
2016-06-29 21:23:42 -07:00
Fabien Pinckaers 33ce526aa2 [IMP] tours 2016-06-29 21:14:00 -07:00
xmo-odoo b3feb2358c [IMP] allow group_operator on any field
There's really no reason to limit group_operator to numeric fields and Postgres's flexible aggregate make the ability to aggregate on non-numeric fields (and/or non-numerically)

* moves group_operator to Field
* adds a default value of `sum` on integer, float and monetary fields
* in read_group, filters on fields with a group operator rather than by
  type (also allow id fields, since Id doesn't have a group_operator by
  default it will be ignored anyway) (sequence is still specifically
  excluded for now because they're usually regular Integer fields)

Closes #12372
2016-06-29 17:52:30 +02:00
Yannick Tivisse 51a8bc1a60 [IMP] sale_crm,project: usability improvement from user tests 2016-06-29 16:40:59 +02:00
Yannick Tivisse 3106d5a3f2 [IMP] web_settings_dashboard,web_tour: usability improvement from user tests
1/ The tip should be on the textarea, not on the button.

2/ The access right field on the quick user creation form is confusing.
   I propose to put it in "Technical Feature" so that it's not visible for normal users.

3/ dissociate les settings tour from project tour
2016-06-29 12:02:19 +02:00
Fabien Pinckaers 4882a521f1 [IMP] Expense: tour + employee created by default 2016-06-28 19:35:25 -07:00
Christophe Simonis 2a3f37806f [FIX] im_livechat: use new api when calling cleaning methods 2016-06-28 19:01:53 +02:00
Christophe Simonis 30edf6fa8f [FIX] website_payment: use renamed fields/variables 2016-06-28 18:59:46 +02:00
Christophe Simonis 93e6316029 [MERGE] forward port of branch saas-11 up to 7153077 2016-06-28 18:05:25 +02:00
Christophe Simonis 8eb2be4668 [REM] mail_tip
Since the deletion of `web_tip` module (6416c46d85),
this link module is useless.
2016-06-28 17:22:49 +02:00
Christophe Simonis 1747e12bee [REM] hr_expense: remove unused data file.
This file has wrongly been reintroduced by 717f9217bb
2016-06-28 17:12:51 +02:00
Christophe Simonis 71530771ea [FIX] web: re-add now usefull variable self 2016-06-28 17:05:11 +02:00
Martin Trigaux cf1e8dcb92 [IMP] point_of_sale: migration of the action
Was removed at 2e4b82f4 (for good reasons) but an explicit empty value is better
for migration as it prevents needing to explicitly removed the domain.
2016-06-28 16:24:21 +02:00
Christophe Simonis 5166fbd21b [MERGE] forward port of branch saas-10 up to 6d51bce 2016-06-28 15:12:06 +02:00