Commit Graph
100618 Commits
Author SHA1 Message Date
Géry Debongnie 12f381d2be [FIX] web: remove autosize.js from assets
I forgot to remove it from the bundle, after removing the files.  Why
did noone stop me?
2016-01-25 14:44:15 +01:00
pgu-odoo accf34b442 [IMP] purchase : search by product category on purchase report 2016-01-25 14:51:31 +05:30
Martin Trigaux 1f0b0edc6b [MERGE] migration of product_email_template to the new API 2016-01-25 14:29:16 +05:30
Martin Trigaux 11ef960949 [FIX] product_email_template: remove outdated demo data 2016-01-25 14:28:57 +05:30
Prashant Panchal 7f18dfc9ed [REF] product_email_template: migration to the new API 2016-01-25 14:28:57 +05:30
Prashant Panchal 01d99c159b [REF] product_email_template: rename module files 2016-01-25 14:28:57 +05:30
Fabien Pinckaers 733532c116 [IMP] Deposit is a sale tax, not purchase/none 2016-01-24 23:12:54 -08:00
Fabien Pinckaers 93adbe15c9 [IMP] removing disturbing tooltip when writing an email 2016-01-24 12:57:51 -08:00
Fabien Pinckaers b22b4268bc [IMP] remove purchase_id from vendor bill line 2016-01-24 12:04:44 -08:00
Fabien Pinckaers f7a0d667ee [IMP] remove confusing tooltip for end-user (when he was composing an email) 2016-01-22 14:00:32 -08:00
qsm-odoo 1fa1ec850c [IMP] stock_landed_costs: Broken layout on stock.landed.cost form view 2016-01-21 12:54:23 +01:00
Fabien Pinckaers 7a7896a74f [FIX] correct order of stages in recruitment 2016-01-20 10:32:26 -08:00
Géry Debongnie e0985d2a2d [REM] web: remove autosize library
we have our own custom version now => autoresize, currently located in
utils.js
2016-01-20 14:42:21 +01:00
Martin Trigaux d0860fc495 [MERGE] subscription: migration to the new API 2016-01-20 17:00:07 +05:30
DevendraK 46401a2a4a [REF] subscription: migration into the new api 2016-01-20 14:26:58 +05:30
DevendraK 29fe0353e3 [REF] subcription: reorganized the module files as per newapi convention 2016-01-20 12:41:32 +05:30
Fabien Pinckaers a8e811a08c [FIX] Refuse is now a clear state, no need to show job in kanban (since you are on a job position 2016-01-19 16:55:49 -08:00
Gaurav Panchal 1fa6788a47 [IMP] base,product: archiving without debug mode
Also added these options through to action menu, which is a magic
stuff that looks if the active field is in the view.
Continuation of 4c1224f5ec.
2016-01-18 12:02:22 +01:00
Raphael Collet a5f6622670 [IMP] fields: add documentation for default=None on fields 2016-01-15 15:58:38 +01:00
Raphael Collet ef8d6eda01 [IMP] fields: overriding a field with default=None discards its default value 2016-01-15 13:55:13 +01:00
Raphael Collet d6d3821149 [IMP] fields: make it possible to use None as the value of a field parameter 2016-01-15 13:27:55 +01:00
Damien Bouvy db5e6a124a [IMP] website_quote: mail template on a quote template for confirmation 2016-01-15 10:01:53 +01:00
Yannick Tivisse 4d253431de [IMP] hr_timesheeet: Menus reorganisation + small improvements
+ Remove duplicated fields on res_company config view
+ Remove Timesheet range per 'Day' on res_company
+ Move Attendance information in the 'Attendances' notebook on timesheet view
2016-01-14 16:05:12 +01:00
Thibault Delavallée c61dc5cb36 [IMP] mail: encapsulate _message_track in batch
_message_track is encapsulated in a method that calls it in batch. The purpose
is to ease the tracking to work in batch. Moreover future improvements in mail
will use this method and will be able to work in batch.
2016-01-14 15:54:01 +01:00
Thibault Delavallée 684acf646c [CLEAN] project: dead / unnecessary code
Removed unnecessary imports
Removed duplicated _order
Cleaned kanban state update in write to avoid useless loops. Indeed when
updating the stage the kanban state is reset, if the new stage is different
from the old stage. Now in every case the kanban state is reset. This is
already the case in issue and does not seem to frustrate users.
2016-01-14 15:04:19 +01:00
Virbhadrasinh Gohil 7c513773e9 [FIX] auth_signup: don't crash on user copy
Altering a frozen dict is not allowed
2016-01-14 09:25:09 +01:00
Christophe Simonis 4d6bca4383 [MERGE] forward port of branch saas-9 up to 740a6ea 2016-01-12 18:49:16 +01:00
Christophe Simonis 740a6eadd3 [MERGE] forward port of branch saas-8 up to 3c7b08c 2016-01-12 18:48:49 +01:00
Christophe Simonis 3c7b08c030 [MERGE] forward port of branch saas-7 up to 9ad5c66 2016-01-12 18:48:20 +01:00
Christophe Simonis 9ad5c66a44 [MERGE] forward port of branch 9.0 up to 33299fd 2016-01-12 18:47:43 +01:00
Christophe Simonis 33299fd689 [MERGE] forward port of branch saas-6 up to 5eee559 2016-01-12 18:46:23 +01:00
Denis Ledoux 85b342c3b1 [FIX] website_sale: my cart popover in other languages
When browsing the ecommerce in another language
than the default one,
the my cart popover, displayed when the mouse is over
the "My Cart" link in the menu, wasn't working.

This is because the Jquery selector was defined as
"the link must start with `/shop/cart`,
while, when browsing this link in another language,
this link is prefixed with the language code,
e.g. `/es_ES/shop/cart`.

The selector should therefore check that the links
ends by `/shop/cart`.

opw-666351
2016-01-12 18:35:52 +01:00
Christophe Simonis 5eee5591ab [MERGE] forward port of branch 8.0 up to 37ed5ce 2016-01-12 18:24:27 +01:00
Denis Ledoux 6a366b216b [FIX] models: order by translatable fields with multiple translations
When a model list is ordered on a translatable field,
a join on the `ir_translation` is done, so the order
is correctly done on the translation value rather
than the translation source (in English).

This join wasn't entirely correct: If there were
multiple translations for a same record field
(which should not happen, but which is not forbidden)
e.g. Two different translations for the name of a same product,
then this record appeared several times in the result of the query,
while this is expected to only have each record once
(Obviously, when you perform a search on products, you do not expect
to have multiple times the same products returned by the search query)

This had as side-effect, when searching records with a limit of 80
items, to return actually less than 80 items
(e.g. 72 products, with multiple translations),
and, as the limit of the search was not reached (e.g. 72 instead of 80),
the web client did not perform the `search_count`, as it does not do
it when the limit of the search is not reached (meaning there is no
more items than what has been returned by the search query), and therefore
the web client did not consider there was actually more results, more
pages of results.

In summary, the count of records of a model could be different
when performing the order on a translatable field from one
language to another.
(e.g. A database could return 150 products in English, but
only 72 in Spanish).

To solve this issue, we have required the use of the operator
`DISTINCT ON`, which provides the possibility to keep only
the first translation for each record according to a given
order (in this case, we keep the translation that has been
added the most recently)

From the PostgreSQL documentation:
DISTINCT ON ( expression [, ...] ) keeps only the first row
of each set of rows where the given expressions evaluate to equal.
The DISTINCT ON expressions are interpreted
using the same rules as for ORDER BY (see above).
Note that the "first row" of each set is unpredictable
unless ORDER BY is used to ensure that the desired row appears first

The performance of this new query is similar to the performance
of the former query.

opw-666071
2016-01-12 17:40:58 +01:00
Christophe Simonis c538d451a6 [FIX] crm: correct kanban state color computation
Avoid TypeError: can't compare datetime.datetime to datetime.date
2016-01-12 17:33:44 +01:00
Goffin Simon 1676f66ad3 [FIX] account: deprecated account
If an account is deprecated it should not be possible to use it anymore.

opw:665987
2016-01-12 16:51:54 +01:00
Goffin Simon 4142d6ed8e [FIX] purchase: unlink PO
A PO must be in state cancel to be canceled.
Before the fix, it was possible to cancel a draft PO
then if a PO linked to a procurement was deleted with being
canceled, the procurement stayed in running state.

opw:666311
2016-01-12 16:28:01 +01:00
Christophe Simonis 1d917d61f6 [MERGE] forward port of branch saas-9 up to 63c7488 2016-01-12 16:17:43 +01:00
Christophe Simonis 63c7488926 [MERGE] forward port of branch saas-8 up to 5f997bc 2016-01-12 16:12:32 +01:00
Christophe Simonis 5f997bc4ef [MERGE] forward port of branch saas-7 up to 7fa6f73 2016-01-12 16:11:28 +01:00
Christophe Simonis 7fa6f73302 [MERGE] forward port of branch 9.0 up to cb79297 2016-01-12 15:30:29 +01:00
Nicolas Lempereur b24d759036 [FIX] web_editor,base: transmit translation model
There is a logic on the front-end to escape translated text content when
saving them as ir.translation record.

This logic was in part base on html elements and if these element were
not coming from an html field other than "ir.ui.view" arch_db's field.

This logic was introduced in 8.0, and something similar was later
introduced in 9.0 with f5acea7, but in this instance, the information
[data-oe-model] on nodes was not available. Thus some html field from
other model than ui.ui.view would have their translation escaped
erroneously.

This commit adds a data-oe-model attribute on to-be-translated nodes
which will then be available to the frontend.

closes #10420

first-part-of: opw-659772
2016-01-12 15:14:07 +01:00
qsm-odoo cb79297a41 [FIX] web_editor: links edition (only website links)
Commit f3f7bd9f24 adds an improvement which allows the user to edit links in
an easier way. The problem is that it also allowed to edit... the edit
buttons (example: the discard button).

This commit moves the mentionned commit code below the code that checks
if the target can be edited or not.
2016-01-12 15:03:23 +01:00
Christophe Matthieu a830263992 [FIX] wesbite_sale: recompute taxes only when update checkout
Issue: We force to recompute the taxes on all lines in constrains. This forcing loose custom added taxes in the backend.
2016-01-12 15:01:08 +01:00
Nicolas Lempereur 37ed5ce844 [FIX] website_quote: don't unescape menu title
If we take content with $().text(), to insert it in another node we have to
used $().text(value) also. If like before this commit, we would use $().html()
the content would be unescaped one time too much.
2016-01-12 13:33:44 +01:00
Richard Mathot 0204717182 [REF] stock: unused variable 2016-01-12 11:17:41 +01:00
Thibault Delavallée c3db39ee25 [FIX] res_partner: conditional colorize of avatar
colorize parameter was not taken into account when colorizing the image.
Thanks Wolfgang Taferner for pointing it out.
2016-01-12 10:29:59 +01:00
Martin Trigaux e636d98741 [FIX] website_sale: remove truplicated* code
I only blame kdiff3

* TM @rim-odoo
2016-01-12 10:14:43 +01:00
Mohammed Shekha 06a3609ac8 [FIX]calendar: use display_name instead of name, because of template change, now FieldMany2ManyTag uses display_name to show lable on tag 2016-01-12 10:13:43 +01:00
Nicolas Martinelli 8c51bb7476 [FIX] sale: unlink SO and procurement
When a SO is confirmed, cancelled then set to draft, the SO is still
linked to the pickings and the procurements which were created before
cancellation. This should not be the case, since a draft SO is not
supposed to be linked to any procurement.

The fix resets the procurement group of the SO, and resets the
procurements linked to a SO line.

Fixes #10277
2016-01-12 09:02:08 +01:00