Commit Graph

93707 Commits

Author SHA1 Message Date
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
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
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
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
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
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
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
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
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
andreparames dae0d407c0 [ADD] base: LGPL as possible module license
Keeping in mind than the AGPLv3 core still propagates the license to other
modules.
Fixes #6914
2015-07-02 11:50:40 +02:00
Josse Colpaert 27003621da [FIX] stock_landed_cost: what is already out should use different accounts
When a landed costs is applied on goods that are already out, these landed
costs need to be subtracted in the stock valuation account and added in the output account.
(they were just added before)

When the landed cost is negative, it needs to do the opposite for what is already out also.
2015-07-02 11:34:31 +02:00
Antonio Espinosa c65fe46569 [FIX] base: runtime error in address_get if ids is empty
Closes #7359
2015-07-02 11:23:34 +02:00
Alexis de Lattre cee6ed33ac [IMP] point_of_sale: add 'name' of res.currency in pre-loaded fields
Fixes #7367
2015-07-02 10:57:51 +02:00
Goffin Simon 998ea74c64 [FIX] website_blog: public user comments
When the public user comments the website, he will be redirected
to the login page and his comment will be posted with his logged
user name.

opw:643412
2015-07-02 10:44:50 +02:00
谢立 8fe042ea91 [FIX] hw_escpos: xmlescpos add cp936(GBK) encoding support
Add support for Chinese fonts by adding the cp936(GBK) encoding

Closes #6845
2015-07-02 10:43:21 +02:00
mrshelly eb315ac330 [CLA] mrshelly 2015-07-02 10:43:21 +02:00
Goffin Simon 6531f4063a [FIX] stock: origin of push picking
To determine the origin of a push picking.

opw:641887
2015-07-02 09:20:47 +02:00
Olivier Dony 22bd3bdd2f [FIX] website_google_map: avoid errors in json serialization 2015-07-01 17:59:23 +02:00
Olivier Dony e3bd2a5914 [FIX] web_calendar, website: avoid rendering errors with special characters 2015-07-01 17:58:28 +02:00
Pedro M. Baeza d0735fc557 [FIX] procurement_jit_stock: don't lose autocommit parameter
run method in procurement as the positional parameter autocommit that was not
kept in procurement_jit_stock which may introduce issues in override
2015-07-01 17:41:32 +02:00
Martin Trigaux 2758aaa6f8 [IMP] models: sanitize error messages in import
Revert 83282f2d for a cleaner sanitizing earlier in the generation of the error
message.

If the import is failing, the error message contains the value that is
problematic. Escape this value in case it contains '%'
2015-07-01 17:04:48 +02:00
Alexandre Fayolle 988baeb533 [FIX] setup: use pypi version of PyChart
PyChart 1.39 is available on pypi.python.org, use it
in dependency specs instead of the direct link to
unreliable download.gna.org

Closes #6781
2015-07-01 16:04:15 +02:00
Denis Ledoux bdf980e4b4 [FIX] stock_account: stock valuation report without result
This is related to rev. 55b7f15ee2

Prevent crash when there is no line to display
in the stock valuation report
Reporting > Warehouse > Stock Valuation.

Like when there is not yet any data, or the filter gives no result

opw-643748
2015-07-01 15:59:51 +02:00
Dušan Laznik 49f2514a9d [CLA] mentis
Received by email on June 30th 2015
opw-643688
2015-07-01 15:24:03 +02:00
Denis Ledoux 78568b59ab [FIX] hr_timesheet_invoice: invoice tasks without factor customer_name
In Project > Invoicing > Invoice Tasks,
When selecting several lines to invoice,
with a factor (`to_invoice') without `customer_name`

opw-643794
2015-07-01 14:36:56 +02:00
Raphael Collet 0939738479 [IMP] fields: speedup of `convert_to_cache` for x2many fields
The algorithm's complexity changed from O(n²) to O(n).
2015-07-01 13:49:14 +02:00
Olivier Dony 9e8d29c986 [FIX] project_timesheet: analyis view must include lines without timesheet
While working on project task it is possible
to record "task work" that will automatically
create timesheet lines. These are not by default
included into any timesheet, but they need to
appear in reporting nonetheless.

These lines disappeared from the analysis view
after the performance improvement of
rev. fe31451899
which introduced a JOIN with the `totals`
CTE table - and should have been LEFT JOIN.
2015-07-01 12:48:59 +02:00
Denis Ledoux 3aae56582a [FIX] account: general ledger & trial balance report from accounts list
When printing these reports from the accounts list
Accounting > Configuration > Accounts > Print menu > General Ledger
the ID of the wizard was considered as the ID of an account,
leading to obvious issues when this ID wasn't available
in the account_account table, or when the user
do not had the access rights to see the accounts with this
ID.

The override was completely useless: The wizard is
launched whether you print these reports from
Accounting > Reporting > Legal reports > Accounting Reports
or from the accounts list, and the super _get_account can
be called correctly for these two use cases.

opw-643589
2015-07-01 11:06:21 +02:00
Briksisn 29582605d1 [CLA] Syncordia 2015-07-01 09:24:19 +02:00
Goffin Simon 60c94c7c42 [FIX] project: Working Time Progress
The precision of the field 'hours' in project.task.work and the precision of
'remaining_hours' are not the same. This is why the difference between them can
generate some very small negative difference which implies an infinite percentage for
the working progress time.

opw:643649
2015-07-01 08:55:10 +02:00