Commit Graph
104084 Commits
Author SHA1 Message Date
Fabrice Henrion e8db7e483f [IMP] im_livechat: improve the tooltip grammar
Closes #12480
2016-07-19 10:30:55 +02:00
qsm-odoo eaf8e82efb [IMP] *: activate automatic tour tests
* project, crm, point_of_sale, website, website_sale, website_blog,
website_event, website_forum
2016-07-18 14:22:29 +02:00
qsm-odoo 35a264144e [IMP] web_tour: allow automatic tour running
Tours can now be launched flawlessly thanks to the run method of the
tour service.

In a tour definition, here what you might have to do to make it
functionnal in auto mode:
* If actions are required between two steps of an onboarding tour:
    * If the actions have to wait for elements to appear on the screen,
        define new tour steps with no content and add the "auto" key
        and set it to "true".
    * If the actions concern elements which are already on the screen,
        you can use the "run" key in a step to make the tour faster to
        execute actions after the step.

The "run" key may take several values:
* A string with the values "click", "text" or "drag_and_drop". By
    default, you will not have to specify "click" for normal elements
    or "text" for form elements as they are the default values for
    those. Note: the "text" value can be followed by the text to enter
    (default to "Test") and the "drag_and_drop" value can be followed
    by a jQuery selector to specify where to drop the element (default
    to the body element).
* A function which takes an "actions" parameter. This allowed to do
    anything but here are common uses in the run definition :
    * a call to "actions.auto()" will do the default action on the
        step element (click on normal element and add text on form
        elements).
    * a call to "actions.auto(element)" will do the default action on
        the given element. Note: this.$anchor is a reference to the
        step jQuery element.
    * a call to "actions.text([text], [element])" will add the optional
        text (default to "Test") to the optional given element (default
        to the step element).
    * a call to "actions.click([element])" will click on the optional
        given element (default to the step element).
    * a call to "actions.drag_and_drop([to], [element])" will drag and
        drop the optional given element (default to the step element) in
        the optional given "to" element (default to the body element).

Note 1: all the "element" parameters can be given as a jQuery selector,
a DOM node or a jQuery element.

Note 2: the run method is designed to do actions on elements which are
already on the screen. If this is not the case for some of them,
consider using an "auto: true" step as explained above.

Note 3: "auto: true" steps can also contain a run definition.

When defining a tour, you can also add predefined steps (auto or not).
These are defined in the object STEPS of the tour service object. These
include opening the "More" menu if any in community before clicking on
an app, opening the appswitcher in enterprise, ...
The full list is accessible in the tour_manager.js file.
2016-07-18 14:16:35 +02:00
qsm-odoo 4005cf025e [FIX] website_twitter: stop JS code crash if no tweet
Prevent the JS to crash when a well-configured twitter account with
no tweet in it is used with the website twitter snippet.
2016-07-18 11:26:04 +02:00
qsm-odoo 0e43c9c43c [FIX] website_forum: link the .py test file...
Commit cf925c2a58 introduced the test_forum_process file which launches
the UI tests of the website_forum module. Unfortunatly, the file was
not linked in the __init__.py file.
2016-07-18 11:25:21 +02:00
Yannick Tivisse 7403077037 [IMP] hr_recruitment: display job_id on applicant kanban view 2016-07-18 10:43:26 +02:00
Fabien Pinckaers 8eb63b2f06 [IMP] sale, account: custom email when invoice/quotation, not simple messages 2016-07-18 00:16:32 +02:00
Fabien Pinckaers 6ff1c28fb3 [IMP] purchase: improved email template 2016-07-17 23:55:30 +02:00
Fabien Pinckaers 8cb4252d44 [IMP] sale: better email template for quotations 2016-07-17 23:49:23 +02:00
Fabien Pinckaers 96da10de6c [IMP] account: improved email template for invoices 2016-07-17 23:23:12 +02:00
Fabien Pinckaers bce2915954 [IMP] account: adding signature to invoices sent by email 2016-07-17 01:06:18 +02:00
Fabien Pinckaers 9fbe082b2b [IMP] web_editor: css regular spacing between <p> to avoid bad layout
for email previews (e.g. sale order)
[IMP] improved email template for SO, with added signature
2016-07-17 01:02:06 +02:00
Fabien Pinckaers 5b4d247674 [IMP] mail: when replying to an internal message, don't send to followers
When an incoming email is a reply to an internal comment (private msg),
log a note, instead of sending an new message.
2016-07-17 00:32:30 +02:00
Fabien Pinckaers 069a192d69 [IMP] mail: Improved email notification template
Shorter template, cleaner look. Warn about internal note messages.
2016-07-16 23:57:55 +02:00
Christophe Simonis b98bb6d10f [MERGE] forward port branch saas-12 up to c16d5bc 2016-07-15 17:09:24 +02:00
Christophe Simonis c16d5bc750 [MERGE] forward port branch saas-11 up to 87e9639 2016-07-15 16:35:48 +02:00
Christophe Simonis 5858dda75f [MERGE] forward port branch saas-11 up to a62b8cf 2016-07-15 16:34:41 +02:00
Fabien Pinckaers 9bf9eb863b [FIX] rating: correct list view (list --> tree)
[FIX] livechat_rating: ratings from livechat should be consumed
(otherwise invisible)
[IMP] usability: better views and tooltips
2016-07-15 15:13:17 +02:00
Olivier Dony 87e9639a97 [FIX] website_event: correct typo in new API conversion
event.event's field is 'country_id', not 'country'

Cfr 616f294786
2016-07-15 14:02:01 +02:00
Jérome Maes eee72c8380 [MERGE] survey: migrate to new API
Purely merge, line per line code to new api.
No refactoring was done here.

Migrated modules are 'survey' and 'survey_crm'
2016-07-15 13:02:13 +02:00
Jérome Maes 35e7e93316 [MIG] survey_crm: migrate to new api 2016-07-15 12:57:51 +02:00
Jérome Maes ba3eaa61ba [MOV] survey_crm: module directory organization 2016-07-15 12:57:51 +02:00
Tanguy Charlier 09ea5c7d49 [IMP] survey: add gc of empty survey userinputs in the autovacuum cron 2016-07-15 12:57:51 +02:00
Ravi Gadhia 66cb880b74 [MIG] survey: migrate into new api 2016-07-15 12:57:51 +02:00
Tanguy Charlier 628c1d9564 [MOV] survey: module directory organization 2016-07-15 12:57:50 +02:00
Christophe Simonis a62b8cfaeb [FIX] hr_timesheet: add missing icon for Timesheets main menu
This icon was remove by 05a143a416 but is
still referenced by the menu entry.

This is also a backport of 3843b86fef.
2016-07-14 19:34:35 +02:00
Olivier Dony f5eba9e4d8 [FIX] web: repair grouping on date fields in list view
This is a temporary workaround, which probably deserves
further thinking by @ged-odo, as the root cause
stems from commit 96bf5b2656

The problem is that the list view looked for composite group_by
keys such as "create_date:month" within `fields_get`, which
only contains true fields.
2016-07-14 18:48:08 +02:00
Denis Ledoux 18dc5b3b87 [FIX] web: default many2many tags color
When there is no `color` field on the model
e.g. On invoice line taxes
The color class to apply on the badge was set to
`o_tag_color_undefined`
which doesn't exist. It must be set
from `o_tag_color_0` to `o_tag_color_10`
in order have a color.

Because of this, the taxes in the invoices lines
were not visible, because they were written in white
on a white background.

This has been broken by the below revision:
fe66472e2c
removing the or statement (`||`) to set a default
color for models not having a `color` field.

We choose to set `10` as default value, so the color
remains the same compared to the previous release
(light grey). However, if the new behavior chosen
by the usability is to have these in black, it should then
be changed to `0` again.
2016-07-14 18:38:29 +02:00
Christophe Simonis 1fca5e01cb [MERGE] forward port branch saas-10 up to 156dee2 2016-07-14 18:17:30 +02:00
Christophe Simonis 156dee2aec [MERGE] forward port branch 9.0 up to fd9eb2e 2016-07-14 17:17:54 +02:00
Olivier Dony 6d3cf9c649 [FIX] website_mail_channel: re-add import dropped by API migration
The migration to new API dropped `from openerp import tools`,
but it was still used.

See also 8250762fe8
2016-07-14 17:07:44 +02:00
Olivier Dony a78c2e3d39 [FIX] website_mail_channel: fix datetime typo in new API migration
The migration to new API changed `import datetime` to
`from datetime import datetime`, subtly breaking existing
calls.

See also 8250762fe8
2016-07-14 16:52:40 +02:00
Denis Ledoux 78fee4b6b0 [FIX] website_sale: "From website" filter
This filter must be added in the regular searchview,
and not have his own search view.

Without this:
 - view_sales_order_filter_ecommerce is a not search view
 for the sale orders, having the same priority than the regular one,
 and therefore this view can be loaded by default for other menus
 (In this case, this was for the menu Website Admin > Orders).
 e.g. Clicking on the `Sales` stat button on a contact no longer
 filtered the orders of this contact, but displayed all the orders,
 because it was this view which was loaded instead of the regular one.
 - In Website Admin > Orders, it was simply not possible to type a string
   and search for it in the search bar.
2016-07-14 16:37:28 +02:00
Christophe Simonis fd9eb2e481 [MERGE] forward port of branch saas-6 up to e928c60 2016-07-14 16:23:22 +02:00
Christophe Simonis e928c6003a [MERGE] forward port of branch 8.0 up to 17a1304 2016-07-14 15:46:28 +02:00
Jérome Maes c12a5fb204 [MERGE] calendar: migration to new api
* Move files and reorganize directories according to guidelines
* Lint and clean code, remove dead code
* Migrate code to the new API

In REF commit, some fields of calendar.event models changed. Due to
bad design, the code was not clean with the new API. Changing computed
fields make it more performant, and reduce code complexity.
See commit "[REF] calendar: change computed fields for start and
stop dates" for details.
2016-07-14 14:06:16 +02:00
Jérome Maes 51903f8a50 [IMP] calendar: rename cn field into common_name
We are not so lazy anymore. Oh wait ... !
2016-07-14 14:04:35 +02:00
tde-banana-odoo b7b935dbf8 [IMP] calendar: clean sending email to attendees
Change `send_email_to_attendees` signature to force setting email
template and remove `email_from`, since it is not usefull.

Now, when sending email to attendee, meeting author will also received
an invitation.

`get_ics_file` has been modified to be executed in batch.
2016-07-14 14:04:35 +02:00
Jérome Maes b1316f44eb [IMP] calendar, hr_holidays: uniformize context key to prevent sending mail to attendees
Code courtesy of tde-banana-odoo
2016-07-14 14:04:35 +02:00
Jérome Maes 95938118c7 [REF] calendar: change computed fields for start and stop dates
- `start` and `stop` fields are not computed anymore. Indeed, it was not normal
to have required stored computed field. Normally we shouldn't write on these
fields, but since client calendar api need them, we keep them as normal
datetime fields
- `start_date` and `stop_date` become stored computed date fields depending of
`start`,`stop` and `allday`. An inverse method allow to write on these fields,
since it can be the case from the form view
- `start_datetime` and `stop_datetime` follow the same logic
- `onchange_allday` code is mostly moved in `_inverse_dates` of new computed fields
- `_set_date` method (called in create/write) is now removed, since it does the same
thing as old onchanges
- `_onchange_duration` is kept to adapt `stop_datetime` when changing `start_datetime`
or `duration` on form view
- Duration is now 'zero' in database for allday meeting. Before, it was not changed.
Setting it to zero is less falsy. `duration` can not (yet) be a computed field since
it depends on others computed fields.

After migration, we manage to keep old behavior but the code was crap. Switching stored computed
fields make it cleaner, and respecting new API standarts.
This changes avoid multiple methods doing almost the same thing, and is less 'buggy'.
2016-07-14 14:04:34 +02:00
Jérome Maes 5040719b8d [REF] calendar: remove useless code 2016-07-14 14:04:34 +02:00
Jérome Maes 21e4579551 [REF] calendar: reorder methods, make some private, and rename some others 2016-07-14 14:04:34 +02:00
Mitali Patel e3560bd310 [REF] calendar: Migrated yml test cases to python unittest 2016-07-14 14:04:34 +02:00
Jérome Maes 6af6148a24 [REF] calendar: code cleaning to be more 'api v8'
- move `get_ics_file` from calendar.attendee to calendar.event
- remove calendar.event arguments to convert method into
`api.multi`, which make more sense
- `create_attendees` now returns recordset instead of list of ids
- change signature of `get_interval` method
2016-07-14 14:04:34 +02:00
Jérome Maes bcfe16a69e [IMP] calendar: add helpers to mange virtual ids 2016-07-14 14:04:34 +02:00
Jérome Maes 6bc14c9142 [MIG] calendar: migration to new API
Migration of all python code, mostly withtout chagnes. And adapting
xml files to guidelines.

On calendar.py, some changes have been perform to make the migration works :
- `_compute` method has been split into `_compute_dates`, `_compute_attendee` and `_compute_display_time`.
- remove unused method `onchange_partner_ids`, `check_partners_email`
- make `compute_rule_string` use a cache record instead of a value
dict to avoid crashes
- remove `new_invitation_token` method, and make it a default value on attendee creation
- add a default value on `day` field, otherwise the "Please select a
proper day of the month" exception is raised during the onchange
2016-07-14 14:04:33 +02:00
Jérome Maes fe42986ee2 [MOV] calendar: split models in multiple files 2016-07-14 14:04:33 +02:00
Jérome Maes b535461e47 [MOV] calendar: reoganize module directory 2016-07-14 14:04:33 +02:00
Denis Ledoux 8d2d741db3 [FIX] mass_mailing: do not inherit a view on a string attribute
A string attribute value can be translated,
and therefore the inherit broken if the term is indeed
translated.

This was the case for this term "Tracked link" in the Dutch
language, the "Tracked link" term of the inherited view has
been translated, and the inherit was therefore broken as
it couldn't find the given node in the base view due to the
fact this term was translated.

opw-683128
2016-07-14 12:25:02 +02:00
Ronald Portier 17a1304285 [FIX] hr_timehseet_sheet: drop view before creation
When the schema of a view change (e.g. drop of column), the "CREATE OR REPLACE"
will not be enough and dropping the view is required.

Fixes #12754
Closes #12756
2016-07-14 11:42:52 +02:00