Commit Graph

93610 Commits

Author SHA1 Message Date
Daniel Dico 08b85e5821 [CLA] OERP Canada 2015-06-26 15:55:41 +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
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 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
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
Jos De Graeve 3abd451aca [FIX]point of sale: passing analytic account
In the method action_invoice, the call to the method "_prepare_analytic_account" in dict "inv_line"
had no effect because the value of account_analytic_id was being cleared by the product_id_change statement.
So in the end the invoice line was created without any account attached
Now it checks for an existing value, and if it is not already filled in,
the value from  _prepare_analytic_account is taken.
2015-06-24 13:55:32 +02:00
Endika Iglesias 765cd3fbec [CLA] Endika Iglesias 2015-06-24 13:37:02 +02:00
Christophe Simonis b8bf1e0905 [MERGE] forward port of branch saas-3 up to ea659cb 2015-06-24 12:37:08 +02:00
Christophe Simonis ea659cbd87 [MERGE] forward port of branch 7.0 up to 16a545b 2015-06-24 12:34:03 +02:00
mariuszmizgier 859eb2511e [FIX] mail: Mail message performance improvement
As of version 8.0, search_count method has been implemented
Usage in this place is not needed though,
as we just need to know if there are messages in domain,
not the exact number of them.
Due to that we replace method search_count with search and add a limit of 1,
which provides better performances.

Fixes #6670
Closes #6679
2015-06-24 12:12:19 +02:00
mariuszmizgier bdc4c5a55e [CLA] Mariusz Mizgier 2015-06-24 12:12:19 +02:00
Peter Alabaster e17166183d [FIX] sale: pass context when creating Sale Order name
Without passing the context, this is not possible
to force the company (`force_company`)

Closes #7242
2015-06-24 11:38:41 +02:00
Christophe Combelles 16a545b1ba [ADD] project: add name to the filter to create context with search_default_Member 2015-06-24 10:03:08 +02:00
pmhmcbreen@gmail.com d0952f5ad3 [CLA] Mark McBreen 2015-06-23 17:55:22 +02:00
Mathias Colpaert 190cea8b66 [CLA] Mathias Colpaert 2015-06-23 17:47:57 +02:00
Erno Iipponen 332772a516 [CLA] Avoin.Systems corporate 2015-06-23 17:47:57 +02:00
Miku Laitinen 209d1084a3 [CLA] Miku Laitinen / mlaitinen 2015-06-23 17:47:57 +02:00
oihane d1ebc08813 [CLA] Oihane Crucelaegui 2015-06-23 17:47:57 +02:00
Mariano Baragiola b7c206f320 [CLA] Mariano I. Baragiola 2015-06-23 17:47:57 +02:00
Sergio Teruel Albert 48fc0d6577 [CLA] sergio-incaser 2015-06-23 17:47:57 +02:00
Ray Carnes eef4595305 [CLA] Ray Carnes 2015-06-23 17:47:57 +02:00
Ernst Mayerhofer a7cd679d9b [CLA] h4mmersmith 2015-06-23 17:47:57 +02:00
Julien Legros 1c0f0dd43c [FIX] account: multi currency reconciliation
When invoicing in currency A and being paid in currency B, the exchange
rate between those currencies might differ between the invoice date and
the payment date.

When reconciling, invoiced amounts should be converted using the invoice
date exchange rate.

opw-640248
2015-06-23 17:27:07 +02:00
scosist dc71dbb40e [CLA] asphalt-zipper 2015-06-23 17:26:30 +02:00
stijnh92 6e805e9464 Create dynapps.md 2015-06-23 17:23:37 +02:00
Nicolas Bustillos f270d6f3e3 [CLA] Nicobustillos 2015-06-23 17:21:15 +02:00
luc-demeyer a4cdee1267 [CLA] Noviat 2015-06-23 17:19:19 +02:00
vrenaville 529af0c95d [FIX] VAT Report: Fiscalyear and period selection
In the Account Tax Decalaration wizard,
Accounting > Reporting > Generic Reporting > Taxes > Taxes Report,
When not choosing the start/end period, but choosing
a fiscal year, the fiscal year was simply ignored,
the report took a fiscal year randomly.

In addition, if no fiscal year was chosen,
the fiscal year randomly chosen could even
not be a fiscal year of the right company,
in a multi-company environment.

closes #7219
opw-643194
2015-06-23 17:06:25 +02:00
Xavier Morel 11ba4689b1 [IMP] running speed of some tests & new testcase type
Some tests (e.g. mail) have expensive and significant DB setup for a
number of small and cheap tests. Using a TransactionCase, the DB setup
far dominates the tests themselves, by up to 10x (mail unit tests take
~130s on my machine, the tests themselves take ~15s).

The SavepointCase introduced here is an hybrid of SingleTransactionCase
and TransactionCase: it uses a single transaction for all tests in a
class, but each test case is isolated by a rollbacked savepoint. This
allows a common DB setup (via setUpClass) while keeping independent
tests.

TransactionCase should remain the primary test case superclass, but
SavepointCase can be a fair optimisation when setup costs far dominate.
2015-06-23 16:38:14 +02:00
Denis Ledoux 386f76eb46 [FIX] account: get_fiscal_position is expected to return an id
Not a browse record.
This is a regression introduced by the revision 5fcf0f5a6f

opw-643188
fixes #7231
2015-06-23 16:29:55 +02:00
Martin Trigaux fa3ace7f99 [IMP] account: performances on total_invoiced field
The computation of total_invoiced field was very slow when the size of
account.invoice.report grows. This is due to usage of the field
user_currency_price_total that requires to build the full view (generates query
(id in []) for function field).

Using temporary SQL view (inspired by caf333e), directly filter the needed
items and avoid building the full table.

Fixes #6654
2015-06-23 16:18:24 +02:00
Wolfgang Taferner 0ec704f8ec [FIX] stock: UoM of a product should not be changed when done stock moves exist.
Backport from saas-6 (242a76cc979c3fc237d9e3c44ad18361b33a0d98)

Closes #7224
opw-643168
2015-06-23 16:16:50 +02:00