Commit Graph
126133 Commits
Author SHA1 Message Date
David Tran 1377c45f4d [FIX] sale: allow execution on multiple records
avoid singleton error when self contains multiple orders

closes odoo/odoo#29922
2019-01-04 10:47:17 +00:00
Martin Trigaux 838c9e5617 [I18N] export 11.0 source terms
To integrate recent content changes and benefit from cd4080839f and 7f8631a91

closes odoo/odoo#29933
2019-01-04 10:13:05 +00:00
Nicolas Lempereur 3125d20da3 [FIX] web: X2Many read propagates field context
Most operations on X2Many widget possibly propagates a field context
(name_create, name_search, ...) but the original read or read on an
onchange does not.

With this changeset, the field context is also used in these instances.

The assertions added in the added test failed with:
  expected: ["world"], result: [undefined]
  expected: ["world","world"], result: [undefined,undefined]

fixes #29203
opw-1914466
closes #29866
2019-01-04 09:44:49 +00:00
Nicolas Martinelli 04369bab39 [FIX] rating_project: pop group_by
- Go to 'Project'
- Group by 'Manager'
- Click on the rating

A traceback occurs.

This is because the grouping field `user_id` does not exist in the
target model.

Fixes #26060
opw-1920979

closes odoo/odoo#29900
2019-01-03 16:04:50 +00:00
Martin Trigaux 7f8631a913 [FIX] tools: properly verify the size of HTML nodes
Instead of checking the size of text only node, let the xml_translate verify it.

The size verification using etree was introduced at 40efdccc3d but was
probably too simple.
Since 45352512a8, this becomes redundant with the nonspace method which can
be extended.

The re.sub is still relevant as some terms may contain only non-alphanumeric and
use push_translation (e.g. '>=' as a selection or xml terms extracted by babel
in static repository)

closes odoo/odoo#29432
2019-01-03 15:01:10 +00:00
Raphael Collet cd4080839f [FIX] translate: inline elements with translatable attributes only 2019-01-03 13:46:27 +00:00
qdp-odoo 22637aadec [FIX] account: typo introduced in d44437f93830afae60e5354e0b4777413be29c93
closes odoo/odoo#29874
2019-01-03 09:21:50 +00:00
Christophe Simonis 06ca681d5e [MERGE] forward port branch 11.0 up to a5133aba57d 2019-01-02 18:04:16 +01:00
Christophe Simonis a23e8c081a [FIX] account: adapt forward-ported test 2019-01-02 17:11:36 +01:00
Denis Vermylen e1767490e9 [FIX] purchase: loading time on partners with many children
When loading a partner form view, the ORM prefetches the computed fields
purchase_order_count and supplier_invoice_count for all the related
partners as well (parent, children, ..).

Instead of reading the orders and invoices once per partner, we group
them all together.

opw 1919933

closes odoo/odoo#29788
2019-01-02 16:08:55 +00:00
Raphael Collet 1b434ed8c3 [FIX] models: make prefetching more specific in read()
Commit a07a076c45 restricts the prefetching to
`self` when accessing the fields to return.  This is too restrictive, as it
cancels prefetching of secondary records in computed fields.  In this commit we
limit the scope of the restriction to `self`'s model only; this fixes the
original issue without impacting other models.

closes odoo/odoo#30133
2019-01-11 11:01:22 +00:00
Aurélien Warnon e2bdb65321 [FIX] website_slides: hide slide download button if not available
Task #1923443

Purpose
=======

The slides on the website showed the 'download' button regardless of the value of the 'download_security' field.
If the value is 'none', meaning that the slides are never downloadable, the button should be hidden.

closes #29904

closes odoo/odoo#30051
2019-01-10 14:52:15 +00:00
Christophe Simonis e618845112 [FIX] web: adapt forward-ported test 2019-01-02 16:08:25 +01:00
Sanjay Jamod 03b0e153ac [FIX] account_check_printing: Fix traceback on onchange
Method amount_to_text() having self.ensure_one(), it should not be
called with empty recordset

Closes #29854

closes odoo/odoo#29865
2019-01-02 14:46:07 +00:00
Christophe Simonis 79f1ecd756 [MERGE] forward port branch 11.0 up to d82c0d133e 2019-01-02 15:37:01 +01:00
Christophe Simonis 6e933e42ef [MERGE] forward port branch saas-14 up to a80bde859c 2019-01-02 11:44:07 +01:00
Wolfgang Taferner d82c0d133e [FIX] stock: tell the user which product is causing the issue
closes odoo/odoo#29857
2019-01-02 10:36:57 +00:00
Christophe Simonis 7d45e43a13 [MERGE] forward port branch saas-15 up to 6e933e42ef 2019-01-02 13:42:12 +01:00
Enric Tobella c8de59ad2b [CLA] siognature for Enric Tobella
closes odoo/odoo#29593
2019-01-02 10:57:03 +00:00
Christophe Simonis a80bde859c [FIX] base: correct res.partner name_search
Oversight of previous forward-port when adapting cc217569b7
2019-01-02 11:12:37 +01:00
Christophe Simonis 015f2582ad [MERGE] forward port branch saas-14 up to 1d672b33a7 2019-01-02 10:50:46 +01:00
Christophe Simonis 1d672b33a7 [MERGE] forward port branch 10.0 up to 9ef7802520 2019-01-02 10:49:56 +01:00
Nicolas Seinlet 5f6a491265 [IMP] point_of_sale: use read_group
Using read_group outside of the loop make the sum computation in 
PostgreSQL instead of Python, and avoid the ORM to fetch fields of 
records to compute a sum of one field.

closes odoo/odoo#29825
2018-12-31 08:15:14 +00:00
Bohdan Lisnenko 9298c576f4 [FIX] website_sale_comparison: keep attributes order consistent
closes odoo/odoo#30221
2019-01-16 14:47:46 +00:00
Christophe Simonis f03f09cf90 [FIX] purchase: adapt forward-ported view changes to new version 2019-01-16 18:22:32 +01:00
Christophe Simonis 1d05c0a499 [FIX] mrp: correct forward-ported test 2019-01-16 18:19:55 +01:00
Christophe Simonis 378b283c02 [MERGE] forward port branch saas-11.3 up to 83cc046e9a 2019-01-16 17:02:34 +01:00
Lucas Perais (lpe) e79c35dcbc [FIX] stock_account: inventory valuation value in company currency
In multicompany,
Have company B with a different currency than company A
With a shared product catalog
Open the inventory valuation report for company B

Before this commit the stock Value is expressed in company A's currency,
even though the value itself is correct

After this commit, the stock value is expressed in the right currency

OPW 1912511

closes odoo/odoo#30242
2019-01-16 12:06:45 +00:00
Jeremy Kersten 44585c2420 [FIX] website_sale_comparison: compute currency from template
closes odoo/odoo#30238
2019-01-15 17:12:12 +00:00
Jeremy Kersten bdbca1cdca [FIX] website_forum: add level field in gamification form view 2019-01-15 17:12:12 +00:00
Nicolas Lempereur 535da9e78c [FIX] web: no ResizeObserver video error on chrome
When displaying a video, with the browser window at a certain size, or
resizing it (or opening developer tools) we could the following error:

 "ResizeObserver loop limit exceeded"

This can be reproduced in chromium just with this JS code:

  window.onerror = function(e){ console.log(e); };
  document.body.innerHTML = '<div><video controls src="v.webm"/>';

The issue only happen if:

- the video server does not support HTTP range requests
- the controls are displayed on the video
- browser size is in problematic size/resized to problematic size

And the error is raised in window.onerror but not displayed in the
developer console.

With this change, we ignore these errors until fixed in chromium.

chromium bug tracker: https://crbug.com/809574

opw-1928512
closes #30239
2019-01-15 17:01:57 +00:00
Aurélien Warnon b654fabe04 [FIX] event_sale: fix event registration confirmation modal
Task #1910927

Purpose
=======

When confirming a sale order with event tickets, a modal is supposed to be shown to be able to
confirm the event registration.

That modal was not shown anymore.

To solve it, we split the '_action_confirm' to run the actual business of the event_sale module,
which is '_update_registrations', and moved the action returned in the regular 'action_confirm' method.

closes odoo/odoo#29997
2019-01-09 08:50:45 +00:00
Anshuman Sharma cd1d9824ab [FIX] website: solve alignment bugs in onboarding
- Fix the position of 'Add to menu' toggle button in new page dialog
- Properly align tip icon in the welcome message

task-1895287

closes odoo/odoo#29403
2019-01-16 10:16:44 +00:00
Toufik Ben Jaa 7f524c393d [FIX] payment: display payment tokens for form acquirers
- The method `_get_available_payment_input` that returns the available
  payments acquirers and the payments tokens for a specific user never
  returns the payments tokens linked to a non s2s payment acquirers.

  This is wrong, the payments tokens should always appears no matter
  what are the acquirers' payment flow.

  The payment flow is used only to specify where the customer should
  input his credit cards details, either on Odoo or on the payment
  acquirer's website (or popup).

  Once a token is created, it is safe to process it since no credits cards
  details are stored on the Odoo database.

closes odoo/odoo#30258
2019-01-16 09:45:38 +00:00
Nans Lefebvre ba65d0e259 [FIX] mrp: show correct number of attachments on bom lines
Display a BoM.
On BoM lines, there is an attachment feature that creates a mrp.document,
which is basically a container for an attachment.
This commit fixes the view which displayed 'no attachment' when there were some
and vice versa.
It also fixes the computation of the number of attachment: the displayed view is
on mrp.document, but the computation is done on ir.attachment.
As a result if there are other unrelated attachments (such as digital files)
they would be counted but not displayed.

opw 1923441

closes odoo/odoo#30208
2019-01-15 12:21:07 +00:00
lejeune quentin c516cb90af [ADD] IoT : Add printer compatibility with the LPD protocol
closes odoo/odoo#29875
2019-01-15 15:23:24 +00:00
lejeune quentin b314a970f8 [FIX] IoT : Remove inactive Timesyncd service 2019-01-15 15:23:24 +00:00
lejeune quentin e5c62987b4 [FIX] IoT : HTTPS disable certificate verification by URLLIB3 2019-01-15 15:23:24 +00:00
lejeune quentin 15dd1c6b3f [FIX] IoT : Listen port 80 with nginx and add iot.jpg
nginx server can answer of requests on port 80
for the https we test if image iot.jpg exist to know if this ip is a IoT Box
2019-01-15 15:23:24 +00:00
lejeune quentin e7993f2faa [IMP] IoT : Allow to configure CUPS server
We can modify printers or CUPS configuration
These modifications will be save on IoT Box
2019-01-15 15:23:24 +00:00
lejeune quentin 071587b3c1 [FIX] IoT : Change build version 2019-01-15 15:23:24 +00:00
lejeune quentin ef38f32447 [FIX] IoT : Organization of installed packages 2019-01-15 15:23:24 +00:00
Josse Colpaert 271282289a [FIX] IoT : IoT Box image update fix
The update does not work anymore on the IoT Box,
probably because the structure of the branch is
a bit different now.  It starts to download everything
instead.

We did not use 'git archive' because this does not work
on GitHub and downloading a zip would always have everything
inside.  This way, we keep the original method, even with
diverged branches.
2019-01-15 15:23:24 +00:00
Toufik Ben Jaa df39431fc0 [FIX] account_payment: validate s2s payment transaction
- If a customer pays an invoice using a credit card, the payment is
  taken in account but the invoice validation isn't processed until the
  Payment Processing cron do it.

  We want the invoice to be validated as soon as possible.
  To do so, we need to redirect the customer on the payment processing
  page that take cares of validating the payments.

  OPW-1913876

closes odoo/odoo#30217
2019-01-15 10:09:42 +00:00
Nicolas Martinelli 0f0ad7d1d4 [FIX] account: default account
When importing an invoice without specifying the type, the invoice type
is set to `out_invoice`, but the account set is the supplier account.

At this point, the invoice type is simply undefined (`False`). It will
be set by default at creation to `out_invoice`. Therefore, we reach the
`else` condition which uses the supplier info.

We simply inverse the condition, so it creates a consistent object.
However, it raises a bigger question about how the action context should
be kept at invoice. We won't address it :-)

opw-1925547

closes odoo/odoo#30154
2019-01-11 15:36:39 +00:00
Martin Trigaux 1e224d244c [I18N] export 12.0 source terms
Mostly following changes at 7f8631a913

closes odoo/odoo#30072
2019-01-15 15:15:34 +00:00
William Henrotin 6118b7a4a4 [IMP] mrp: missing pdf report
On a manufacturing order, there is no way to print a pdf report that
gather all finished products. This new report show product, quantity as
well as the lot barcode and name.

Task : 1923216

closes odoo/odoo#30011
2019-01-16 07:08:30 +00:00
Lucas Perais (lpe) ac7a02d60a [FIX] mass_mailing: unsubscribe page clearer
When arriving on the page to unsubscribe from mailing lists,
it was unclear whether the checkboxes were to mean "unsubscribe to this list"
or "subscribed to this list"

With a little string helper, it is clearer

OPW 1922308

closes odoo/odoo#30227
2019-01-15 13:44:18 +00:00
Swapnesh Shah 896ed33c77 [FIX] hr_holidays: Add missing parameters in method
closes odoo/odoo#30124
2019-01-10 18:09:01 +00:00
Alexandre Kühn abeb75ae60 [FIX] mail, im_livechat: no loose of livechats on page refresh
Before this commit, when livechat operators had chats in the
Discuss app and reload their page, they could loose some
pinned livechats.

This problem only occurred on livechat conversations when both
users are authenticated. Any two-user channels should always
be pinned by default, which is the case for internal chats.
This logic was applied on channels with type `chat`, but this
is ignored with livechats because they are channels of type
`livechat`.

This commit fixes the issue by defining internal chats and
livechats as `chat`. Any chat conversations are automatically
pinned when a message is posted, including livechats.

Note that before this commit, the livechats were visually
pinned in the Discuss app, although the server did not consider
them as pinned. The client-side code always assume conversations
are pinned, which is why a page refresh looks like a loose of
previously pinned conversations.

opw-1919327

closes odoo/odoo#30200
2019-01-15 12:17:24 +00:00