Commit Graph

93806 Commits

Author SHA1 Message Date
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
czoellner d226771383 [FIX] purchase: ensures invoice lines are linked to PO line
Fixes the impossibility to invoice purchase order lines, which were never
invoiced but set to invoiced by validating a first invoice created by invoice
control "manual".
2015-06-24 14:24:48 +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
Nicolas Lempereur 1942522969 [FIX] base: update File Content for binary field
To distinguish two ir.attachment 'File Content', we base it on the file
size (this I imagine is for efficiency).

This is done by setting bin_size in the context. Doing this, the
returned db_datas field will be the file size of the converted to base64
content (if no filestore).

But this size is returned in string format, so "get_nice_size" (in
openerp/osv/fields.py) which gets this size calculates the length of the
string. e.g: if the size is '2142' get_nice_size will return 4.

This fix solves this by converting the string to an integer, thus
unifying it with the filestore case (where we use os.path.getsize which
return an integer).

Also, the field presenting the issue (FieldBinaryFile) has been changed
so it is always updated even if the size is the same (as it was already
done by 3632949 for FieldBinaryImage widget).

closes #7223
opw-643071
2015-06-23 15:20:33 +02:00
Olivier Dony 9b1aa53f29 [MERGE] Forward-port saas-3 up to 9cdfb0696a 2015-06-23 15:18:00 +02:00
Olivier Dony 9cdfb0696a [MERGE] Forward-port 7.0 up to 6acd5ef91c 2015-06-23 15:13:47 +02:00
Olivier Dony 6acd5ef91c [FIX] expression: internal domain operators require different parsing
Ensure the absence of internal domain operators is correctly
propagated throughout the domain parsing.
2015-06-23 15:04:45 +02:00