Commit Graph

93806 Commits

Author SHA1 Message Date
Nicolas Martinelli a4ef73fb09 [FIX] mrp: merge lines where products to consume are identical
Method action_produce does not support the case where the same product appears
on multiple lines. We do this to avoid major changes in a stable version.

opw-644093
2015-07-09 11:11:01 +02:00
Denis Ledoux 812318dcba [FIX] survery: access rights for invitations
When building a new suvery, and sending invitation
trough private emails, it wasn't possible
to fill the survey from the link sent
if you were not logged as the user who sent
the invitation, or as a survey manager

opw-644210
Fixes #7486
2015-07-09 11:01:14 +02:00
Lionel Sausin 5fcad55000 [FIX] stock_account: missing default filter for valuation menu
The menu entry in Warehouse > Current Inventory Valuation is a shortcut to the
same results as the wizard in Reports > Warehouse > Valuation. However when
using the "current valuation" menu entry, the list is given without grouping by
product and location, so it's basically just a glorified list of stock moves
that no Warehouse manager is going to understand.

Let's just add the same default grouping to let the results make sense.

Closes #7531
2015-07-09 09:29:18 +02:00
Martin Trigaux 45748bab59 Revert "[I18N] purchase: remove untranslatable term from .pot"
This reverts commit 905dd88ce4.
This fields contains the attachment name which do make sense to be translated
("PO" stands for "Purchase Order").
2015-07-09 08:58:51 +02:00
Goffin Simon c33f79ae3e [FIX] stock: _get_domain_locations function
To adopt the same behavior than location with warehouse in function _get_domain_locations.

opw:644219
2015-07-09 08:00:05 +02:00
andreparames 067fd2f342 [FIX] models: don't assume ids are ints in sorted()
Some models (e.g. calendar.event), use "virtual" ids which are not represented
as integers. It was not possible to use sorted method on those models as calling
int() is failing.

This commit fixes the method, making it agnostic to the type of the
'id' member variable.

Fixes #7454
2015-07-08 15:00:32 +02:00
Goffin Simon a35af81e6a [FIX] account_voucher: onchange_journal
In the "Pay invoice" wizard, the period doesn't have to be change when
the payment method is modified.

opw:643791
2015-07-08 14:30:56 +02:00
Denis Ledoux d08facdcb5 [FIX] website: the sitemap must be build with the public user
Otherwise, when accessing `/sitemap.xml` as SUPERUSER for instance,
pages not published were displayed in the sitemap.

opw-640673
2015-07-08 14:16:30 +02:00
Martin Trigaux 905dd88ce4 [I18N] purchase: remove untranslatable term from .pot 2015-07-08 13:59:42 +02:00
Guewen Baconnier 4fe0c6bd60 [IMP] account: updated index to optimize _default_get of account.move.line
A log analysis showed that the normalized query below was executed very often
with a slow explain plan using a seq scan.

```sql

SELECT move_id, date
FROM account_move_line
WHERE journal_id = <journal_id>
AND period_id = <period_id>
AND create_uid = <user_id>
AND state = 'draft'
ORDER BY id DESC LIMIT 0;

```

This query is called in the _default_get of account.move.line to find the last
unbalanced move line.

The existing index can be improved to cover this query as well, showing an
impressive improvement of the explain plan as explained here:
https://github.com/odoo/odoo/pull/7430#issuecomment-119521031

Closes #7430
2015-07-08 13:56:20 +02:00
Martin Trigaux d2e660b31d [FIX] purchase: field label
No need for uppercase, courtesy of Lionel Sausin.

Well, Clarice - have the lambs stopped screaming?
  -- Hannibal Lecter
2015-07-08 13:47:38 +02:00
Holger Brunn f204c76f23 [FIX] web: keep the context we got in Many2ManyDataset
This bug causes binary fields in many2many lists being presented as a data url,
even though bin_size is passed.

Closes #6966
2015-07-08 13:42:59 +02:00
Guewen Baconnier 26c7ea4de6 [REF] account_analytic_analysis: extract a method for preparing invoice lines
In recurring invoices from contracts. It allows to inherit and modify the
prepared values for the lines.

Closes #6822
2015-07-08 13:42:59 +02:00
Holger Brunn 1e8f8eabec [IMP] procurement, stock: make procurement.rule.name and stock.location.route.name translatable
Closes #4222
2015-07-08 13:42:59 +02:00
Guewen Baconnier 166839fb46 [FIX] l10n_ch: Link the taxes to the correct accounts
Fixes #4288
Closes #4300
2015-07-08 13:40:50 +02:00
Xavier Morel 5f768ed5b3 [IMP] doc: don't limit width of pages with code column 2015-07-08 13:06:11 +02:00
Xavier Morel c97cb35086 [FIX] doc: prevent compacting paragraphs with custom classes 2015-07-08 13:06:11 +02:00
Xavier Morel 9beaeddf60 [FIX] doc: new theme snags
* fix handling of no banner (and no default banner) on documents:
  - don't try to build a banner URL at the top of document
  - don't build a mini-banner in cards
* fix compatibility between custom HTML translator and domains creating
  new nodes (and their rendering): hook translator via
  app.add_translator so app.add_node can do the job correctly: with
  html_translator_class the application is not aware of the new HTML
  translator and add_node can't add the relevant rendering methods
* add translation for line_block and line (classes not used, point is
  just to have a div for each line so "newlines" are kept
2015-07-08 13:06:10 +02:00
Temur Vibliani 0eeab361d9 [FIX] tools: Added Georgian Language to the installable languages 2015-07-08 11:51:35 +02:00
Erwin van der Ploeg 91985d7eae [FIX] stock: visibility of "Recheck Availability"
If a picking is partially available and some lines are waiting another operation
2015-07-08 11:39:13 +02:00
Denis Ledoux f86d5870fc [FIX] res.country: Preferred address format
According to the USPS, separating the city name
and the zip code with a comma is acceptable,
but the preferred format omits the comma.

http://pe.usps.gov/cpim/ftp/pubs/Pub28/pub28.pdf

opw-644000
2015-07-08 11:13:46 +02:00
Goffin Simon e27d854801 [FIX] website_sale: delete console.log
Delete console.log introduced by 4d7671a4c3
2015-07-08 10:37:33 +02:00
Lionel Sausin 7fb37b3e89 [FIX] stock: missing default filter for quants menu
Most (if not every) other ways to open a list of quants has default filters to
include only internal locations.

Closes #7501
2015-07-08 09:30:33 +02:00
Goffin Simon 669948569b [FIX] website_sale: alternative products
Display correctly the alternative products

opw:643934
2015-07-08 09:11:01 +02:00
Nicolas Lempereur e33baecfa3 [FIX] osv: binary size already in human format
In version 8.0, postgresql's pg_size_pretty function is used
(http://www.postgresql.org/docs/9.4/static/functions-admin.html) when
getting the size of a binary field when reading if `bin_size`
or `bin_size_[col_name]` is set in the context.

So in 8.0 the size of a binary field get units bytes, kB, MB, GB and TB
which was not taken into account. e.g: '5.3 GB'.

This fix uses the size of the string to choose to differenciate the two.

e.g: '10000 bytes' (the longest size) will be returned directly, but
for something longer the human size of the content length will be
returned.

There is a corner case if a file is shorter than 12 bytes but
it is an enough of a small scenario with small implications that it is
deemed acceptable.

closes #7485
opw-644085
2015-07-07 19:17:43 +02:00
Christophe Simonis 2de301df24 [FIX] analytic: copy children accounts on copy. 2015-07-07 17:37:31 +02:00
Aaron Bohy a2650bdae2 [FIX] Packaging: Windows: pychart dependency
In 988baeb533, the pychart dependency has been updated for all distributions,
to use the python-chart library available with pip. However, for Windows, this
dependency should stay pychart as we do not use pypi to generate the Windows binary.
2015-07-07 16:44:03 +02:00
Xavier Morel 374dacf5e6 [FIX] doc: incorrect role syntax 2015-07-07 16:31:48 +02:00
Xavier Morel 41ee29119d [REM] doc: unnecessary sidebar title/heading 2015-07-07 16:31:48 +02:00
Nicolas Martinelli 24556120e7 [FIX] purchase: apply appropriate fiscal position when PO created automatically
When a PO is created automatically from a procurement, the fiscal position is
not chosen correctly. We need to choose the fiscal position in the same way if
the PO is created manually or automatically.

Follows commit 1062905acb

Fixes #3863
opw-643916
2015-07-07 16:08:11 +02:00
Christophe Simonis 00afd776fd [MERGE] forward port of branch saas-3 up to dbe60c7 2015-07-07 15:42:58 +02:00
Christophe Simonis dbe60c7bce [MERGE] forward port of branch 7.0 up to 3add4f6 2015-07-07 15:40:31 +02:00
Martin Trigaux 3add4f665c [FIX] tools: accept multilines on_change
Allow to write on_change on several lines (accepted by view parser but was not
by yaml parser, making false positive at 595216b)
2015-07-07 15:36:15 +02:00
Christophe Simonis acc7d20ea9 [MERGE] forward port of branch saas-3 up to ac865c8 2015-07-07 15:12:41 +02:00
Christophe Simonis ac865c8a78 [MERGE] forward port of branch 7.0 up to 9fa7624 2015-07-07 13:58:35 +02:00
EL HADJI DEM 076944cc3f [FIX] mrp_repair: display tracking warning only if lot_id not defined
Closes #6826
2015-07-07 12:47:13 +02:00
Leonardo Pistone 02ae76ce0b [FIX] account: type builtin used as a local variable
Close #6901
2015-07-07 12:47:13 +02:00
Nicolas Lempereur 0920c2fae0 [FIX] web: sort tree view by id
Previously, if the ID column was displayed it was not sortable.

The particular case added 247c1972 is no longer needed with the new api,
id is in the list of existing fields (see xmo comment in #7461).

closes #7487, closes #7461
fixes #7459
opw-644009
2015-07-07 12:32:38 +02:00
Max Hellwig be2efb207c [IMP] doc: add title to glossary.rst
New documentation theme prominently features the page title, which looks
terrible on pages missing one (appears as ``<no title>``).

closes #7392
2015-07-07 12:10:54 +02:00
J Bradshaw 2f7ab001e2 [IMP] doc: grammar and readability
Backport of most of #6827 by J Bradshaw with additional
modifications (and some reverts) during review.

closes #6827
2015-07-07 12:09:21 +02:00
Nicolas Martinelli 9fa7624e25 [FIX] stock: onchange_quantity and onchange_uos_quantity use rounding
It is necessary to round the quantities with the appropriate precision. Indeed,
since onchange_quantity and onchange_uos_quantity trigger each other indirectly,
it is quite easy to fall in an infinite loop if the uom and uos precisions are
different.

Follows commit 6e346f0adb

opw-643651
2015-07-07 11:25:19 +02:00
Xavier Morel 95e56a109d [ADD] doc: new theme
Pretty much completely rewritten theme with custom HTML translator and a
few parts of the old theme extracted to their own extensions.

Banner images thought not to be that huge after all, and not worth the
hassle of them living in a different repository.

co-authored with @stefanorigano
2015-07-07 11:22:50 +02:00
Nicolas Martinelli b4efb4eeb3 [FIX] web: on calendar with date and time, focus in the field only when hidden
The behavior of the datetime widget was to focus in the field every time a date
is chosen. This causes an issue if the datetime widget is called from an
editable list. Indeed, the list editable will consider that the value has been
set, and therefore the value will not be changed anymore if the user choses
another date.

The new behavior is to put the focus only when the date picker is hidden,
therefore the editable list will consider the value set only when the selection
is done.

opw-644062
Fixes #7463
2015-07-07 11:19:27 +02:00
Samus CTO 6490c62e5d [FIX] mail: backport of rev 752a07c to 8.0
[FIX] res.partner.find_or_create() should match using =like

Otherwise john@connor.com may match sarah.john@connor.com
2015-07-07 08:52:44 +02:00
Fabien Pinckaers fc58529616 testing commit fro mgithub 2015-07-06 18:18:08 -07:00
Lionel Sausin cdd023f8fc [FIX] delivery: grant stock workers permission to list carriers
Otherwise sotck users are not allowed to list the available carriers (e.g. when
creating a picking).

Closes #7299
2015-07-06 17:09:10 +02:00
Martin Trigaux 5e475f75de [FIX] stock: filter products on locations
Filtering product.product based on the location crashed due to fields_view_get
override exepecting an integer in the context.

Fixes #5164
Closes #5218
2015-07-06 16:28:48 +02:00
Loïc BELLIER 34b9f43011 [FIX] stock: add location in context on prodlot search
To be consistant with the results of _get_stock. Otherwise search made on
stock_available may not display results with the same value than the search
criteria.
Fixes #3976
2015-07-06 14:41:56 +02:00
Leonardo Donelli 207cf92a0c [DOC] openerp: add missing parameter for search method
The `search` method of models has an additional keyword parameter, `count`.

It not being specified in the docs could lead people to inherit `search`
without defining it, which would result in a `TypeError` when called with
`count=`.

Closes #7451
2015-07-06 14:26:46 +02:00
Nicolas Lempereur b5d7e663b4 [FIX] web: readonly field and tab
When we go from one field to another via the tab key, in the form view what happens is:

{{we get a blur from the current field}}
-> if [[widget was not in state clicked (which can be gotten for example by clicking on a focused field)]]
     -> blur event is cancelled,
     -> the blur event is set to be triggered soon
-> the clicked state is set to false

{{we may get a focus for the next field}}
-> if [next field get an onfocus event]
     -> blur event is cancelled,

So if :
- the state is not clicked and,
- the next field don't get an focus event.

We get a blur event which will either save (if a field value has been changed) or cancel
the form view editing and will hide the current edition, hence losing the focus.

For example, it happens on a readonly fields with  field containing an `<a />` tag, on
some browser (for example google chrome), the focus event will not get triggered (it still
work if we were in a clicked state) so we can't cycle thought a list editable cells if there is a readonly field in it.

closes #7446
opw-643718
2015-07-06 11:55:01 +02:00