Commit Graph
106668 Commits
Author SHA1 Message Date
Pierre Masereel d77af3ce1e [REF] stock: remove method redirection
Remove redirection of mehod 'action_split_lot' to 'split_lot' introduced in
rev: https://github.com/odoo/odoo/commit/304c81c91
2016-11-28 14:37:28 +01:00
Fabien Pinckaers 6bea172a49 [IMP] hr_attendance: comment for later: code to remove 2016-11-28 09:57:29 +01:00
Fabien Pinckaers c468cfdd69 [IMP] hr_attendance: remove unuseful JS code + clean view 2016-11-28 09:55:05 +01:00
Fabien Pinckaers ec4c37229f [IMP] hr_recruitment: no btn-primary is not currently recruiting; more contrast in dashboard 2016-11-27 14:59:02 +01:00
Fabien Pinckaers 7f4b98b540 [IMP] hr_recruitment: huge speed improvement for Job kanban 2016-11-25 17:01:11 +01:00
qsm-odoo 365f7e9212 [FIX] web: lazy loading the same file multiple times with loadJS
Before this commit, if the loadJS method was called two times with the
same url, the associated script was effectively put in the DOM only one
time. However, the second call returned deferred was immediatly
resolved while the script (added by the first call) might not be fully
loaded yet.

Now, calling loadJS for a same url multiple times will always return
the same deferred, resolved when the associated script is fully loaded.
2016-11-24 10:14:56 +01:00
qsm-odoo 88912f810f [IMP] web_editor: allow lazy loadings in Animation instance
This commit comments the code of the Animation class and allows
for lazy loading of resources before animations' start methods
are called.

This lazy loading can be performed in the willStart method (to use
the same way as in the Widget class).

This commits also removes the "stop" function of the module as it
was not really useful. It was used to restart the animations (by
immediatly calling start again after the stop call). Now the Animation
class contains a restart method and the module "start" function
automatically knows if it has to instanciate an animation or restart
an existing one.
Animation start should only be performed by instanciating an Animation
(thanks to new) or by calling the restart method, to insure the
willStart method is always called. Anyway, the best way to start
animations is to let the system handle them, using the "selector"
attributes in your Animation definitions as before.

See in-code comments for details.
2016-11-24 10:14:56 +01:00
Fabien Pinckaers df037089bc [IMP] hr_recruitment: better pivot view 2016-11-24 08:57:43 +01:00
Sagar Ahirrao 2ffa4eef83 [FIX] account: default value for 'bank_statements_source' field
On a account journal, as no default value is set, the label appears in bold on the form, and the value is not displayed (because equal to False)

Add a default value 'no_feeds' on the selection field
2016-11-23 16:11:07 +01:00
fwi-odoo 96b9d28351 [FIX] mail: add filter to see messages where user is mentioned
We add the filter during the instantiation of the search view by the "Discuss" client action
because we can't access the partner_id in the xml filter definition.
2016-11-23 16:08:16 +01:00
Thibault Delavallée b9c79b0a97 [IMP] mail: composer in mass mail mode does not use search domain by default
It now uses active_ids (checked records) by default. Composer allows you to
change and use active_domain (search criterion) instead.
2016-11-23 12:56:18 +01:00
Yannick Tivisse 2a7299f24c [REM] subscription: Remove module 2016-11-23 11:59:35 +01:00
Yannick Tivisse 98cb4719db [REM] workflow: Remove workflow engine, documentation and tests 2016-11-23 11:52:39 +01:00
Thibault Delavallée 94d2b97da4 [IMP] mail: make res_model of followers model a related on m2o towards ir.model
When uninstalling a module followers stay in the database because there is no
real link between ir.model and followers. Adding a m2o ensure followers are
correctly removed when uninstalling a module.

res_model fields is kept as a stored related field. This allows to keep
compatibility with almost all code using / searching on followers. Only
followers creation is changed a bit. As follower creation is done mainly
through a dedicated method few changes are required. Yey. Mat should be
happier now.

fix test
2016-11-23 11:13:18 +01:00
qsm-odoo d4d00dcd2e [FIX] website_portal, *: correct layout issues
* web_editor, website_portal_sale, website_project,
website_project_issue, website_project_issue_sheet

- Use bootstrap grid the right way (missing row)
- Use table-responsive for website portal tables
- Remove web_editor table layout style if inside a table-responsive
    in mobile mode
2016-11-23 10:21:43 +01:00
Christophe Simonis e348330b57 [MERGE] forward port branch 10.0 up to 6a18e31 2016-11-22 17:59:41 +01:00
Christophe Simonis 6a18e31cee [MERGE] forward port branch saas-12 up to c56cf85 2016-11-22 17:54:22 +01:00
Christophe Simonis c56cf85a3a [MERGE] forward port branch saas-11 up to 2633bb4 2016-11-22 17:50:41 +01:00
Christophe Simonis 2633bb4853 [MERGE] forward port branch 9.0 up to c7b1712 2016-11-22 17:35:59 +01:00
Christophe Simonis c7b1712592 [MERGE] forward port branch saas-6 up to 9780551 2016-11-22 17:33:38 +01:00
Christophe Simonis 9780551bb7 [MERGE] forward port branch 8.0 up to fbdac9c 2016-11-22 17:23:24 +01:00
stefanorigano d6cf236b4b [REF] website: refactor parallax snippet
This commit is a refactoring of the 's_parallax' snippet. Note that it
is compatible with previous parallax snippet (old snippets are just
transformed into the brand new one on page load). Note that scroll
speed are changed by this implementation though.

This solves several issues:

- Bg image went easily off of the frame if scroll speed was too fast

- The 'scroll speed' effect was visually inconsistent across different
    devices.

- If the Bg image was smaller than the frame (condition which occurs
    often in a responsive environment), then the image was totally
    offset.

- Since the previous implementation use background-position property
    to perform the effect, It was not possible to define an image
    focus point.

This implementation solves the previous issues introducing a safe-area
that limit the effect range. It's calculated dynamically, according to
the current screen size and the 'speed' option.

The effect if now achieved thanks to the translation of a DOM element
instead of background-position changes. This allows to solve the last
mentionned problem and improve performance.

The implementation rely on the new animation methods of the snippets
Animation class.
As this use the "requestAnimationFrame" function, the snippet knows
the right time to repaint itself, instead of using the "scroll" event
which is triggered too many times and thus occurs between painting
frames. This change greatly improved performances (CPU/painting usage
many times smaller).
2016-11-22 17:15:33 +01:00
qsm-odoo 0e08e653cd [IMP] website: allow better animations thanks to requestAnimationFrame
This commit extends the behavior of the Animation class of the
"web_editor.snippets.animation" module.

Now, all animations can easily define an animation algo update without
much caring about performances. All that must be done is:

* If the "start"/"stop" method is/are defined, do not forget to call
the _super parent method (which will now initializes the animation
components).

* Define particulary-named method in your Animation class extension.
See in-code comment of the _prepareComponents method.

This extension should be used to define all animations. For example the
use of $(window).scroll(function () { /* do stuff */ }) is now the same
as defining the function with on_scroll: function () { /* do stuff */ }
except that the later one will be more efficient, smoother and allow
you to not care about throttling / event binding/unbinding / ...
2016-11-22 17:15:33 +01:00
Pierre Masereel 7196896e01 [FIX] web_tip: destroy method set call off() on undefined
In some cases, when the destoy method of 'Tip' calls the off() function on
'$breathing', even if this one is not defined.

To fix this error, we check that '$breathing' is not 'undefined' before
calling off() on it.
2016-11-22 17:14:02 +01:00
Pierre Masereel dcf50bf242 [FIX] purchase: update order_lines date_planned
When we are trying to use the button 'set date to all order lines, we
get a traceback saying, that update cannot be done, because it ensure
that there's only one record. (After 9.0, there is no more this
'ensure_one').

This bug has been introduced in rev: https://github.com/odoo/odoo/commit/401a3cfaf6fd09f594e45c181e908900acba3777

To fix it, we iterate over the order lines, and do the update of each
line.
2016-11-22 16:49:28 +01:00
Jeremy Kersten 2edc4b0234 [IMP] website_forum: add message for moderator
task-29810
2016-11-22 16:44:25 +01:00
Jeremy Kersten e94de1484f [FIX] *: make field 'name' from some *.tag model tanslatable 2016-11-22 16:44:25 +01:00
Nicolas Martinelli 27b6d245e7 [FIX] account, account_tax_cash_basis: rounding
When tax cash basis is used, the user might face the error "Wrong credit
or debit value in accounting entry !". A detailed use case can be found
in issue #14158.

The reason is that a float representation of `1.0` of the field
`matched_percentage` will become `1.000...2` when used in Python.
Therefore, such an expression such as `line.credit_cash_basis -
line.credit * matched_percentage` might lead to a slightly negative
value for the credit/debit, which will not pass the condition `CHECK
(credit+debit>=0)`.

Fixes #14158
opw-692797
2016-11-22 16:04:52 +01:00
Fabrice Henrion 7594ed7c28 [FIX] grammar
Closes #14336
2016-11-22 16:03:38 +01:00
Fabrice Henrion 8c764ad0b4 [IMP] account_cancel: term consistency 2016-11-22 15:37:56 +01:00
Fabien Pinckaers fbfabf6074 [IMP] hr_recruitment: removing duoble pivot 2016-11-22 15:26:05 +01:00
Moises Lopez - https://www.vauxoo.com/ 4fb15ccdd7 [RES] base: Add thousand separation for es_MX ","
More information from https://en.wikipedia.org/wiki/Decimal_mark section:
"examples of use"
`The following examples show the decimal mark and the thousands separator in
various countries that use the Arabic numeral system.`
`Style: 1,234,567.89    Countries: Malaysia, Mexico, New Zealand, Pakistan,
Philippines, Singapore, Taiwan, Thailand, United Kingdom, United States`

Closes #14402
2016-11-22 15:08:39 +01:00
Alexis de Lattre 56653c8ce3 [FIX] stock: Typo in XML: strinsg -> string
Closes #14417
2016-11-22 15:04:58 +01:00
angelfentanez e965ac14dd [FIX] modules: add missing parameter to find_module
AddonsImportHook's find_module method to follow PEP302 by setting None as
default for the path parameter
Similar to edeb5a8c

Fixes #14087
Closes #14088
2016-11-22 14:51:05 +01:00
angelfentanez b1483b530a [CLA] Sign vauxoo CLA
cf #14088
2016-11-22 14:51:05 +01:00
Jigar Patel a7b8907003 [ADD] crm_livechat: Create leads from livechat discussions with '/lead' command 2016-11-22 14:46:07 +01:00
qsm-odoo 131a16525e [FIX] web: pivot cell clicking when no current list/form view
When clicking a pivot cell, an action is triggered using the cell data
and current action list view and form view. If no list view and/or form
view exists for the current viewmanager, the action chooses the default
list and/or form view.

The fallback when there is no list and/or form view was broken with
commit https://github.com/odoo/odoo/commit/002660a9b05cf8620e1c5287a8538ac5e806d59e#diff-9e64efee6e4d81d03c04c0aad259d99cL280,
when the views internal data were restructured.

Fixes #14392.
2016-11-22 14:44:29 +01:00
kso 582dff36cf [IMP] mail: Add 'Create and Edit' on channel followers invite wizard
As there is no reason to remove it each 2 saas, there's also no reason to put it back alternatively.
2016-11-22 14:38:38 +01:00
Nicolas Martinelli b1dfce904a [FIX] sale: customized invoices
In Sale settings, enable "Personalize the sales orders and invoice
report..." and also "Show line subtotals with taxes included (B2C)".
Print an invoice ==> traceback.

This is because the field `price_total` doesn't exist on an invoice
line. Note that this field exists on a SO line.

opw-694438
2016-11-22 14:05:43 +01:00
Christophe Simonis 457a705bf0 [MERGE] forward port branch saas-12 up to d1fddd2 2016-11-22 14:02:03 +01:00
Jairo Llopis fbdac9c853 [FIX] website: fix search in existing pages
Previous implementation did not allow the user to search for pages 'name'
but only on the slugified name.

Now we slugify the needles before to find a match.

1. Create a new page: 'The new'
2. add a link on your website and try to find this page...
    - Before this commit, the only ways was to type 'the-new'
    - After this commit 'the new', 'The new', 'The-new', ... will match

This commit closes #10771
2016-11-22 13:47:17 +01:00
Christophe Simonis d1fddd24dd [MERGE] forward port branch saas-11 up to 659fb5d 2016-11-22 13:28:15 +01:00
Josse Colpaert a7b614f43b [FIX] mrp: make location on routing visible only when using advanced routings
The location field is shown all the time. However it is only used for 2-steps
which is more complicated to configure and understand. That is why advanced
routings group is used to hide this field in other cases.
2016-11-22 13:00:11 +01:00
Josse Colpaert 91acb7f04c [FIX] mrp: take langage into account when checking if the production order has still the default name 2016-11-22 13:00:11 +01:00
Josse Colpaert 8d59da3549 [FIX] mrp_repair: fix issue when having several warehouses in one company
onchange_operation_type on repair line sets source and destinations locations
when changing the type. However the code does not handle multiple warehouses
in one company. Now the first found warehouse is taken into account and
code does not crash anymore.
2016-11-22 13:00:11 +01:00
Josse Colpaert 461e39f045 [IMP] mrp: avoid highlighting 'Post Inventory' button
Having 'Post Inventory' button highlighted makes it look like a necessary step
to take. However in practice using 'Mark As Done' is sufficient. Moreover this
action also posts the inventory.

Removing the oe_highlight makes it look like an optional step. It is still
necessary in some cases with SO / MO when not all products are produced.
2016-11-22 13:00:11 +01:00
Josse Colpaert 659fb5d47e [FIX] stock: fix location complete_name and name_get
- complete_name field should show the entire hierarchy of locations.
   However currently it stops at first non view location. This commit
   fixes the complete_name computation.
 - name_get should correctly handle translations. It is now correctly
   computed instead of relying on stored value which could be incorrect
   depending on langages. Moreover name_get displays short name like
   old implementation of complete_name.
2016-11-22 12:52:57 +01:00
Christophe Simonis 42aaa68d10 [MERGE] forward port branch 9.0 up to b73518f 2016-11-22 12:41:06 +01:00
Christophe Simonis 64e73b8352 [MERGE] forward port branch 9.0 up to 290601e 2016-11-22 12:39:02 +01:00
Olivier Dony b73518fe57 [FIX] web: do not cancel edition on o2m list when pressing Enter
Rev. 3f7d350fe21d9e2afb35a9ce3e2652940e3f259d1 introduced
auto-cancellation of the edit mode when the user clicks
outside the edited line.

The unfortunate downside was the auto-cancellation of the
edit mode also when the user presses ENTER while the
line is not valid.

This is especially annoying when using barcode scanners to
fill in values, as scanners usually send an ENTER keystroke
at the end of the input sequence.
When a many2one field is focused this event will often occur
before the autocompletion popup has a chance to open. At that
point the line is considered invalid, and the edition mode
is cancelled! If no field is considered dirty yet on the line
this simply drops the whole line, otherwise it will open a
navigation confirmation popup. Both results equally prevent
the use of barcode scanners.

This patch makes sure the edit mode is only cancelled when the
user indeed clicked outside the line, and not for other cases
where save() is requested, such as an ENTER keystroke.
2016-11-22 12:33:08 +01:00