Commit Graph

93566 Commits

Author SHA1 Message Date
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
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
Donka Lapunova 58faafef0b [CLA] Prodax Ltd. 2015-06-19 11:06:45 +02:00
Bogdan Lisnenko 0b02d966c8 [CLA] Bogdan Lisnenko 2015-06-19 10:39:12 +02:00
Commandant Custo 7ddc9846a2 [FIX] account: terminology: TIN instead of VAT in invoice report
Fix mistake introduced in deb1db281b
2015-06-19 09:13:38 +02:00
Christophe Simonis ed3065e3c6 [MERGE] forward port of branch saas-3 up to b7f9f4a 2015-06-18 19:33:19 +02:00
Christophe Simonis b7f9f4ade0 [MERGE] forward port of branch 7.0 up to e8e3f75 2015-06-18 19:29:47 +02:00
Olivier Dony e8e3f75727 [FIX] workers: process signals during graceful shutdown to allow force shutdown
Required after e17844c946 which
enabled graceful shutdown of workers, including the cron worker.
The latter may typically be busy on long-running tasks that
will not be aborted by a simple graceful shutdown request.

A typical shutdown sequence initiated by a daemon manager such
as start-stop-daemon will involve multiple SIGTERM signals to
ensure the process really stops in a timely manner.
This was not possible after e17844c946
if any cron worker was busy.
2015-06-18 19:18:03 +02:00
Bartłomiej Wójcicki 78939477ff [CLA] bartekwojcicki 2015-06-18 16:56:16 +02:00
Bartłomiej Wójcicki 43915a8721 [FIX] mail: notify auto subscribers after message creation. 2015-06-18 16:56:16 +02:00
Goffin Simon d3711f2cab [FIX] website_sale: existing transaction
If the transaction already exists, the amount total of the transaction must
be updated.
The case occured when:
[1] you put a product A in the cart
[2] click on "Process Checkout" and click "Confirm"
[3] select Adyen or Paypal as payment method
[4] click on "Pay Now"
[5] return in the cart instead of paying your order
[6] add a product B in the cart
[7] click on "Process Checkout" and click "Confirm"
[8] select Adyen or Paypal as payment method
[9] click on "Pay Now"
Now check the transaction payment linked to the order in backend, the total amount of the order is equal
to price A + price B and the total amount of the transaction payment is equal to price A.
This commit solves this problem.
opw:634119
2015-06-18 16:24:14 +02:00
Csaba Palankai 139de23ce9 [CLA] Csaba Palankai (palankai) 2015-06-18 13:43:05 +02:00
Will Earp 854ce8f281 [FIX] howtos: grammatical error and xml styling 2015-06-18 13:37:41 +02:00
Will Earp 65b289bbb0 [CLA] Will Earp (wearp) 2015-06-18 13:37:41 +02:00
Matthieu Dietrich d0e39720e3 [FIX] base_calendar: Make exp_report() signature correspond to the one in web_services 2015-06-18 12:35:56 +02:00
Goffin Simon 415401f3e7 [FIX] mrp: action_produce
Introduced by #6451
The method "precision_get" returns the precision in digits.

opw:642773
2015-06-18 12:23:42 +02:00
Goffin Simon 2a6564872b [FIX] stock: Source document
The procurement created from a move has as source document[by priority]:
	[1] move.rule_id.name
	[2] move.origin
	[3] move.picking_id.name
ps: the internal transfer is created with this procurement.
opw:641887
2015-06-18 09:24:34 +02:00
Antonio Espinosa 0b886a7050 [CLA] Antonio Espinosa (antespi) 2015-06-18 09:02:19 +02:00
Denis Ledoux 4fbecc35e1 [FIX] web: break tags containing very long words
Otherwise they overlap with the rest of the form.

opw-641567
2015-06-17 16:10:31 +02:00
Martin Trigaux 7f2dc11b22 [FIX] doc: states attributes explanation 2015-06-17 15:01:37 +02:00
Nicolas Martinelli 7d3a4ab1b1 [FIX] l10n_be: sequence number of VAT Intracom report doesn't depend on company
Solves a traceback if the company's user is not the company with id = 1.

opw-642359
2015-06-17 14:44:36 +02:00
Christophe Simonis 2451dfcee4 [FIX] auth_signup: set request lang to created user. 2015-06-17 14:32:53 +02:00
Goffin Simon 403ce405ff [FIX] sale: Update fiscal position
The fiscal position must be updated according to the delivery address.

opw:641883
2015-06-17 13:51:54 +02:00
Nicolas Martinelli fa57ce878e [FIX] account: wrong domain for UoM
This allows to reset correctly the domain of UoM if the product is not set.
Without this patch, the domain used is the domain of the previous product in
the list.

opw-642074
2015-06-17 11:53:58 +02:00