Commit Graph
105089 Commits
Author SHA1 Message Date
Nicolas Martinelli 388e258ce8 [FIX] web: rotate graph label
When there are too many labels to display on the x-axis, they overlap
and it simply becomes unreadable. By slightly rotating them, this can be
avoided in most cases.

opw-697625
opw-697626
2017-08-23 08:44:12 +02:00
Nicolas Martinelli 5f7030fc44 [FIX] stock: move name length
- Create a stockable product with a long description (> 3000
  characters)
- Validate the SO

An error is raised because the stock move name is too long.

The stock move name is taken from the procurement name, which is itself
taken from the SO line description. However, the stock move name is an
indexed field and therefore its length is limited (to 2712 characters by
default).

We truncate the move name to 2000 characters. Actually, there is no real
point to so many characters, nor its indexing.

opw-767040
2017-08-22 17:34:12 +02:00
amoyaux 92ec666f8d [FIX] stock: change delivery method on a supplied warehouse
Use case to reproduce:
- Create multiple warehouse
- Select a warehouse to ressuply on a warehouse form view
- Go to the supplied warehouse form view
- Change the delivery method -> Traceback can't adapt stock.location type

This happens because there is a write method using a stock
location instead of its id.

This commit use the location id instead of location
2017-08-22 14:15:46 +02:00
Christophe Simonis e68da600de [MERGE] forward port branch 9.0 up to caf78d22e1 2017-08-22 13:55:05 +02:00
Christophe Simonis 902fc764d5 [FIX] mail: only set header value for emails (not comments) 2017-08-22 13:32:34 +02:00
Christophe Simonis caf78d22e1 [MERGE] forward port branch saas-6 up to e4c7b11834 2017-08-22 12:42:26 +02:00
Christophe Simonis e4c7b11834 [MERGE] forward port branch 8.0 up to ff30928786 2017-08-22 12:38:17 +02:00
Christophe Simonis c023e1d562 [FIX] mail: add custom headers for mails send via the composer 2017-08-22 12:27:47 +02:00
Goffin Simon 68de5c7e9f [FIX] account: Cancel: create refund and reconcile
When refunding an invoice with the option: "Cancel: create refund and reconcile",
it raised a warning: "You are trying to reconcile some entries that are already reconciled!"
because in some cases the refund is linked to several entries which match the same
account of the invoice. So it tried to reconcile several times the same entries.

opw:765673
2017-08-21 10:22:20 +02:00
Martin Trigaux 85a360eeae [FIX] sale_stock: allow to cancel multiple orders
The action was tagged multi but crashed if executed on more than one order.
Courtesy of Andrius Laukavičius
2017-08-21 10:15:24 +02:00
Nicolas Martinelli 7e1d1f9502 [FIX] account: set default taxes
Allows removing default taxes. It was supposed to solve PR 11498, but
the solution brings more problems than the original issue.

opw-766720
2017-08-21 08:54:25 +02:00
Thang Duong Bao f1865f4a0f [CLA] signature for NothingCtrl
Closes #18852
2017-08-21 08:47:03 +02:00
Odoo Translation Bot 4c78611784 [I18N] Update translation terms from Transifex 2017-08-20 00:31:52 +02:00
Raphael Collet 0d73dae9ef [FIX] base: keep the model cache consistent
Do not remove fields from models except for custom fields.  Removing a base
field from a model screws up the model cache: that field may be required to
speed up the setup of the model in another registry.
2017-08-18 13:44:00 +02:00
Cedric Snauwaert 27b46f3ba5 [FIX] account: when assigning outstanding payment in another currency, don't verify move validity
Otherwise if payment is before lock date, user will get an error as he can't change the move value before lock date.
2017-08-17 14:17:38 +02:00
Yenthe V.G 06019dfa6d [FIX] google_account: do not update without client_id and client_secret
If a google application has no client_id or client_secret during the update
process (e.g. was configured but the API keys have been removed and the tokens
have expired), the method will crash.

Instead of continuously try and produce a traceback, return a proper error message

Closes #18613
Closes #18614
2017-08-16 17:24:24 +02:00
Aaron Bohy 278de028f5 [FIX] doc: Kanban view: remove doc of dropped feature
Before 9.0, it was possible to display aggregate values in grouped
Kanban view (like sum, average...). The aggregate was displayed in
the header of the column (see for example in 8.0 in Project >
Tasks).

This feature has been dropped in 9.0 because it didn't work
correctly, but the documentation hasn't been updated accordingly.
2017-08-16 13:00:45 +02:00
Lucas Perais (lpe) ff30928786 [FIX] account_budget: clearer analytic budget report
Before this commit there were two issues:
- The date "from and to" set in the wizard weren't working, as in not used at all
- The lines in the report did not have a date range, making the understanding of the report difficult

after this commit, only the budget lines which dates overlap at least one day of the report's dates will be selected.
Also, the first line of the report, containing the budget name also contains the dates on which it applies

OPW 743441

Closes #18737
2017-08-16 09:09:22 +02:00
Lucas Perais (lpe) 8c5d8af855 [FIX] point_of_sale: recompute for current session only
Backport of 0280354045

Original message:

The previous trigger would recompute all sessions of a config when modifying
the cash_control flag on the config.
It was not possible to enable cash_control if a previous session wasn't in
cash control mode.

Recompute only when changing the config

OPW 761025

Closes #18814
2017-08-16 08:56:44 +02:00
Nicolas Martinelli 3f7eee073b [FIX] stock: split move
1. Set the Decimal Accuracy of "Product Unit of Measure" to 7.
2. Create a UoM: T-LBS which is the reference for weight and has a
   precision of 0.01
3. Deactivate KG (which was the previous reference for weight)
4. Create a UoM: T-GT which is BIGGER, with a ratio of 2240.00 and a
   precision of 0.0000001 (necessary to avoid rounding errors)
5. Set the Product Unit of Measure Decimal Accuracy to 6 digits.
6. Create a Product T-TEST with T-LBS as the UoM ans Tracking as LOTS
7. Create a PO for 60 T-GT
8. Observe a Receipt created for 134,400.0000000 T-LBS
9. Receive 42760 by using LOT SPLIT button, and creating a LOT to hold
   this amount.
10. Click VALIDATE.
11. Click CREATE BACKORDER.

The backorder is created for 91640.01 instead of 91640.00.

When the backorder is created, we should make sure to use the same
rounding method that was used to compute `product_uom_qty`, in this case
'HALF-UP'.

opw-753116
2017-08-14 15:16:43 +02:00
Lucas Perais (lpe) c103d2b729 [FIX] account_voucher: fix onchange price_unit
before this commit, on a sales voucher, the unit price on the lines wouldn't take the value we wrote in the field
It is now the case

OPW 765993
2017-08-14 10:48:50 +02:00
Martin Trigaux eaa95bd0a6 [FIX] tx: don't translate test modules
Not published on Transifex
2017-08-14 09:53:22 +02:00
Odoo Translation Bot 535fe3ca14 [I18N] Update translation terms from Transifex 2017-08-13 00:31:41 +02:00
Raphael Collet 8efeb4c6fc [FIX] prefetch issues on computed fields (#18799)
When deciding to prefetch records (getting records from the cache with no value
for the field being fetched), if the field was computed `determine_value` would
just get all records, not limited by the normal prefetch limit; for large
recordsets this would generate gigantic prefetch lists for records we may not
need at all.

Fix by applying the `PREFETCH_MAX` limit to records from the cache as is done
in `_prefetch_field`.
2017-08-11 16:02:27 +02:00
Goffin Simon c49265afa1 [FIX] mail: Access rights error when reading leaves
Fine tuning of this commit: b795d69ce8

Steps to reproduce the bug:
Leaves > List view > Go into any validated leave > Get Odoo Server Error on access rights

opw:693536
2017-08-10 17:04:12 +02:00
Christophe Simonis cfbac106b4 [MERGE] forward port branch 9.0 up to 1aed433f54 2017-08-10 14:58:24 +02:00
Goffin Simon 1aed433f54 [FIX] website_event: Website Event Error when you encode a 0 value in the registration
The function registration_new must return a type json.

opw:765643
2017-08-10 09:27:05 +02:00
Christophe Simonis acbcfa3703 [MERGE] forward port branch 9.0 up to baca743cc0 2017-08-09 14:14:44 +02:00
Christophe Simonis baca743cc0 [FIX] mail: force attachment type
Do not rely on default value. The context can contains a `default_type`
value intended for another model.
2017-08-09 14:06:13 +02:00
Christophe Simonis 6a767a8900 [MERGE] forward port branch 9.0 up to 3d119c44f3 2017-08-09 13:57:30 +02:00
Lucas Perais (lpe) 3d119c44f3 [FIX] point_of_sale: correct inheriting from pos_order_line being an issue
Before this commit, when creating a pos_order_line_pro_forma, which inherits from pos_order_line but in a different table, the create confused an overriden field (order_id)
When pos_blackbox was installed, pro forma lines would search for an pos_order instead of a pos_order_proforma upon their creation

This commit allows an inheritant of pos_order_line to use the super.create function

OPW 745685

Closes #18755
2017-08-09 11:09:35 +02:00
Goffin Simon a31820d0cb [FIX] account: Only 64 characters for the name of an entry
When creating a customer invoice with description/reference with more than
64 characters, the description was cut to generate the name of the account move
lines. But it's possible to create an entry with more than 64 characters as name
by the interface. The limitation is deprecated.

opw:760316
2017-08-08 15:54:41 +02:00
Lucas Perais (lpe) ea2568b19c [FIX] website_portal_sale: image on a portal SO should always be displayed
before this commit, when a portal SO was done with a product that hasn't been "website_published", a placeholder was displayed instead of the image
After this commit, the correct product image is displayed in base64 (always image_small though)

OPW 760880

Closes #18709
2017-08-08 10:35:08 +02:00
qdp-odoo 792a402126 [FIX] account: fix tax_ids computation on aml creation from invoice.
In case of a tax affecting subsequent taxes, the tax_ids field was wrongly set which led to errors in VAT reports. OPW 757072.
2017-08-08 10:29:57 +02:00
Christophe Simonis a6917c22b3 [MERGE] forward port branch 9.0 up to af7eb04fc7 2017-08-07 17:56:45 +02:00
Odoo Translation Bot af7eb04fc7 [I18N] Update translation terms from Transifex 2017-08-06 00:32:12 +02:00
Jairo Llopis e43d73c35a [FIX] base: preserve context when cancelling module install
Closes #18597
2017-08-04 14:47:45 +02:00
Lucas Perais (lpe) 8749410b10 [FIX] website: correctly renders iframe for videos
Before this commit, the iframe tags were sanitized as the should, but never spawn back from JS.
Now, the iframe is actually created

opw 750830

Closes #18643
2017-08-03 09:29:14 +02:00
Christophe Simonis ed36929265 [FIX] core: avoid tests to contact gravatar server 2017-08-01 22:03:39 +02:00
Nicolas Martinelli 4f5b0463ae [FIX] mrp: cost report
The unit price on the cost report should not be rounded using the
product UoM.

opw-760299
2017-08-01 18:18:51 +02:00
Christophe Simonis ab0e083ecb [MERGE] forward port branch 9.0 up to 587668797e 2017-08-01 16:32:23 +02:00
Christophe Simonis 587668797e [MERGE] forward port branch saas-6 up to b3ddbbd4ba 2017-08-01 16:05:13 +02:00
Christophe Simonis b3ddbbd4ba [MERGE] forward port branch 8.0 up to 40197b38e5 2017-08-01 15:44:24 +02:00
Christophe Simonis e2826028ab [FIX] website_slides: only query google api if info is missing
With demo data, avoid doing requests on external service for
information we can provide.
2017-08-01 15:39:02 +02:00
Nicolas Lempereur 40197b38e5 [FIX] web: typo css class 69925ca6
opw-760956
closes #18601
2017-08-01 14:05:21 +02:00
Nicolas Lempereur 69925ca6f0 [FIX] web: display prev/next arrow after grouping
On a list view, if we group records the arrows and changing page
feature are disabled. But if then we removed the grouping, the arrows
never reappeared.

note: not necessary as of 9.0 it was already solved in 1280bf251

opw-760956
closes #18596
2017-08-01 13:56:26 +02:00
Odoo Translation Bot bbd4e7e292 [I18N] Update translation terms from Transifex 2017-08-01 02:40:08 +02:00
Christophe Simonis 285a9d0406 [MERGE] forward port branch 9.0 up to 3bda87a8d3 2017-07-31 11:13:41 +02:00
Goffin Simon 6fe846ec2f [FIX] purchase: Wrong scheduled date for backorder
Fine tuning of this commit:7333f5e

When the PO lines were not ordered according to the scheduled date,
the scheduled date of the picking was wrong when delivering.

opw:752192
2017-07-31 10:28:24 +02:00
Goffin Simon 3bda87a8d3 [FIX] point_of_sale: Default lang when creating a partner
When creating a partner in Sales app, the default language is the language
of the user. The same behavior is expected in the POS.

opw:752739
2017-07-31 09:38:06 +02:00