Commit Graph

93525 Commits

Author SHA1 Message Date
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
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
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 Lempereur 3f1e99c4b9 [FIX] web, website_form_website_sale: form and login
Partial backport of commit 093e39bd.

When a flow is stopped by a login redirection, some data (e.g: a product
comment being posted) could be lost. This commit in this case convert
POST request data to GET data (so it is possible to add a GET controller
which after login will terminate the action).

closes #7100
opw-642350
2015-06-17 11:33:20 +02:00
Raphael Collet dca1894b5d [IMP] product: optimize `name_get()` of `product.category`
Using the new API takes better advantage of the cache than calling `read()`.
In the list of products, `name_get()` now generates 2 queries instead of 144!
2015-06-17 10:48:29 +02:00
Martin Trigaux d15322ae34 [FIX] doc: group by filter
The name of the field we are grouping on is inventor_id (cf above), not inventor
2015-06-17 10:25:45 +02:00
Martin Trigaux 6bb3be5ba3 [FIX] doc: api.multi/one confusion
As the methods are using @api.multi, it should be accessed with rec, not self
2015-06-17 09:41:09 +02:00
Nicolas Martinelli c7fad1313a [FIX] purchase: a procurement is done if all moves related are done
In case of a partial delivery of the products to receive, the procurement is
not considered as done since procurement.purchase_line_id.order_id.shipped is
false.

opw-641503
2015-06-17 06:50:20 +02:00
Martin Trigaux 22ded0df6b [FIX] doc: less confusing example
The view example for xpath extends a view with the model ir.ui.view
As the content of the view seems to make reference to an object idea.category
and extending the view of a view is not the most clear example, replace the
model by the fictive idea.category
2015-06-16 22:25:36 +02:00
Alexis de Lattre 404b668370 [IMP] stock: Add _prepare_picking_assign method in _picking_assign for easier inheritance 2015-06-16 18:07:08 +02:00
Goffin Simon 9c30ba7143 [FIX] point_of_sale: sum of pos.order.line
amount_line_tax must be used to compute the _amount_all. In this way,
the taxes are computed by "compute_all" which takes into account how
to round(globally or per line). Inspired from "sale.order" behaviour.

Fixes #6765
opw:640211
2015-06-16 16:04:36 +02:00
Goffin Simon, Nicolas Lempereur 98a72a2604 [FIX] website_sale_delivery: update shopping cart
The delivery must be updated when the cart is updated.
The method "_check_carrier_quotation" called by "_cart_update" deletes sale order line related to delivery.
Then each line passed to "_cart_update" must be checked with "exists" to be sure that the record is not
missing.
Related to the task : 12239
opw:641913
2015-06-16 13:56:43 +02:00
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