Commit Graph
94182 Commits
Author SHA1 Message Date
Olivier Dony 0d60cdfd68 [FIX] search view: restore the disable_custom_filters flag effect
This search view option was properly set but not
observed by the search view itself.

This caused all related links and smart buttons
to open a list of records that was wrongly filtered,
as soon as a default filter was applicable to the
target action (e.g. with default filters gloablly
set per model, not per action).

This regression was introduced at refactoring
commit d8d6311b50
2015-03-06 13:34:32 +01:00
Aaron Bohy a6919adf70 [FIX] Web: base.sass: FormView: overflow in One2Many fields
Override the "overflow: auto" rule of view-manager-content in One2Many
fields to remove useless scrollbar displayed in One2ManyKanban.
2015-03-06 11:11:31 +01:00
Christophe Matthieu c9d7803675 [FIX] website: backend editor don't display the default value and don't exit the fullscreen mode when click on escape 2015-03-06 10:25:31 +01:00
Christophe Simonis 5b6617a5e4 [FIX] base: correct m2o design for active items. 2015-03-05 17:29:00 +01:00
Christophe Simonis bab519fd8a [FIX] web: do design changes in sass file!
8ab68d8 introduced css changes not present in sass file.
2015-03-05 17:26:17 +01:00
Thibault Delavallée b136f83a87 [FIX] mass_mailing: web bounce exchange banner: removed overkill
css causing issues when editing text (multilines that disappear, ...).
2015-03-05 17:15:53 +01:00
Jérome Maes 63e5341081 [FIX] im_livechat, rating : add a cron in im_livechat to delete empty anonymous sessions. And change the res_name of a rating record for im_chat.session : keep the same notation as in reporting instead of uuid. 2015-03-05 16:31:18 +01:00
Jérome Maes 3186d86b8b [FIX] im_livechat : display the rating smileys from the origin server 2015-03-05 16:31:18 +01:00
Jérome Maes 3d3c364e47 [FIX] marketing_campaign : add domain on filter field of segment to avoid applying filter domain on campaign object (which may be different of the one of the filter, causes crashes) 2015-03-05 16:31:18 +01:00
Jérome Maes e86a86d108 [FIX] mass_mailing : overflow on mail template kanban card preventing to click on 'show more' button 2015-03-05 16:31:18 +01:00
Jérome Maes 2f6204aca4 [FIX] website_forum : avoid server error when sharing false url on forum. Properly display error message. 2015-03-05 16:31:18 +01:00
Jérome Maes 95a1e6b4fe [FIX] website_event : display the located date instead of the utc date. Add the timezone to be sur the visitor understand. 2015-03-05 16:31:18 +01:00
Jérome Maes d988cdd494 [FIX] project : style of kanban status as label in form view 2015-03-05 16:31:18 +01:00
Raphael Collet c204bf2a82 [FIX] report_ir_model: fix template with inappropriate usage of t-field 2015-03-04 17:46:54 +01:00
Thibault Delavallée 7b4a82884d [FIX] website_forum: fix crash in convert answer to comment
raised by last commits in saas-6. Browse user object as superuser
to avoid access issues.
2015-03-04 17:15:57 +01:00
Thibault Delavallée b992343ec5 [FIX] website_event, website_event_sale: when an event is sold out do not
allow to choose tickets, even without having a register button. Tell directly
it is sold out.
2015-03-04 16:34:38 +01:00
Thibault Delavallée ff4bbdd356 [FIX] website_forum: crash when xml files holdign qweb content
contain a dot in the name.
2015-03-04 16:06:12 +01:00
Thibault Delavallée 56090ded69 [FIX] event_sale: wizard to edit registrations was failing due to some
strange construct in the context of an action. Basic code works well, no need to
try to do dirty things in the context.
2015-03-04 15:38:58 +01:00
Christophe Simonis bc2fd0515b [MERGE] forward port of branch 8.0 up to 017f346 2015-03-04 15:16:10 +01:00
Leonardo Donelli 017f346dd3 [FIX] product: keep partner to base pricelist
When a rule is based on another pricelist, the partner was not passed to the
base pricelist.
2015-03-04 14:33:06 +01:00
Leonardo Donelli 667e42868b CLA 2015-03-04 14:33:06 +01:00
Christophe Simonis 7bfd56d9c6 [FIX] base: correct test
Bad things happen when you write your code for master and
commit it in 8.0 without testing...
2015-03-04 13:38:36 +01:00
Christophe Simonis d6998061f1 [FIX] base: correct custom views validation.
As custom views validation is done while `self.pool._init` is set,
filter on currently loaded modules was still applied.
As a side effect, only one custom view per base view was validated.
In case this view is depending on another custom inherited view, the
validation failed.
Now force loading all views when validating custom views.
2015-03-04 12:49:06 +01:00
Christophe Simonis 325de62f51 [FIX] base: correct inheritance application
While `apply_inheritance_specs` apply most of its changes inplace, it may
completely replace the `arch_tree` if the root node is replaced.
This new root node wasn't used for `primary` views that inherit from
another.
2015-03-04 12:43:22 +01:00
Romain Deheele 6626884255 [FIX] hr_expense: display analytic account on report
Order of attributes matter in QWeb and due to unexpected evaluation order
<span t-field t-fi /> will not works while <span t-if t-field /> do.
Since v8, the ORM will no longer crash to resolve foo.bar.name if bar is not
defined. The t-if clause is then not necessary and can be simply remove instead
of inverting the order of clauses.
2015-03-04 12:22:10 +01:00
Josse Colpaert 935141582f [FIX] Inventory line store for theoretical qty 2015-03-03 17:07:45 +01:00
Xavier Morel 603c03799d [FIX] ir.qweb: ensure attributes are generated encoded
closes #2856, closes #4182
2015-03-03 17:04:20 +01:00
xmo-odoo 3956210a8b [IMP] qweb doc: debugging directives
fixes #4547
2015-03-03 17:02:33 +01:00
Goffin Simon 1155099d2b [FIX] purchase: wrong currency printed on purchase order
Choosing a currency different than the purchase order pricelist is allowed.
Therefore, the purchase order report must display the currency
of the purchase order, and not the currency of the pricelist.

opw:628767
Fixes #5443
2015-03-03 16:54:53 +01:00
Jérome Maes 94c33caa78 [FIX] im_chat : broken notification when leaving conversation, and add view definition file in manifest. 2015-03-03 16:51:16 +01:00
Jérome Maes 77248b0d6d [FIX] website_sale : fix tour to select correct snippet with the popover 2015-03-03 16:51:16 +01:00
Jérome Maes d825704072 [FIX] website_sale : do not display 'False' if product description is empty on cart 2015-03-03 16:51:16 +01:00
Goffin Simon 092c64b76f [FIX] website: translations for qweb templates not applied.
-Website.tours must be loaded after the translation data:
"website.ready" before the tour ensure that the translations are loaded.

-Translations for qweb templates not applied:
Translate all text nodes in qweb templates when translation data
are loaded.

-Add some translations in website tours.

opw:619786
2015-03-03 16:05:34 +01:00
Anton Chepurov 47ca07ba19 [FIX] product: sort attributes before checking existing variants
When generating the list of all needed variants, the attributes are sorted based
on the order in field attribute_line_ids while, when comparing with existing
variants, the order of the attributes on the product.product is the order
on the field attribute_value_ids. As both order could be different (no direct
relation), variants could be wrongly recreated instead of keeping existing one.

Make sure the attribute lists are always sorted.

Fixes #4361
2015-03-03 15:40:19 +01:00
Josse Colpaert c5dc1288c2 [IMP] To optimize procurement_jit, we let it depend on stock. Runs can be done in batch that way. Optimizations from work of api
[IMP] Simplify to single search

[IMP] Make sure procurements are run in the original order
2015-03-03 15:21:41 +01:00
Raphael Collet ad4a269554 Merge pull request #5549 from odoo-dev/8.0-read_inherited_with_join-rco
[IMP] models: in _read_from_database(), fetch inherited fields with a join
2015-03-03 13:19:08 +01:00
Raphael Collet 983dcf193c [FIX] fields: make base_field recursive in case a field is inherits'ed across several models 2015-03-03 13:18:04 +01:00
Raphael Collet 04ba0e99a4 [IMP] models: in _read_from_database(), fetch inherited fields when possible
This should improve the performance of method read() on models with inherited
fields, like product.product.  The inherited fields that are stored as columns
in parent tables (except for translated fields) are read in the same query as
the fields of the model.  Those fields will be directly stored in cache under
the main model, so that no copying will take place in cache for accessing them
(this is the default implementation of inherited fields).
2015-03-03 13:18:04 +01:00
Raphael Collet 2c261a2987 [IMP] models: in _read_from_database(), use the Query object to build the query
This makes the query construction more robust, as it handles joins for
conditions and ORDER BY clauses.  It also makes it easier to read() from
several tables (like inherited fields).
2015-03-03 13:18:04 +01:00
Xavier Morel 3e18166ea4 [ADD] py.relativedelta: weekday handling
also various changes/fixes
2015-03-03 13:10:53 +01:00
Denis Ledoux 19aa7b732b [FIX] report: overflow of long content in reports colums
When having a long, non-breakable, content
within a report column,
e.g. an invoice with a very long, pipe-separated, origin,
the content overflowed on other columns.

Set word-wrap: break-word; prevent this behavior,
and is not considered dangerous regarding the possible
side-effects on the design in the reports layouts.

In fact, we should even consider applying this change
on the webclient itself. A similar issue happens in the form view
when having a field with a long non-breakable content,
e.g. a long, pipe-separated orign in an invoice. Nevertheless,
we should avoid taking risks in stable releases,
and this change in the webclient should therefore be done
carefully in master release.

opw-629352
2015-03-03 12:35:25 +01:00
Martin Trigaux 8c35497c74 Move Yenthe666 CLA to correct folder and remove code block tag 2015-03-03 12:15:51 +01:00
Yenthe 34cd8960fc Sign CLA Yenthe666 2015-03-03 12:09:52 +01:00
Xavier Morel fb2b1d7568 [IMP] py.js relativedelta
Rewrite relativedelta.__add__ based on dateutil 2.4.0

* completely remove any hint of supporting time deltas (could be
  implemented in the future, but not currently asked for and lots of
  code to implement)
* implement weekday support (ordinal only)
* probably better leapyear support
* remove relativedelta.__sub__ (only works between relativedeltas)
* add relativedelta.__neg__

fixes #5089
2015-03-03 12:00:12 +01:00
Xavier Morel f64a2fa386 [ADD] js tests: more relativedelta tests
* add some more boundary tests and nudges
* add test for weekday

ref #5089
2015-03-03 11:55:18 +01:00
Xavier Morel adf5b5e0e8 [FIX] tests: overflow on test page body
inherited from main CSS, would prevent from scrolling body and thus from
seeing all the test cases and test case contents (e.g. error messages
and stack traces)
2015-03-03 11:54:12 +01:00
Xavier Morel 752e21a633 [FIX] py.js: arguments dispatching in PY_call
When providing an args of ``null`` (or ``undefined``) and a non-empty
kwargs, the kwargs would be removed/ignored.

While explicitly providing a null args is not necessary, it's perfectly
valid.
2015-03-03 11:51:50 +01:00
Christophe Matthieu 03131edace [IMP] web: update jquery.validate.js lib from v1.8.1 to v1.13.1 2015-03-03 11:04:05 +01:00
Nicolas Lempereur c40d5065fa [FIX] purchase: get taxes when create rfq from bid
When creating a request for quotation from a call for bids, the suppliers
taxes where not present in the quotation. Since a product `taxes_id` field
is a many2many, the unused triplets syntax caused the issue.

fixes #5307
2015-03-03 10:00:27 +01:00
Josse Colpaert 3883ffbba7 [IMP] Production lot unique sql constraint should only depend on name and product, as NULL values in the reference make everything possible 2015-03-03 09:44:43 +01:00