Commit Graph
106683 Commits
Author SHA1 Message Date
Dhaval Panchal 92929ec6a7 [IMP] account/stock_account: Add a clickable history on journal entries chatters
Purpose:
In a perpetual inventory mode, it is not possible to reach the picking from the journal entry view because the ref field is not clickable. I propose to show a chatter to get the history (which doc created the move) and being able to go to the move from the chatter.

Specification:
In journal entry view add chatter and generate message(clickable) that link to  its Origin (i.e Supplier Invoice , Customer Invoice, Picking in case of Perpetual Inventory)
2016-12-01 16:02:18 +01:00
Nicolas Martinelli 3653661235 [FIX] rating, rating_{*}: translations
Several translation issues are faced with the rating module:
- the feedback page is always displayed in the admin language
- the feedback emails are always sent in the user's language

One would expect these to be in the partner language.

opw-694718
2016-12-01 15:50:11 +01:00
mdi-odoo d5c24abee5 [IMP] product,purchase: Make the vendor price configurable on the variants too.
=======
Purpose
=======

There are some confusion about the use of the vendor price and the cost price.
Moreover, in the purchase app, the RFQ should take the variant vendor price, if one is set

==========
Specification
==========

Add a clear tooltip on the Cost field (standard_price) : "The cost price is used for valuate stocks or to asses the price of manufacturing a product. The purchase orders are fetching the vendor prices."
In the simplified view, add the vendor cost o2m : https://drive.google.com/a/openerp.com/file/d/0BxqHe5rtIxY0LVZHZXFWcWFHckk/view?usp=drivesdk
Variant vendor prices should be indenpendant from each other, and from the template ones.
In the purchase app, when creating an RFQ : the system fetches the variant cost price (from vendor o2m), if no price on variant, it takes the vendor price on template.

NB: fp request
2016-12-01 14:59:20 +01:00
Adrien Dieudonne 6326ec3eeb [IMP] web_editor: ace_editor: right resize bar
Before this commit, it's was only possible to resize the width
of the ace editor when it was on the right side of the screen.

In studio, we need to put the ace editor on the left.
So, we needed to add a new resize bar.
For that, we also add a new option to know the position of the
ace_editor.

We also prevent the width of the ace editor from being recorded
too many times in the local storage for nothing.
This is why we added _.debounce.
2016-12-01 14:38:39 +01:00
Martin Geubelle ed22e0fb84 [ADD] base: display unpickled value 2016-12-01 14:38:30 +01:00
Dhaval Panchal 2ac8f564e3 [IMP] web: Don't color in 'No result to show' string when no result found
The user is tempted to click on it as it is colored, but nothing happens when clicking on it.
2016-12-01 12:54:04 +01:00
Dhaval Panchal c9ed353af7 [IMP] purchase: remove 'Create and Edit' option for fiscal position field in PO form 2016-12-01 12:29:12 +01:00
mmo a4d88c9efd [IMP] Product: Make product varian attributes readonly on variant form
=======
Purpose
=======

The attributes can be changes on the variant pages, which might cause some issues.
2016-12-01 11:54:09 +01:00
hza b43364af72 [IMP] website_event: put pager on bottom in website events page.
Purpose
========

When doing a filter on events page, the "second page" of the results is on the top right.
After I scroll down to the last event, nothing tells user that there are more events on the second page (or the second page is available)...

Specification
=============

Put 'Pager'(Pagination) on bottom right side in 'events page' so that user knows easilly to move on next page.

NB: Center the pager instead of displaying it on the right.
2016-12-01 11:49:37 +01:00
dbh 01b516ed88 [IMP] *: rename all the 'Reports' menuitems into 'Reporting'
There is a confusion in name of menuitems 'Reports'. For example whe have a lot of printed reports containing reports (eg. Expenses Reports)

For the 'Analysis' reporting views, we should rename this into 'Reporting'.
2016-12-01 11:18:16 +01:00
Fabien Pinckaers 7fbfec6002 [IMP] mass_mailing: better handling of contacts, mailing lists
Merge branch 'master-mail-fp'
2016-11-30 11:21:47 +01:00
Nicolas Martinelli d19cf48499 [FIX] account, account_cancel: cancel payment
Commit b17e4a0f6b prevents gaps in payment numbering by keeping tack
of the account move name used. It also prevents the unlinking of a
payment which already generated an account move.

However, no 'Cancelled' state has been introduced for the payments. It
means that the cancellation of a payment will set it to a draft state,
and it won't be possible to delete or flag it as 'Cancelled' later on.
It will therefore be a misleading entry for the users.

opw-694351
2016-11-30 09:03:18 +01:00
Fabien Pinckaers 765e7522f2 [IMP] mass_mailing: support for mass mailing contacts, not only mailing lists 2016-11-29 17:28:29 +01:00
Fabien Pinckaers e15372c071 [IMP] mass_mailing: better management of contacts lists 2016-11-29 12:41:25 +01:00
Pierre Masereel cb5bfd843d [REF] stock: remove recheck availability
Remove of unused method since rev: https://github.com/odoo/odoo/commit/704d4d59f162d6d0722d79e0f3f90c47389f7e97
2016-11-28 17:02:22 +01:00
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