Commit Graph

93707 Commits

Author SHA1 Message Date
luistorresm 01e4b76f65 [FIX][sale_stock]Added validation in get_partner_to_invoice, to only check sale.orders when the picking that call this method coming from a sale.order 2015-07-01 08:26:06 +02:00
Denis Ledoux fcc2852a27 [FIX] stock, jit: run isn't supposed to be called without jit
This is related to ddfc07a6a2.

If procurement_jit_stock is not installed,
the method `run` of `procurement.order` is not
supposed to be called
2015-06-30 18:34:03 +02:00
Denis Ledoux 3378e6212b [FIX] stock: `stock.move` `action_confirm` without context passed 2015-06-30 18:07:17 +02:00
Denis Ledoux ddfc07a6a2 [IMP] stock: run all procurements together on moves confirmation
On moves confirmation, multiple procurements can be created
and ran.

For performance concerns, we now run all procurements together.

opw-643560
2015-06-30 17:24:24 +02:00
Denis Ledoux 7d01029320 [FIX] stock: computation fields depending on `_get_pickings`.
This revision is related to 279f225cf0.

`_get_pickings` is used as trigger store method
for several computation fields.

The trigger restriction applied in the above commit should
only be applied on the `min_date`, `max_date` and
`priority` fields.
2015-06-30 14:38:49 +02:00
Denis Ledoux a4aa4e5c75 [FIX] stock: product_qty compute field priority.
This rev. is related to 279f225cf0.

The `product_qty` computation priority should be
important, as other compute fields depends on it
such as `weight` and `weight_net` from the
delivery module
2015-06-30 14:36:47 +02:00
fclementic2c 8656b64e75 [FIX] l10n_ch: corrections on customs vat + clean-up + add extra included VAT
Closes #6446
2015-06-30 14:27:58 +02:00
Temur Vibliani 99b7a6e7a1 [FIX] product: fake error log from product.template
Disabled fake error log from product.template.create_variant_ids() function.

Closes #7182
2015-06-30 14:07:30 +02:00
kmatitaishvili 1f684b6447 [CLA] Delta-comm
Closes #7368
2015-06-30 14:07:30 +02:00
Daniel Reis 8880edd4fb [FIX] cli: start command path option does not work
Using the `start` CLI command with the `--path` or `-p` option arrors with:

    odoo.py: error: no such option: --path

This is because the `--path` option is passed on the server start routine,
and it's invalid there.
A workaround is to remove those command options from the arguments passed
to the main() server start.

Closes #5896
2015-06-30 13:57:14 +02:00
Christophe Simonis 066e41b63d [MERGE] forward port of branch saas-3 up to 31f2a1b 2015-06-30 13:33:35 +02:00
Denis Ledoux 279f225cf0 [IMP] mrp, stock, stock_account: compute stored fields trigger
This is a performance revision.

Some stored functions field were recomputed uselessly.

In mrp, `hour_total` and `cycle_total` were recomputed
at each write on `mrp.production`, while they should be recomputed
only when there is a change on the `workcenter_lines` field,
or when there is a change in the `hour` or `cycle` field
of these `workcenter_lines`.

In stock, `min_date`, `max_date` and `priority` of
`stock.picking` were recomputed each time a new move
was added to the picking,
wether or not the 'expected_date' of this move
was between the `stock.picking` `min_date` and `max_date`,
and the priority not greater.

In stock, `product_qty` of `stock.move` was recomputed
at each write on the `stock.move`, while it should be
recomputed only when there is a change in `product_id`,
`product_uom` or `product_uom_qty`, as the computation
method only depends on these three fields.

In stock_account, the `invoice_state` of `stock.picking`
was recomputed each time a new `stock.move` was associated
to the picking, wether or not the `invoice_state` of the move
was already the same than the `invoice_state` of the picking.

opw-643560
2015-06-30 13:12:37 +02:00
Christophe Simonis 31f2a1bc38 [MERGE] forward port of branch 7.0 up to 1c0bc7c 2015-06-30 12:47:27 +02:00
Nicolas Martinelli 95f49eadc1 [FIX] account: consistency on the allowed precision
This fixes 2 issues.
First, it keeps consistent the precision required for posted entries and the
precision for the balance assertion. This could be an issue if the account
precision is larger than 4.
Then, it makes sure to round the amount with the appropriate precision to avoid
numerical errors. For example 1.2344 - 1.2345 = -9.999999999998899e-05, which
is indeed smaller than the required precision 10 ** -4.

A minimum precision of 10 ** -5 is kept for historical reason.

Fixes #7276
opw-643305
2015-06-30 12:46:30 +02:00
Nicolas Martinelli f498583a98 [FIX] mail: make sure to send bouncing email even if the mail is a direct reply
This could happen if a partner is removed from the list of followers.

opw-633988
2015-06-30 12:39:03 +02:00
bevanweiss 6ceb41dae4 [CLA] Bevan Weiss 2015-06-30 12:21:22 +02:00
Jeremy Kersten 02d3e703a2 [FIX] website_sale: fix ga Ecommerce statistics
Name from product was missing / confusing with category name
https://developers.google.com/analytics/devguides/collection/gajs/methods/gaJSApiEcommerce
2015-06-30 09:44:01 +02:00
Nicolas Martinelli 9334645f82 [FIX] MANIFEST: alphabetical order is better :-) 2015-06-30 08:30:36 +02:00
florent.thomas f3298eb16e [FIX] MANIFEST: add the mp3 file in manifest
Necessary to include the mp3 files in the rpm package

Closes #7352
Fixes #6356
2015-06-30 08:24:16 +02:00
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