Commit Graph

92746 Commits

Author SHA1 Message Date
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
Julien Legros 9339f1bfb1 [IMP] sale: quotation confirmed mail subtype defaults to False
This reverts commit 0130ce4e84.
2015-03-02 11:06:32 +01:00
Josse Colpaert 50fc06e275 [IMP] Fasten up procurement JIT in v8 already 2015-03-02 09:41:19 +01:00
Nicolas Lempereur 85ede15793 [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-02 09:11:13 +01:00
Goffin Simon 631d2f7146 [FIX] purchase: pricelist and related currency mismatch on purchase order (Bid received).
pricelist must be readonly when currency is readonly because there 's an onchange on currency which depends
on the pricelist.

opw:627009
Fixed #4598
2015-03-02 08:44:45 +01:00
Leonardo Pistone ddb900c7c5 [FIX] product: demo data irrelevant product description
Closes #4735
2015-03-01 03:34:00 +01:00
Cédric Pigeon cf2b1143dc [FIX] hr_timesheet_invoice avoid empty returns in invoice line description
Closes #5242
2015-03-01 02:42:40 +01:00
Ravi Gohil 04de292885 [FIX] http: support old version of psutil
Add support for older versions of psutil (<1.2.0). Only used when
debug_rpc is enabled.

Closes #5108, #5163
2015-03-01 02:17:04 +01:00
Daniel Reis ccf021938d [FIX] auth_ldap login when password is unicode
python ldap library api is str based, assume utf-8 encoding for non-ascii
chars.

Closes #5376 lp:1079476
2015-03-01 02:06:54 +01:00
Antony Lesuisse e5a94f74aa [CLA] mailmap update 2015-02-28 17:58:22 +01:00
Simon Lejeune 1f8c8d6dd5 [IMP] doc: install: advised wkhtmltopdf version
Also redirect to our builds of wkhtmltopdf 0.12.1 for debian jessie, as
the wkhtmltopdf team does not provide one.
2015-02-27 18:41:32 +01:00
Christophe Simonis 128de187a3 [FIX] web: KanbanSelection and Priority widgets
Use directly datarecord id instead of previously stored value which may
not be up to date.
2015-02-27 17:18:06 +01:00
Samus CTO fb285d8695 [FIX] prevent unneeded chmod datadir, but check writable 2015-02-27 17:16:16 +01:00
Christophe Simonis e6396deb4e [IMP] models: log source when "Comparing apples and oranges" 2015-02-27 15:57:13 +01:00
Denis Ledoux b11c49d6f6 [FIX] sale: sales team amount invoiced exclude purchases
This is possible to assign a sales team to a supplier invoices
Supplier invoices must be rejected in the invoiced count
of sales team (in the kanban view of sales team).

The invoiced amount must be the customer invoices amount minus
the customer refund invoices amount

opw-629105
2015-02-27 15:44:40 +01:00
Xavier Morel 4bd2ee1aaa [FIX] undefined variable
Variable was added to an error message, then inlined in only one of the
two callsites. Undefined variable error would only appear when an error
is triggered in the actual (postgres-level) backup call.

inserted in ec9a543

fixes #5241
2015-02-27 15:07:15 +01:00
Xavier Morel 68f14c6870 [FIX] handling of big fields in CSV
fixes #2742
2015-02-27 14:11:21 +01:00
vnsofthe 05905b794e [FIX] mrp: xmlid of Manufacture route
Is present in mrp and not stock module.
2015-02-27 17:57:50 +05:30
vnsoft 816faf133b Sign CLA agreement for vnsofthe 2015-02-27 17:57:50 +05:30
Toilal 2e9e100d20 [FIX] Packaging: include all files from scaffold templates in MANIFEST.in
closes #5393
2015-02-27 12:04:08 +01:00
Simon Lejeune eaf25908f1 Merge pull request #5495 from leorochael/8.0
Avoid pip re-downloading PyChart
2015-02-27 10:24:34 +01:00