Commit Graph

93788 Commits

Author SHA1 Message Date
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
Stéphane Bidoul 1d5651de5d [IMP] l10n_lu: update for VAT 2015, misc fixes
- remove 2011 tax data
- remove unneeded tax account for 0% taxes
- TVA en amont moved under 421611 instead of 422611
- Fix issues with IB-PA, AP-PA, IP-PA and all taxes with children
- improve structure for tax codes
- fix account type (other -> view)
- add fiscal position mappings
- credit part of IC/EC taxes goes into account 461 instead of 421
- add missing template account for TVA en amont extracommunautaire
- fix a long standing issue with the reconcile flag on accounts
- use TRUE/FALSE instead of t/f in the csv
- added source XLS file with conversion script

Closes #5870
2015-06-22 17:57:23 +02:00
Nicolas Lempereur 6d4a78a2a8 [FIX] membership: update membership state daily
The paid status should be removed automatically once the membership is
expired. Previously, it would only be done when some other models fields
changed (invoice, membership_line, res.partner).

closes #6823
related to opw-640440
2015-06-22 17:33:03 +02:00
Nicolas Lempereur c711f47bad [FIX] mail, crm: be more friendly no lead alias
The domain alias has to be set to be able to set a lead alias which may
not have been enough obvious.

closes #7197
opw-642914
2015-06-22 15:53:03 +02:00
Martin Trigaux ad00496a41 [IMP] website_event: hide technical menus
Field show_menu generates three menus Introduction, Location and Register on the
page of the event on the website.
Generating new menus requires the Technical Features groups so checking this box
would produce and error on non-technical users.
Moreover these menus are hardcoded, making it less useful and may produce
unexpected behaviour (replaces previous menus).
Hide the menus to non-technical users and add help message explaining the
effect of the field.
Fixes #7099
2015-06-22 14:51:19 +02:00
Iris86 2e4cfafd76 [CLA] Esther San Segundo (Iris86) 2015-06-22 14:46:35 +02:00
sve-openerp cd1366a720 [FIX] purchase: Missing log in procurement chatter when deleting a PO line.
When a PO line is deleted, it sets the related procurements in exception.
This fix logs this action in the procurement chatter, for WMS administration
and maintenance purposes.
2015-06-22 14:34:35 +02:00
sve-openerp 91998e3a5a [FIX] mrp: Missing log in procurement chatter when cancelling a MO.
When a MO is cancelled, it sets the related procurements in exception.
This fix logs this action in the procurement chatter, for WMS administration
and maintenance purposes.
2015-06-22 14:34:35 +02:00
Nicolas Martinelli 816be76ee6 [FIX] consider user's timezone in default date proposal
Fixes #6316
2015-06-22 14:31:33 +02:00
Nicolas Martinelli ac4849f9ca [ADD] web: prevent the propagation of context keys containing prefix show_
This decision comes from the following bug:
- Go to Sales -> Quotations, and open any existing quotation in form view (the
  partner must have an address defined)
- Click on the partner
- Click on the stat button "Claims"
- You notice that the address of the partner is included in the search

This is due to the context property show_address which is set to 1 when a
quotation is open. Therefore, it is necessary to filter out this keyword.

Since the prefix "show_" is used for only few context variables, it was decided
to define this pattern as a standard pattern to filter out.

opw-642893
2015-06-22 14:06:11 +02:00
Odoo Translation Bot 35b2463324 [I18N] Update translation terms from Transifex 2015-06-22 13:21:18 +02:00
Goffin Simon b927f8a864 [FIX] sales: Sales Button
The button sales on the product form only shows the confirmed SO.

opw:642946
2015-06-22 12:07:08 +02:00
Goffin Simon 5fcf0f5a6f [FIX] account: change delivery address
The default fiscal position on sale order, is set according to[by priority]:
[1] the delivery
[2] the partner

opw:641883
2015-06-22 09:11:21 +02:00
Goffin Simon 9ef5e40278 [FIX] payment_adyen: _get_adyen_urls
in python, if-else has a lower priority(operator precedence) than %

opw:642886
2015-06-19 13:50:26 +02:00
gfcapalbo 8f86a40562 [FIX] event: add string for events and registrations fields 2015-06-19 12:36:19 +02:00
Donka Lapunova cfca8bda8e [CLA] Donka Lapunova 2015-06-19 11:53:18 +02:00
Vassil Toumbev 95b0756265 [CLA] Vassil Toumbev 2015-06-19 11:35:13 +02:00
Valentin Chemiere b60d419848 [IMP] mrp: add a method, for easier inherit, with the selection of BoM line in manufacturing order
Closes #7079
2015-06-19 11:33:50 +02:00
sve-openerp d6c8697ed3 [IMP] l10n_be: Add missing 'Cocontractant' fiscal position 2015-06-19 11:30:04 +02:00