Commit Graph

92766 Commits

Author SHA1 Message Date
jesusVMayor c040a26120 [CLA]Jesús Ventosinos Mayor. 2015-03-06 15:54:24 +01:00
Josse Colpaert f1a9ab7025 [FIX] stock: typo not in 2015-03-06 13:00:31 +01:00
Josse Colpaert b886e11e47 [IMP] Stock: When changing wh config: check before deactiving locations fixes #4985
When changing e.g. from 3-step to 2-step, we would like to deactivate a location,
but maybe the user still wants to use that location e.g. in a rule on the product, so do a check
if it is not used in some route not related to the warehouse.
2015-03-06 11:06:38 +01:00
Wolfgang Taferner 6b1f475bb5 [FIX] Missing possibility to define a file_type on creation/write of a
document which leads to an error message in case the indexer could not
retrieve the content type automatically.
2015-03-06 10:10:41 +01:00
Josse Colpaert 872a80c419 [IMP] Stock: Not only service products can be invoiced after shipment, but also lines without product
Purchase lines or sale order lines without product should have the same behaviour
when invoicing based on shipments as those with services
2015-03-05 18:09:11 +01:00
Denis Ledoux 3508104c97 [FIX] web: autocomplete dropdown wrong initial position
This issue is related to
http://bugs.jqueryui.com/ticket/8656
http://bugs.jqueryui.com/ticket/8749
d693ce5324

When opening a form view, scrolling down,
and opening a many2one dropdown menu,
the dropdown menu wasn't directly under its input.
It could be really problematic when the menu was not even
visible on the current browser page (when you had to scroll down
a lot to access the many2one input).

The issue was resolved as soon as you opened the dropdown
menu a second time, and did not happen if you didn't scrolldown.
But, on initialization, the dropdown menu wasn't at the right position.

Fixes #5603
opw-629601
2015-03-05 17:23:41 +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
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
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
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
Raphael Collet 021c1a26c5 [IMP] fields: improve performance when reading many2one fields on records
Improve the performance of `name_get()` on many2one field values by making sure
that the records on which `name_get` is invoked are prefetched in cache.  This
is not automatic, because `name_get` is invoked on records in another
environment (sudo mode): the prefetching in the original environment should be
reproduced in the other environment.
2015-03-03 09:38:36 +01:00
Cédric Pigeon dc41a9b645 [FIX] sale_layout: invoice report
Put uos in same td tag than qty to avoid shift with header (one more cell)
Fixes #5515
2015-03-02 17:44:53 +01:00
Josse Colpaert 9284679abe [FIX] Add decimal precision on product template quantities fixes #5512 2015-03-02 17:18:13 +01:00
Antony Brugger 5d0d5ee233 Eezee-It signed CLA 2015-03-02 17:00:41 +01:00
FalcoBolger 714fe9135d [FIX] Signature on overriden fields_get method 2015-03-02 16:52:53 +01:00
Denis Ledoux c3f4ec856c [FIX] website_sale: keep attributes filter in pager
While having a product list with 20+ products,
If more than two attributes were set in the shop filter,
going to the next page kept only the first filter.

opw-629188
2015-03-02 16:44:24 +01:00
David Monjoie 71e4d7145b [FIX] Scaffolding: moved two files to better reflect the architecture we currently use for our themes 2015-03-02 16:38:35 +01:00
Aaron Bohy 9ebfa11b8c [FIX] Packaging, Scaffolding: template files extension
Add .template as extension of the template files because RPM packaging
produces an error when trying to compile the python template files,
which contains Jinja instructions.

Include *.template files in MANIFEST.in to package them.
2015-03-02 16:38:34 +01:00
Goffin Simon fc481c5e3a [FIX] website: quote slider not editable.
Quote slider must be editable when the snippet is dropped
in a page.

opw:628510
2015-03-02 16:25:58 +01:00
Yenthe 29cf197cfa [FIX] website_event: typo
compenents to components > Fixed the typo's.
2015-03-02 16:10:10 +01:00
Xavier Morel eb9c8912a9 [ADD] document --auto-reload
closes #5409
2015-03-02 15:24:38 +01:00
Sathors 1b6345f4f2 [ADD] doc: advanced options category including auto-reload.
So far there is no info about the "Advanced Options" category of the
--help.  Added only the --auto-reload, others can be added later.
2015-03-02 15:23:47 +01:00
Sathors f667e0ead7 Added the individual CLA 2015-03-02 15:19:02 +01:00
Josse Colpaert 84b47f62eb [IMP] Add already the possibility to fill in the products you want in an inventory
In order to do that, we change the theoretical quantity into a functional stored field.
Therefore the on_change changes, but the old still work.
The UoM of the inventory line is also taken into account

[IMP] Manual selection, no theoretical qty compute on import, comments
2015-03-02 14:09:16 +01:00
Josse Colpaert edaec21835 [IMP] Change order of search terms when creating domain for search qty, clean 2015-03-02 13:59:39 +01:00
Denis Michiels acbef5552d [FIX] stock: improvement search on product
- The search on qty_available is faster by looking only to the quants.

- Less SQL queries
2015-03-02 13:59:39 +01:00
Josse Colpaert d4152c2a40 [IMP] Optimize child_of with parent_left and parent_right
[FIX] Make sure it does not give errors on runbot by providing an alternative when parent_left would be zero
2015-03-02 13:59:39 +01:00
Denis Ledoux 19ce5932e2 [FIX] warning: stock picking warnings
Warnings on pickings no longer worked, while it was possible
to set them in the partner form.

The problem comes from the fact onchange_partner_in no longer exists
on the picking form, by default. It was therefore never called,
on the warning never displayed.

opw-628956
2015-03-02 12:11:29 +01:00
Andrius Preimantas 2bc75369dc Versada signing CLA 2015-03-02 11:52:06 +01:00