Commit Graph

92879 Commits

Author SHA1 Message Date
Lorenzo Battistini da8f1f7a57 [CLA] Lorenzo Battistini
Closes #5709
2015-03-12 20:13:30 +01:00
Ronald Portier (Therp BV) 91e5456faf [CLA] Therp BV
Closes #5588
2015-03-12 20:11:38 +01:00
Josse Colpaert 06909462b1 [IMP] mrp: Make it possible to define a rule from stock > production to use the correct procure method
It is very cumbersome to define routes which have 2 step in on production for certain products with
procurement rules (e.g. Stock > Raw Materials Location > Production), when the
products are MTS elsewhere.  That is why we add the possibility, which might be elaborated in the future,
to define rules e.g. from Stock > Production, which you can put on the product / product categories.  These
rules will only define the procure_method for now.
2015-03-12 18:23:20 +01:00
Denis Ledoux 8eb62ca282 [FIX] purchase: invoice control on purchase order lines menu.
Only display purchase orders having as invoice control method
'on purchase order lines'.

opw-630016
2015-03-12 17:55:24 +01:00
Thomas Groutars 3923f4051d [FIX] models: propagate context in action returned by get_formview_action
When opening a record from a many2one,
the context is not propagated to fields_view_get.
This is a problem if you set "form_view_ref" in the context for example.

opw-629628
2015-03-12 15:13:44 +01:00
Jos De Graeve 170674f994 Fix nl_BE language name 2015-03-12 15:08:10 +01:00
Christophe Simonis 890174b976 [FIX] procurement_jit_stock: context are frozen. 2015-03-12 14:36:23 +01:00
Denis Ledoux 43b3b28708 [FIX] account: Possibility to choose employees in bank statements
The domain on the partner field in the bank statement lines
was too restrictive: You should be able to select partners
that aren't either customer or suppliers. For instance, your
employees.

opw-630017
2015-03-12 11:34:15 +01:00
Denis Ledoux 2996fd0897 [FIX] website_membership: free members while not logged in.
By default public/portal users do not have the access
rights to read the partners.

opw-628857
2015-03-12 10:10:19 +01:00
Olivier Dony df4bd736f1 [FIX] search view: autocomplete: further improve support for rapid barcode scanning
This patch removes the asynchronous code that was
still used to open the autocompletion drawer.
Even with the setTimeout delay forced to 0, the
asynchronous handling meant the final ENTER
keyUp event could be processed before the opening
of the autocompletion drawer related to the last
key pressed. This would trigger the search with
the search string of the previous autocompletion
popup, missing the last few keys.

Also handle ENTER at keyDown, because in some
rare cases a barcode scanner may emit only
the keyDown event for ENTER, without the
corresponding keyUp, causing a merge of two
successive scanned barcodes.

Based on many tests conducted with different
barcode scanners, the only thing that
is guaranteed is the correct order of the keyPress
events for all regular characters, and the
fact that the ENTER keyDown and/or keyUp will
always be sent after them.

All other events can be mixed or simply missing
if you make a rapid succession of scans, especially
if done with a long series of barcodes.

Scanners tested (with 1ms data transmission delay):
 - Honeywell Eclipse MS5145
 - Dacomex Slim 50mm CCD scanner
2015-03-11 17:59:46 +01:00
Josse Colpaert db45099a27 [FIX] stock: Cancel button visible for picking in waiting another operation fixes #4718 2015-03-11 17:51:50 +01:00
Josse Colpaert aa38a2209e [IMP] stock: add procurement_jit_stock: improve performance by always doing runs of procurements to create stock moves in batch 2015-03-11 16:50:45 +01:00
Josse Colpaert 1ac4d31db7 [FIX] stock: Make sure we can do a return of a stock move with UoS 2015-03-11 16:23:23 +01:00
Josse Colpaert 656f5a4498 [FIX] mrp: Extra moves and multiple split corrections in consumed and produced moves
ORM will show lines in production.move_lines even if done (which the domain should avoid)
when processing the production (as they are probably still in cache).  We explicitly skip those lines.

When producing more with lots in consumed and produced, we added the consumed_for link as
the lot tracking requires to have this link between the consumed and produced moves.

The extra move of the produced goods should also be confirmed and not created as confirmed immediately.
That way it can still apply the push rules.  (Gabriel Demmerle)
2015-03-11 16:07:26 +01:00
Xavier Morel 4cba11a7d4 [FIX] ws doc: table border colors in right column
Table borders remained the same color as in the "light" half, an overly
bright gray (#ddd) on a very dark background rather than a very light
gray on a white background.

Convert to a shade of dark gray lighter than the background, but nowhere
near as light as the text itself.
2015-03-11 14:46:50 +01:00
Nicolas Martinelli 2275af4b77 [FIX] base: ir sequence number is now reset to the requested value when calling the write method
opw: 626974
2015-03-11 11:35:25 +01:00
Julien Laloux a20545a936 [IMP] web: add no update info on metadata view (debug mode) 2015-03-11 11:10:42 +01:00
Goffin Simon fddab4c20d [FIX]delivery: price of a delivery method not correct
get_price must check the total_amount price without the delivery amount
to compute the delivery prices.

opw:629233
2015-03-11 10:18:51 +01:00
Goffin Simon 0f943ef736 [FIX] account: Impossible to reconcile a partially reconciled invoice.
In Bank Statements,  reconciliation of a partially reconciled invoice
is possible.

opw:629443
2015-03-11 10:13:14 +01:00
Jay Patel 82ab5d0f0e [FIX] payment_adyen: update keys used to generate the merchant
signature + correctly raise errors in validation.
2015-03-11 09:59:47 +01:00
Olivier Dony edcbf067d6 [FIX] workflow.workitem: deleting a subflow should never cascade to workitems
It's always dangerous because (cascade-)deleting workitems
has a great chance of killing the workflow instances they
belong to, putting the records in the workflow limbo
permanently. (They will appear stuck as they don't have
enough workitems anymore)

In addition, in some rare cases a subflow activity is
converted into a regular activity during an update, and
nullifying the `subflow_id` column is all there is to
fixing the corresponding workitems. It will simply take
them out of their subflow, and back into the main flow.

This is the case for the modification of the purchase.order
workflow in Odoo 8 (saas-5), for the picking subflow.
2015-03-10 19:35:23 +01:00
Christophe Simonis c0496ed03a [MERGE] forward port of branch saas-3 up to f8a9405 2015-03-10 18:00:43 +01:00
Christophe Simonis f8a94057e5 [MERGE] forward port of branch 7.0 up to a5e3269 2015-03-10 17:51:16 +01:00
Nicolas Lempereur a5e32690b0 [FIX] tests: UTC used in test when it should not
The test for account followup use UTC time, but the default `date_maturity`
and `date_due` of an account invoice come from fields.Date.context_today`.

One failing test for project_timesheet also used `today` instead of
`context_today`.

So depending on the test user timezone, an error of one day (if UTC time
and user time are on different day) occured which failed the tests.

For example:

* user has GMT+1 timezone, test fails 0:00am–1:00am (11:00pm-0:00am in UTC)
* user has GMT+3 timezone, test fails 0:00am–3:00am (9:00pm-0:00am in UTC)

This fix removes UTC use in the tests.
2015-03-10 17:33:43 +01:00
Denis Ledoux 89093a2616 [FIX] hr_timesheet_sheet: performance improvment of timesheet report
It always better to avoid doing the same join multiple times when
possible.

opw-629857
2015-03-10 16:20:40 +01:00
Nicolas Martinelli f7de3f0603 [FIX] account: product variants prices in invoices
when a customer invoice is created directly,
if a product variant is selected,
it now computes the price from the product variant and
not from the product template.

opw: 629285
2015-03-10 14:56:25 +01:00
David Monjoie 6758b4cfc5 [FIX][REF] purchase: prevent confirming order if no stockable item
After discussing with jco, we decided to keep it simple and have a coherent behavior between different versions, we then changed the behavior from the one of jbefficient PR at 92adf673f7.
2015-03-10 14:22:32 +01:00
Nicolas Lempereur 9abf7a2010 [FIX] mass mailing: keep menu when back in backend
The menu was not present in 8.0 when going back from the mass mailing email
composer to the backend. This fix adds the current action id as a return_action
query string parameter and return to the correct action.

fixes #5591

opw-629526
2015-03-10 13:51:08 +01:00
Denis Ledoux 9e4a8e814f [FIX] mail: suggested recipient for emails without author
When a message had no author (this is accepted),
a recipient without full_name, name and email address
was added to the suggested recipients of the thread,
leading to a "(no email address)" within the suggested recipients,
which is not really useful.

opw-629797
2015-03-10 11:38:44 +01:00
Géry Debongnie 1fe4cef530 [FIX] web: fix issue with search view input
This patch hopefully solves an annoying issue with the search view:
when the user types really fast (or uses a barcode scanner for example),
the resulting search string was (sometimes) missing the last few
characters.  I'm unclear on the exact reason why it happens.  From the
code, I can only guess that it happens because the scanner use a TAB
key instead of ENTER (TAB is handled in keydown event, ENTER in keyup),
or that the key events aren't in a correct order (if the user press a
key A, then press ENTER, then release ENTER, then release A, it results
in an empty key).

Anyway, the way this patch probably solves the issue is by using the
keypress event for triggering the search view.  I hope that in every
case, the keypress event are correctly ordered.  It leads to some code
I'm not really proud of this patch, but the key event handling are
quite messy.  Also, I need to handle the search string also when the
keyup event is fired, because it might change the search (for example
backspace trigger a keyup, but not a keypress).
2015-03-10 11:28:56 +01:00
Denis Ledoux a8d520552b [FIX] website_quote: do not display notifications in website quote
Some information should be hidden from the customer.
Changes of price, for instance.

opw-629746
2015-03-10 10:39:43 +01:00
Goffin Simon 9562bf8398 [FIX] account_payment: supplier invoice on more then one payment oder
The field move_line_id only shows account move lines that still have
an amount to pay. This was lost during 333e83fc5b.

opw: 625946
2015-03-10 09:14:14 +01:00
Christophe Matthieu 74497a667f [FIX] website_sale: If there is no description_sale for the product set the cart display the product name and 'False' 2015-03-09 20:34:01 +01:00
Nicolas Martinelli 2cc09e86af [FIX] web: on_change event on one2many fields was not fired if an attribute is mandatory (courtesy of Christophe Matthieu)
opw: 626974
2015-03-09 16:20:36 +01:00
qdp-odoo 5e3e41b730 [FIX] mrp_repair: removing deprecated and confusing tooltip on guarantee_limit 2015-03-09 15:12:31 +01:00
Olivier Dony 3a8ce072cd [FIX] sale_stock: context is generally frozen in 8.0 2015-03-09 15:03:19 +01:00
Olivier Dony 64da3c5e17 [FIX] website_forum: hide questions coming from abusive users
When a user's karma is driven to a negative value
due to repeated abuse or the posting of spam,
automatically hide all their posts from public
view.
This will reduce the effectiveness of their abuse,
and simplify moderation and cleanup.
2015-03-09 14:41:14 +01:00
Olivier Dony 13476c844d [FIX] fields.html, forum: opt-in stripping of @style attrs
For public-facing HTML content provided by the user,
`<style>` tags and `style` attributes should be stripped
automatically, as they can easily be abused to deface
pages for abusive users and spammers.
<style> tags were already stripped, the optional `strip_style`
for fields.html enables the automatic stripping of style
attributes.

This is opt-in because custom style attributes are still
desirable in trusted HTML fields.
2015-03-09 14:41:14 +01:00
Denis Ledoux 948befbb34 [FIX] mrp: set decimal precsion on qty field for produce wizard
In manufacturing bom lines, digits_compute is set
to the precision 'Product Unit of Measure'.

It should be the case as well in the produce wizard,
otherwise you won't be able to change the quantity
within this wizard to the according product quantity precision

opw-629657
2015-03-09 12:23:14 +01:00
Denis Ledoux 20173836b1 [FIX] mrp: preserve bom lines order within produce wizard
BOM Lines are ordered by a sequence field,
the "handle" widget makes even possible the lines reordering.
The order was respected within the mrp.production
(in o2m products to consume and consumed products)
but not within the mrp.product.produce wizard

opw-629629
2015-03-09 12:14:24 +01:00
Christophe Simonis 416f0246ac [MERGE] forward port of branch saas-3 up to 4a3c471 2015-03-09 12:03:22 +01:00
Denis Ledoux d93c4bef1d [FIX] mrp: always use float_compare to compare floats
When comparing a float value to 0.0,
it can happen the float value is very near to 0.0,
but not exactly 0. This is the point to use float_compare,
```float_compare(qty, 0, self.pool['decimal.precision'].precision_get(cr, uid, 'Product Unit of Measure'))´´´
will compare qty to 0, with the product unit of measure precision (0.01 by default).
So, if qty is equal to 0.00001, this means the qty is regarded as equal to 0.0.
(float_compare will return 1).
2015-03-09 11:49:41 +01:00
Christophe Simonis 4a3c4713e9 [MERGE] forward port of branch 7.0 up to 209ce6f 2015-03-09 11:24:32 +01:00
Xavier Morel 8bc89de4d6 [IMP] ws doc: selectivity of the highlight right-alignment 2015-03-09 09:53:00 +01:00
odoo-tac 209ce6f48c [FIX] Fixed a typo in project.py exception message 2015-03-06 17:11:57 +01:00
jesusVMayor 591d207ff9 [FIX] sale: reset state of exception procurements only
During the delivery of a picking the procurents in exception or canceled are
reset to confirm state.
As the list of picking was a list shared in the loop, other procurements may be
reset to confirm as well.
2015-03-06 16:00:54 +01:00
jesusVMayor c040a26120 [CLA]Jesús Ventosinos Mayor. 2015-03-06 15:54:24 +01:00
xmo-odoo d9c9ac72da [FIX] export: decode Field strings before comparisons
Allows exporting fields whose string is a non-ascii *byte*string (rather than unicode).

backport of 7286f4e424 fixing #773 to branch 7.0 by request of @flotho
2015-03-06 13:12:50 +01:00
Josse Colpaert f1a9ab7025 [FIX] stock: typo not in 2015-03-06 13:00:31 +01:00
Josse Colpaert b886e11e47 [IMP] Stock: When changing wh config: check before deactiving locations fixes #4985
When changing e.g. from 3-step to 2-step, we would like to deactivate a location,
but maybe the user still wants to use that location e.g. in a rule on the product, so do a check
if it is not used in some route not related to the warehouse.
2015-03-06 11:06:38 +01:00