Commit Graph

93730 Commits

Author SHA1 Message Date
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
Jos De Graeve baa51efdc9 [FIX] point_of_sale: do not create empty picking for order with only service products
When confirming a pos order with only "service" products, an emtpy pos order is
created which stays in "draft" state forever.

Closes #7460
2015-07-06 11:33:19 +02:00
Lionel Sausin (Numérigraphe) a55a768d61 [FIX] stock: colors in tree view
Missing part from e28e01a

Closes #6785
2015-07-06 10:07:59 +02:00
Odoo Translation Bot fe3835faff [I18N] Update translation terms from Transifex 2015-07-05 01:52:32 +02:00
Nicolas Martinelli 6e346f0adb [FIX] stock: product_uos_qty must have the precision of Product UoS
If 'Product UoS' has a higher precision than 'Product Unit of Measure', the
method onchange_uos_quantity will be called over and over by an infinite loop
if 'product_uos_qty' doesn't have the sufficient number of decimals.

opw-643651
2015-07-03 16:42:34 +02:00
Jos De Graeve 7771c45ed9 [FIX] sale: product_id_change ignores context
The product_id_change method of sale.order.line
ignored the passed context.

The context was simply overwritten,
which is no a good practice.

Besides, it prevents customizations.

Closes #7447
opw-643983
2015-07-03 16:38:12 +02:00
Nicolas Lempereur 880c997e12 [FIX] website_quote: take suggested product lang from partner
Use the lang from the sale order's partner when updating suggested
product line. To achieve this, the onchange has been replaced by an
onchange of the new api which gives access to all the fields.

closes #7268
opw-643098
2015-07-03 13:58:22 +02:00
Frédéric van der Essen fdb9aa29bf [FIX] base: verifying python external dependencies was failing on OSX. 2015-07-03 13:55:52 +02:00
Nicolas Martinelli 2a49c1a7fb [FIX] purchase: take into account the currency of unit price
The currency of the unit price of the stock.move is the currency of the
company, which can be different from the currency of the invoice.

opw-643077
2015-07-03 12:26:02 +02:00
Lorenzo Battistini 0f82346167 [FIX] email_template: keep email_from and outgoing server
When sending an email from mail.compose.message using a template, the system
should use the outgoing mail server associated to the template.
Introduce context hack to keep these values.

This should NOT to be forward ported to version 8 where a proper fix exists.

Fixes #3848
2015-07-03 12:21:53 +02:00
Wolfgang Taferner c776dce531 Revert "[FIX] product_extended: cost price computation from BOM"
This reverts commit 2f5d681135.

The previous commit was intended to fix a wrong assumption in case the
purchase uom was different to the standard uom.

The wrong assumption:
- price is related to purchase uom
- therefore it was tried to convert the bom price accordingly
- as the price needs to be already in standard uom it does lead to a
wrong calculation now

Closes #7421
2015-07-03 12:16:55 +02:00
Olivier Dony dc0e126b53 [FIX] hr_holidays: leave holiday overlap should ignore cancelled/refused ones
Obviously a cancelled leave does not really
overlap with a new one.

bzr revid: odo@openerp.com-20131023162928-56vdsjxr8sa4n3jv

Closes #2329
2015-07-03 12:07:47 +02:00
Goffin Simon 72ec0050b4 [FIX] account: bank statement reconciliation
To determine the account.move.line to reconcile, first it tries to match with
the ref and the amount of the account.bank.statement.line and if it doesn't match,
it just tries to match with the amount.

opw:643867
2015-07-03 11:55:46 +02:00
Nicolas Martinelli 1ab007a843 [FIX] mrp: fix issue introduced by rev b9cdce1
If copy=True for production_id, a move created from a push rule will be added
in the list of Product Produced. Therefore, we must set manually the value of
production_id of the scrapped moves.

opw-643877
2015-07-03 11:45:33 +02:00
Goffin Simon 3062b66d21 [FIX] mail: unknown icon
When the attachment type is not defined, the icon used must be unknown.png

closes#7336
2015-07-03 11:35:31 +02:00
Denis Ledoux 25d365ee69 [FIX] payment_authorize: adapt test for rev. 3375ff2827
Besides, the test was particularly useful:
It tested that when 'Buyer' was sent as firstname
and 'Nobert' as lastname to Authorize,
authorize returned the opposite, 'Norbert' as firstname
and 'Buyer' as last name.
2015-07-02 18:00:01 +02:00
Denis Ledoux 3375ff2827 [FIX] payment: By assumption, first name is before last name
In the partner model, there is only one field `name`.
The first name and the last name are not within two
separated fields.

By assumption, the firstname is written before the last name
(first <> last)

This assumption should be kept when sending the
first name / last name of the partner to the payment acquirers
e.g. Paypal.

opw-643120
2015-07-02 17:21:02 +02:00
Christophe Combelles 2c37f83435 [FIX] analytic: duplication of analytic lines
When duplicating analytic accounts, child accounts are duplicated as well.
The custom copy method removes the analytic lines but this applies only on the
first copy. As the copy_data method recursively copies child accounts, these
child accounts did not use the custom copy method but the basic copy_data.

Move to copy_data

Fixes #6368, lp:1149676
2015-07-02 16:54:46 +02:00
Jeremy Kersten f07be4b675 [REF] base, wesbite_crm: remove placeholder for phone
Some people visiting website doesn't understand that it's a
placeholder and call to Odoo because they see the number on the website.
2015-07-02 15:53:36 +02:00
Nicolas Martinelli e69a9b1ea8 [FIX] stock: modify default destination location for Pick
Ship in 2 steps:
The Packing zone location is inactive but it is used by default as destination
location (instead of Output) in the Pick operation.

opw-643734
2015-07-02 15:35:17 +02:00
Anaël Closson 6af7c636c2 [FIX] sale: cannot filter on paid = False
Closes #2211
2015-07-02 15:15:25 +02:00
Holger Brunn 0cffd6f825 [IMP] web: make many2many tags inline block without wrapping
Better look when using long words in tags

Closes #6963
2015-07-02 14:33:11 +02:00
Matthieu Dietrich f2c807d99d [IMP] account_report_company: performance on partner name_search
The field display_name is present in account_report_company but not in base
on the res.partner (has been added in v8 in base).
Create a hook method to keep using the slow CASE in base and switch to the
faster display_name when installing account_report_company.
2015-07-02 14:10:23 +02:00
Josse Colpaert ce0027a6d0 [FIX] stock_account: In stock valuation report, if all products real price, don't do the product history price query 2015-07-02 14:10:03 +02:00
Denis Ledoux 49cc4b9d4e [FIX] base: typoe, referencable -> referenceable 2015-07-02 12:59:36 +02:00
Jeffery Chen Fan 50d714959e [FIX] mrp_operations: convert date_finished into datetime object
Closes #7408
2015-07-02 12:26:00 +02:00
Mario Arias Badilla b02afebd1e [FIX] point_of_sale: payment date take into account user tz
When you apply payment in POS,
it takes current time for "date" field
on bank statement line,
but should use context_timestamp to take care
of user timezone adjustments.

Example:
If user is in time zone GMT-6:00,
then after 6:00pm all bank statement lines will be recorded
with date of next day, and all closing reports and related
accounting will be wrong!

Fixes #2199
Closes #2200
2015-07-02 01:56:25 +02:00