Commit Graph

93788 Commits

Author SHA1 Message Date
florent.thomas 9805160530 [CLA] Florent Thomas 2015-06-30 08:24:12 +02:00
Jonathan Nemry 714635fa19 [FIX] hr_timesheet_sheet: set hr_timesheet view 'editable="bottom"'
Timesheet tend to have a lot of lines, so this avoids the user to scroll up and
down when adding entries.

Closes #5769
2015-06-29 23:13:31 +02:00
Mohammad Alhashash 83282f2dea [FIX] models: Escape `%` characters from error messages of a failed import
To prevent susbtituion exception when creating use error message
e.g. No matching record found for external id 'fo%o' in field 'Bar'
Fixes #5933
2015-06-29 16:50:33 +02:00
Martin Geubelle 20dcea3be3 [FIX] hr_gamification: user_id not required
Revert the modification from commit 8ae67f6a54 ; it appears that the test of required field is done before the computation of the related field and that leads to a Validation Error.

As the field employee_id is already required and the user_id is related to this field, the attribute required is redundant and unecessary.
2015-06-29 16:20:03 +02:00
Martin Trigaux 1c0bc7cc16 [FIX] server: backport of 3940a096 on psutil
psutil 3.0 removed get_momory_info method
create wrapper method for backward compatibility
2015-06-29 16:09:42 +02:00
Nicolas Martinelli 589f1efd5d [FIX] account: user of the analytic line should be the salesperson of the invoice
Fixes #7259
opw-643262
2015-06-29 15:04:13 +02:00
Max Hellwig 10e4a98b89 [FIX] report: prevent overlapping of tbody rows with header part
Implementation of this reported workaround for wkhtmltopdf:
https://github.com/wkhtmltopdf/wkhtmltopdf/issues/1524
2015-06-29 15:02:15 +02:00
Max Hellwig 282ecc2898 [CLA] Max Hellwig 2015-06-29 15:02:15 +02:00
SauliusZ 0d3a8de756 [CLA] adding SauliusZ and via_laurea corporation 2015-06-29 14:14:31 +02:00
Pedro M. Baeza ab00527f07 [FIX] mass_mailing: deferenciate action buttons behaviour
The 5 buttons were actually executing the same action, make them filter
according to the label of the button.
Fixes #6147
2015-06-29 12:08:46 +02:00
Nicolas Martinelli ec9702d7ff [FIX] purchase: take into account origin_returned_move_id in case of in_refund invoice
When we return goods and a refund is created, we check the purchase order
linked to the original move. Therefore, the appropriate currency and unit
prices will be chosen.

opw-643085
2015-06-29 11:52:27 +02:00
Ludwik Trammer e9c5da3524 [FIX] auth_signup: translate exception
The exception raised when resetting the password must be translated.
2015-06-29 11:29:30 +02:00
Ludwik Trammer ece10c3401 [CLA] Ludwik Trammer 2015-06-29 11:29:30 +02:00
Goffin Simon 7863e04f42 [FIX] website: Add pictogram
When adding a pictogram to a page, the save button didn't automatically close the opened dialog.

opw:642944
2015-06-29 10:23:37 +02:00
Stéphane Bidoul 63aed83637 [FIX] l10n_be: missing mappings of accounts to financial report
Closes #1250
2015-06-29 10:11:02 +02:00
Goffin Simon 56d832dbc5 [FIX] point of sale: rounding globally
The price without taxe must be rounded on each line like 'price_subtotal' in "sale.order.line"
with digits_compute= dp.get_precision('Account').
The total taxes included must be the sum of the rounded total without taxe and
the rounded taxes like in "sale.order" in _amount_all.

opw:643254
2015-06-29 09:02:10 +02:00
Odoo Translation Bot acc1b525fa [I18N] Update translation terms from Transifex 2015-06-29 08:42:08 +02:00
Daniel Dico a0797d3b35 [IMP] purchase: method action_picking_create return picking_id
Returning `picking_id` can be useful for overrides.

In addition, when there is no return statement,
the method basically returns None.
As this is a public method (not beginning with '_'), it can
be called with an xmlrpc call, and `None` is not an
accepted return value for the xmlrpc protocol.

Closes #1714
2015-06-26 15:56:42 +02:00
Daniel Dico 6f60153e5d [IMP] account: useless records browsing
A variable "lines" is instancied few lines above,
with the exact same browse call, and there is no
operation that could lead to an update of the result
between these two browse calls.

Closes #1394
2015-06-26 15:56:17 +02:00
Daniel Dico 08b85e5821 [CLA] OERP Canada 2015-06-26 15:55:41 +02:00
André Paramés 7e0ed740f3 [FIX] mail_thread: correctly handle single id argument in `unlink`
fixes #1721
closes #1723
2015-06-26 15:25:02 +02:00
Denis Ledoux 5387676399 [FIX] sale: "Quotation confirmed" for sales order invoiced on delivery order
When confirming a sales order with invoicing control
based on "Delivery order", confirming the quotation
didn't post the "Quotation Confirmed" message
subtype in the sales order thread.

opw-642744
2015-06-26 15:07:45 +02:00
Xavier Morel f5b88f6309 [IMP] minor perf improvement during tests
During tests, some creation of user records would unnecessarily trigger
password reset or set a password, both of which would trigger password
hashing which takes some time (for good reasons).

Fix by:
* passing no_reset_password in YAML tests and some Python tests still
  missing it (a number of Python tests already used it)
* removing passwords from YAML records as they're never necessary, the
  test user records are not expected to ever log in
2015-06-26 14:22:29 +02:00
Tam Vu 6cb3fe43ed [FIX] point of sale: order undefined
If the line is linked to an order, this line must be removed in this order.
2015-06-26 14:02:59 +02:00
Tam Vu 6d5f5f4470 [CLA] vuamitom 2015-06-26 14:02:58 +02:00
andrius-preimantas 831fbd01f7 [FIX] stock: incoming shipments should be marked red when late
Incoming shipments are marked red according to creation date which does
not really make much sense.

closes #1061

note: it was already like this in 8.0 with 201f1c323
2015-06-26 13:48:40 +02:00
Denis Ledoux bae35b20dd [FIX] mass_mailing: model declaration order
mail.mass_mailing.contact needs the model mail.mass_mailing.list
to be defined before itself, as some fields
need this model.

opw-643482
2015-06-26 13:47:31 +02:00
Denis Ledoux b6a580a25d [FIX] google_calendar: wrong timezone
When creating an event in at 4 pm,
while being in UTC +2 (Europe/Brussels),
The start date sent to Google was set as
'2015-07-03T16:00:00+02:00',
but the timezone was described as 'UTC', giving
therefore giving contradictory information.

At the end, in the google calendar,
the event was set in the UTC timezone,
while it should have been set in GMT +2 (Europe/Brussels).

opw-640825
2015-06-26 11:37:51 +02:00
Stéphane Bidoul (ACSONE) 4213eebe2e [FIX] point_of_sale: correctly split workds in product search
The JS replace method, unlike python's, only replaces the first occurence
unless a search pattern is provided.

Closes #6302
2015-06-26 08:51:25 +02:00
Nicolas Martinelli a197c91458 [FIX] account: remove lang from context before move creation
If an error message pops up during the move creation, we have to take the
user's language and not the partner's language.

Fixes #6902
Closes #6903
2015-06-26 08:41:10 +02:00
Nicolas Bustillos 745e4426b4 [FIX] account_voucher: reset amounts to zero when looping over many voucher's writeoff_amount
When column 'writeoff_amount' gets displayed on a tree view and function
_get_writeoff_amount() is called with multiple ids, the returned amounts keeps
getting bigger every row.

Closes #7211
2015-06-26 08:32:53 +02:00
Carlos Alberto Cipriano Korovsky 36c283fec1 [CLA] Add UKTech (Uhlig & Korovsky Tecnologia Ltda) CLA 2015-06-26 08:29:09 +02:00
Nicolas Bustillos aaf5231358 [CLA] Correct email Nicolas Bustillos 2015-06-25 20:17:06 +02:00
Developer Team bf0630e427 [FIX] tools: add support for transparency of PNG images
Fixes #2569
Closes #6260
2015-06-25 18:51:03 +02:00
Lionel Sausin (Numérigraphe) 117238fcc1 [IMP] stock: Make the description of the UoS feature not misleading
The description was misleading because
sales and invoices are using the UoS quantity.

It's actually the WMS that does not use it.

Closes #1413
2015-06-25 17:23:29 +02:00
Nicolas Piganeau 7f80e57818 [CLA] Changed email address Nicolas Piganeau 2015-06-25 16:34:24 +02:00
Nicolas Martinelli cd9a5a5eb9 [FIX] payment_ogone: convert date received by Ogone
Ogone sends back the date with format MM/DD/YY
See https://secure.ogone.com/ncol/param_cookbook.asp

opw-642757
2015-06-25 16:13:36 +02:00
Denis Ledoux ba46732744 [FIX] delivery: allow carrier with 0.0 as normal price
Before this rev.,
if you define a carrier
 - without advanced price rules
 - with a normal price set to 0.0
 - Free if more than amount unchecked

When you try to invoice a delivery order
(coming from a sales order with as invoicing policy
"on delivery order)
No grid was found, while there was one, with as price 0.0

Closes #1364
2015-06-25 14:53:02 +02:00
Martin Trigaux a6b5290b79 [I18N] analytic_user_function: remove on_change terms
This should have never been in .pot file.
Do your job Transifex source file watcher thingy!
2015-06-25 12:22:55 +02:00
Robin Lucbernet 8ab6865849 [FIX] delivery: delivery_set returns a result
The delivery_set() method has no return statement.
Calling this method through xmlrpc produce an error since None is not valid.

Closes #1033
2015-06-25 12:02:25 +02:00
Robin Lucbernet 384b60b3c7 [CLA] META-IT 2015-06-25 12:02:25 +02:00
Goffin Simon a3fbc2da86 [FIX] point of sale: rounding globally
The amount total computed for pos order must be the sum of the rounded tax amount
and the rounded untax amount. Inspired from _amount_total in "sale.order".

opw:643254
2015-06-25 11:52:05 +02:00
Stefan Rijnhart 33a65c2b8e [FIX] web: binary fields in one2many widgets
Don't retrieve the binary contents just to display the size, but pass context
with bin_size=True instead
Always pass filename in download link

Combination of patches from the bug report from Enrico Ganzaroli, Cedric Le
Brouster and Holger Brunn
Fixes #4899, lp:1167429
2015-06-25 11:45:47 +02:00
Xavier Morel d1a19bcb7f [IMP] base: performances of view._check_xml
View validation accounts for a fair cost of module installation, most of
that is spent checking for view validity, and a significant fraction
of *that* is spent reading the validated view from the DB.

Turns out _check_xml requested *all* view fields even though it needed
none of them save for the arch. Specifying fields to read_combined
rather than fetching all fields seems to result in a ~30% speedup of
_check_xml (under line_profiler). Most of the rest is spent fetching
sub-views (in get_inheriting_view_arch), I don't know that it can be
improved without hand-crafting a fairly complex SQL request.
2015-06-25 10:39:55 +02:00
Xavier Morel 443c38dbc0 [IMP] product: fnct_inv of image variant
Doesn't seem to have much effect, but it's probably still better to not
have 3 UPDATE run every time we create a new product.product.
2015-06-25 10:39:31 +02:00
Miku Laitinen f5dd09dd84 [ADD] base: Finnish address format 2015-06-25 08:47:05 +02:00
Joao Alfredo Gama Batista c3ca61da9e [IMP] sale_stock: add reference to product
Avoids incompatibility with modules that make reference a serial field.
2015-06-24 19:43:01 +02:00
Stéphane Bidoul da9d1a8c45 [FIX] account_budget: support view and consolidation children in budget positions
In account_budget module,
when creating a budget position,
the user can select view accounts and also accounts with consolidation children,
in addition to normal accounts.

However, when viewing budgets with positions containing only view accounts,
the "practical amount" field was always zero.

Since these type of accounts are accepted as budget positions,
the system should take into account children and consolidation children
when computing the practical amount.

Fixes #372
Closes #1247
2015-06-24 18:21:11 +02:00
Laetitia Gangloff 1511e788cf [FIX] fields: error if there is no value when convert a many2many relation
Closes #1165
2015-06-24 16:52:05 +02:00
StefanRijnhart 727f9056a3 [FIX] web: wrong company logo in multi-company env
Don't preload company logo of the wrong company

When a user other than the admin signed in
and was in a company different than the admin
and this company had a different logo,
the company logo (in the upper left corner)
displayed the logo of the admin company,
instead of the logo of the company of this
user.

As soon as the user refreshed the page
in his browser, the issue was resolved,
but the logo should be the good one
from the beginning.

Closes #1453
2015-06-24 15:04:11 +02:00