Commit Graph

93707 Commits

Author SHA1 Message Date
Frédéric van der Essen 018435c6d7 [IMP] point_of_sale: contributing partners demo data. 2015-06-16 12:52:02 +02:00
Goffin Simon 70c21d7b0d [FIX] stock: source document
The origin of a stock.move must be the same of its  picking destination.

opw:641887
2015-06-16 09:38:11 +02:00
StefanRijnhart 3940a096b2 [FIX] http: Compatibility with psutil 3.0
Version 3.0 has replaced get_memory_info by memory_info.
Create wrapper to be able to use the correct one depending on the installed
version.
2015-06-16 08:59:44 +02:00
Denis Ledoux 55b7f15ee2 [FIX] stock_account: stock valuation report performances
Basically, computation of the `inventory_value` is now done
in batch instead of one by one.

In a real use case, the computation of the stock valuation
passed from 20+ minutes to less than a minute.

This revision contains an unusual SQL request:
`SELECT DISTINCT ON`
Basically, it returns the most recent line of table
product_price_history for each tuple
`(product_template_id, company_id)`
which is actually what we want, with good performances.

See postgresql doc for more information:
http://www.postgresql.org/docs/9.0/static/sql-select.html#SQL-DISTINCT

opw-641154
2015-06-15 16:28:13 +02:00
Christophe Simonis 0d5b01543e [MERGE] forward port of branch saas-3 up to 8855659 2015-06-15 16:25:00 +02:00
Christophe Simonis 885565968f [MERGE] forward port of branch 7.0 up to d566558 2015-06-15 16:24:11 +02:00
Denis Ledoux d566558a6c [FIX] membership: missing name field in search view.
Which leaded to the inability to search on the partner name

opw-642301
fixes #6703
2015-06-15 15:26:39 +02:00
Denis Ledoux 5fc8315e25 [FIX] report_vat: display tax of selected chart of tax.
The Taxes report gives the possibility to choose a chart of tax.
This chart of tax wasn't respected when printing the report,
all taxes from all chart of taxes of the company were printed.

opw-642362
2015-06-15 15:09:52 +02:00
Goffin Simon c7c2f5743b [FIX] base: export translation
In css, overflow-x and overflow-y must have the same value. If overflow-x is equal to
auto then overflow-y is equal to auto.
To solve the problem, the height of the input is removed because it is forced by the Jquery
auto-completion plugin according to the wrapper.
Without this patch, when you go to Settings > Import/Export > Export Translation and click on the arrow to
to show the list of modules you can export, the list is partially hidden.

opw:632607
2015-06-15 14:54:07 +02:00
Nicolas Martinelli ea59856caf [FIX] mrp: display Produced Products done in black instead of grey
Keep consistency between Consumed Product and Finished Products

opw-642267
2015-06-15 11:06:04 +02:00
Damián Soriano f7742add26 [FIX] tests: restore openerp.tests.common.DB for backwards compatibility
It was removed at 2df9060d97 and broke
tests in community modules that relied on it.

Tests using it should switch to the new get_db_name() method.

Closes #7054
2015-06-15 00:52:20 +02:00
Peter Niederlag 777188f3f3 [CLA] datenbetrieb UG 2015-06-12 16:39:18 +02:00
Laurent Mignon (ACSONE) e17844c946 [FIX] server: graceful shutdown must send SIGINT instead of SIGTERM to workers
Workers do not specifically handle SIGTERM so it can be used to
force quit them, but the graceful shutdown is triggered by SIGINT.

Closes #6998
2015-06-12 16:11:59 +02:00
Goffin Simon cc6c4f2408 [FIX] stock: theoretical quantity
The default real quantity must be the theoretical quantity.
2015-06-12 15:30:22 +02:00
Nicolas Lempereur 8ae67f6a54 [FIX] fields: correct sides effect of change to old api
The commit 3269ad8f get back the behaviour of 7.0 (which changed in
october 2014) that when a field is overrided via the old api, attributes
of a previous definition of the field are lost.

This fix corrects the case when this behaviour might have had an effect
so specified attributes overrided don't get lost.

related to opw-639712
2015-06-12 15:09:06 +02:00
Nicolas Lempereur 3269ad8f48 [FIX] fields: throw truthy values on old api field
In 7.0, a field overriding an inherited model would overwrite all the
previously set field attributes. In v8 the new API allow us to keep
previous attribute, and only overwrite attributes of our wish.

Following the commit 7b1ef708 (october 2014) an old api field overriding
could conserve previous attributes values in some cases (if the new value
is falsy (None, "", 0, False, (), {}, [], ...) when it should not. It
was partly an optimization to diminish the size of orm registries
dictionaries to save memory (this patch has been tested with all odoo
modules and added +/- 3M).

This commit (proposed by rco) should overwrite falsy value (so the
behavior of v7 for old api fields overwritting is re-introduced) and
get back the behavior of old api in V7.

closes #7035
opw-639712
2015-06-12 15:08:54 +02:00
Nicolas Martinelli 5ada7bb0d0 [FIX] purchase: does not use minimum seller qty if delivery address is customer
This prevents to use the minimum quantity of the seller in case of dropshipping
2015-06-12 14:05:03 +02:00
Goffin Simon 3a9e6828f1 [FIX] stock: Unit of Measure
When the uom(Unit) set by default is not in the same category than the uom category of the product,
the uom of the product is set.
When the uom is changed, the theoretical quantity and the real quantity are recomputed.

opw:641027
2015-06-12 13:23:40 +02:00
Damián Soriano 2df9060d97 [FIX] tests: db name moved from constant to function
Avoids initializing the DB constant too early
when subcommand modules are loaded, making them
unable to run db-backed tests later.

Closes #6984
2015-06-12 12:43:01 +02:00
Damián Soriano de20e18faa [CLA] Adhoc.com.ar 2015-06-12 12:43:01 +02:00
Nicolas Martinelli ed6a622c02 [FIX] stock: choose quants depending on original move when scrapping
When a product is scrapped, we set the reservation_id of the scrapped move on
the quant corresponding to the original move (e.g., the move which brought a
manufactured product from production to stock). By doing so, we will subtract
the quantity to scrap from the appropriate quant.

opw-641852
2015-06-12 12:38:55 +02:00
Moises Lopez a0f44726b1 [CLA] add missing vauxoo people 2015-06-12 09:39:51 +02:00
nafex f5585731f4 [FIX] website_sale: allow to reset field
When filling the form (for invoice or delivery details), once a field has been
filled, it's no longer possible to remove the value of this field.
e.g. set a company, not possible to remove it when modifies the address

This is due to the `get(key)` call that is considered as False with empty
strings. Instead, check the existance of the key.
Still not accepting mandatory in the form (not checked in this method).

Fixes #7017
2015-06-12 09:37:45 +02:00
Goffin Simon d1c5aa79d5 [FIX] project: active_test
When a project is duplicated, the disabled automated actions don't
have to be applied.

opw:642129
2015-06-12 08:52:18 +02:00
Stan fd2518eecb [FIX] google_calendar: fail during first sync
If an event exists on Google but was not synced yet in Odoo, the synchronisation
would fail.
When self.OE.found is False, self.OE.event is not defined and trying to access
it would fail (it's a python object, not a recordset)

Check the ownership after making sure the event is present in Odoo.

Fixes #7034
2015-06-11 16:21:14 +02:00
Pedro M. Baeza ec18bf6f44 [FIX] purchase_requisition: onchange argument format
Pass fiscal position ID instead of recordset on onchange_product_id
2015-06-11 14:11:06 +02:00
Goffin Simon 663e7bb531 [FIX] stock_account: refund
Invoices of type refund should be considered.
2015-06-11 13:16:45 +02:00
Christophe Simonis 5e7f143c21 [MERGE] forward port of branch saas-3 up to ed76b2a 2015-06-11 13:00:49 +02:00
Christophe Simonis ed76b2a782 [MERGE] forward port of branch 7.0 up to e470385 2015-06-11 12:46:06 +02:00
Stéphane Bidoul d291aba4b5 [FIX] server: graceful shutdown must send SIGINT instead of SIGTERM to workers
Workers do not specifically handle SIGTERM so it can be used to
force quit them, but the graceful shutdown is triggered by SIGINT.

Closes #6738
2015-06-11 12:00:57 +02:00
Goffin Simon e208fe51db [FIX] point_of_sale: precision
Regression introduced by 5a10903.
2015-06-11 08:45:17 +02:00
Nicolas Martinelli 7360a30b27 [FIX] crm: create logged calls from tree view registers mobile phone
When a logged call is created from the tree view, the mobile phone of the
partner is not filled in automatically, while it is in the form view.

opw-640549
2015-06-10 09:27:25 +02:00
Martin Trigaux 87d48b0859 [FIX] web: do not crash when select wrong db
When a user tries to log into a postgresql database with no view web.login (this
happens if the database is not an odoo database or using a previous version of
odoo), the rendering failed, producing a 500 error (with no detail for the user)
Instead, redirect to the database selector with an informative message.
Fixes #3443

The database selector page is a jinja template with no access to database
required so should be able to be displayed on any database.

Future improvement could verify the version of base module for even more precise
verification before login (but need to make sure it's always accurate).
2015-06-09 15:05:57 +02:00
Goffin Simon 4d7671a4c3 [IMP] website_sale: Skip overload with requests
Until the request to get the unit price is not finished, no request is sent to the server.

issue #4298
2015-06-09 12:06:18 +02:00
Jean-Baptiste Quenot 78420d1cf2 [CLA] sign for Jean-Baptiste Quenot 2015-06-09 11:44:45 +02:00
Jeremy Kersten 31301bb31a [FIX] website_sale: reset sale order from session if status is no more in draft
When a sale order has in state != draft, we raise a error message since commit
f6c65a3d9e.

But if we don't reset the sale order id from the session, the user cannot
continue to navigate on website because the user will have the error each time.
2015-06-09 11:13:20 +02:00
Raphael Collet 4a5e2fe99e Merge pull request #5618 from acsone/8.0-fix-5616-ir_model_fields-from-fields
[FIX] model: use self._fields instead of self._columns to populate ir.model.fields
2015-06-09 09:51:49 +02:00
Goffin Simon fb57514cf0 [FIX]account_anglo_saxon: price unit of a move
The price unit of a move must be computed with the product_uom of
this move.

opw:640454
2015-06-09 09:30:54 +02:00
Nicolas Martinelli 4a281754db [FIX] purchase: add transition invoice_end to cancel in the workflow
If the state of the PO is 'approved', there is no transition foreseen in
order to cancel the PO.

The user might be blocked in the following situation:
- Create a purchase order with invoicing set as Based on incoming shipment
- Validate the purchase order, create the shipment
- Then, cancel it (the shipment)
- Return back in the purchase order, the PO should be in shipping exception
- Hit the "manually corrected"
- Then, try to cancel the PO: nothing happens.

opw-641014
2015-06-09 08:20:10 +02:00
Nicolas Martinelli e470385d55 [FIX] account_voucher: select the right credit/debit account for the payment
If different debit/credit accounts are configured for a journal, the
appropriate account must be selected.

opw-640745
2015-06-09 08:13:16 +02:00
Leonardo Pistone a3e4a1f39f [FIX] stock: propagate owner when generating extra move 2015-06-08 18:23:31 +02:00
Guewen Baconnier c315377d00 [IMP] purchase: Ignore canceled purchase lines
Canceled lines must be excluded from most of the operations done on a purchases orders.
The check has been done in some places but some of the loops on the order lines do not do it.
This commit correct them.
2015-06-08 18:19:38 +02:00
Guewen Baconnier 96b53126a2 [IMP] purchase: Purchase report uses the state of lines instead of purchases
So canceled lines of not-canceled orders are correctly represented in the
analysis.
2015-06-08 18:19:20 +02:00
Odoo Translation Bot d9e8c3ade4 [I18N] Update translation terms from Transifex 2015-06-08 17:22:46 +02:00
Odoo Translation Bot e2c9699cfc [I18N] Update translation terms from Transifex 2015-06-08 14:03:50 +02:00
Wolfgang Taferner 2f5d681135 [FIX] product_extended: cost price computation from BOM
having lines with products using a different UOM for
sales and purchases

If a product does have a (different) purchase uom, we should first
take it as a base for calculating prices as the standard price relates
to it and not the sale (normal) uom.

Closes #6829
opw-640616
2015-06-08 11:13:05 +02:00
steveferry 852b1f17ea [IMP] doc: list of linux -dev dependencies incomplete
I had to install libldap2-dev because of this error: lber.h no such file
or directory.  After this package's installation, the requirements
installation works with no errors.  So I guess it's needed too.

closes #6971
2015-06-08 08:30:03 +02:00
Alexis de Lattre 96135fa785 [FIX] http: correct authentication via JSON-RPC.
Since 31d817e, we rotate then session at login/logout.
Unfortunatly, `openerpframework.js` does not support session id change
at authentication and keep old one.

In order to keep compatibility with existing js clients (including 7.0
ones), we do not rotate the session at authentication.

Fixes #6948
Closes #6949
2015-06-05 12:38:39 +02:00
Jean-Baptiste Quenot 3d35a5d42b [FIX] mail: Strip In-Reply-To header
For emails sent via Office 365, reply-to header could contains additional spaces
or get multiline header.
e.g.:
In-Reply-To:
	<4ba8f246904b4fedb49fbab7945a7f82@AM3PR06MB433.eurprd06.prod.outl$$k.com>

The message lookup fails if header is not stripped
2015-06-03 19:12:12 +02:00
SauliusZ 2948ed954b [FIX[ base: Currencies changed for Latvia and Lithuania
Latvia changed its currency to Euro from 2014 and Lithuania from 2015. It is not
possible to buy in old currencies anymore.
2015-06-03 19:03:45 +02:00