Commit Graph
126133 Commits
Author SHA1 Message Date
RomainLibert 379b09e2ee [IMP] crm,sale*: change/add demo data for dashboards 2018-09-26 18:35:13 +02:00
fda-odoo 8eb76675dd [IMP] l10n_generic_coa : adding demodata for OCREmpty invoice with an attachment in order to demonstrate OCR feature 2018-09-26 18:31:38 +02:00
fda-odoo c49037dee7 [IMP] account: add option to install account_invoice_extract
As account_invoice_extract is now in auto_install=True, we should show a default option in account to install or uninstall the module.
2018-09-26 18:31:38 +02:00
Mathieu Duckerts-Antoine 692b557284 [FIX] web: avoid empty header in pivot.
In comparison mode, a useless line with an
empty header was sometimes created due to
problem in the treatment of read_group results.
This is no longer the case.
2018-09-26 18:21:39 +02:00
Mathieu Duckerts-Antoine 61253cbf6b [FIX] web: better submenu switcher style in groupby menu 2018-09-26 17:42:55 +02:00
Géry Debongnie cc5e298185 [DOC] doc: add documentation on Systray Menu (JS) 2018-09-26 17:39:51 +02:00
Thibault Delavallée a637eaf438 [IMP] hr_holidays: improve kanban views
Purpose of this commit is to make kanban vignette a bit more aligned with
Odoo style. Those are much better now thanks to @est-odoo.
2018-09-26 17:22:27 +02:00
Thibault Delavallée ebaf57a5a7 [IMP] hr_holidays: department leaves should be based on members
Leaves and allocations have a My Department filter allowing to see leaves
or allocations linked to my department. Currently it is defined as the
department the current user manages. It is better to see the departments
current user is a member as it has more uses notably for HR officers.

Coming from @est-odoo direct live feedback.
2018-09-26 17:22:27 +02:00
Josse Colpaert c02279c9c7 [REM] iot: remove server-side module 2018-09-26 17:10:47 +02:00
Rémi Rahir 258cd4a869 [REM] account: remove docsaway
Removing the install button for docsaway as it was removed from
enterprise in commit 13abf0bfe78f5a000fecb9a05eedf03f07146394
2018-09-26 16:35:59 +02:00
Vincent Schippefilt 4f624b70fc [FIX] web: dialogs with shouldFocusButtons option have the focus set.
Before this fix, sometimes dialogs that had the option shouldFocusButtons set on open
did not set the focus on the buttons. This is especially true for the "discard changes"
dialog where it is less usable with the keyboard.

After this fix, we wait for the widget to append itself to the dom before setting the focus.
2018-09-26 16:18:41 +02:00
Vincent Schippefilt fe4c3e0064 [IMP] web: do not set accesskeys on buttons with tabindex=-1
It excludes a lot of 'noise' when we do not set automatically access keys to all
the skipped items, this allows a better focus on actions when using the keyboard.
2018-09-26 16:18:41 +02:00
Vincent Schippefilt 01abb0f254 [FIX] web: focus the buttons in warning dialogs 2018-09-26 16:18:41 +02:00
len-odoo fd122aec52 [FIX] website: fix image carousel
We fix a number of problems:
    - grayscale filter not being applied except on desktop Firefox
    - incorrect vertical-align on iOS
    - image sliders being displayed below the margin on iOS
    - carousel indicators flickering at initial load
    - very short indicator panel, almost unusable on mobile
    - misaligned indicators because of first margin
There are two modes on which these fixes apply:
    - image gallery in slideshow
    - slideshow in modal
       (e.g. obtained by clicking on the gallery set on masonry mode)
Note that due to a refactoring, the gallerySlider was not loaded in the modal,
completely breaking the indicators.

Coauthored by @nle-odoo

opw 1874274

closes odoo/odoo#27226
2018-09-26 14:14:14 +00:00
Olivier Colson eeed14c2a3 [FIX] l10n_ro: remove double unaffected earnings account
Only one account of this type is allowed by COA. Before that, the module wouldn't install itself.
2018-09-26 15:56:11 +02:00
Adrien Dieudonne 498c27a6af [FIX] line chart: show tick labels on x axes
Before this commit all x axis labels were not displayed because
ticksLabels was empty.

Now, we show all labels except the first one and the last one
because they are truncate.

We need at least two intermediate labels to know the scale and
the direction.
So, we only remove labels when there is more than 3 data points.
2018-09-26 15:55:12 +02:00
Gert Pellin b4bcf86f8e [FIX] hw_scale: read values from Adam scale
with migration from python2 to python3 not all regexes where converted
to byte-array.
2018-09-26 15:49:17 +02:00
Mathieu Duckerts-Antoine 8513aa0f98 [IMP] web: readable format of numbers
The functions 'formatFloat' and 'formatInteger' now format
a number x like utils.human_number when a predicate 'humanReadable'
is available in options and humanReadable(x) is true.
2018-09-26 15:37:03 +02:00
Laurent Smet c1954ba9c6 [FIX] account: set inv state to 'open' when unreconciling in 'in_payment'
- Check post_at_bank_rec on bank journal.
- Create an invoice of amount=x
- Register a payment of amount=x using the bank journal
(invoice state is now 'in_payment')
- unreconcile the payment

... The invoice state is still 'in_payment' instead of going back to 'open'.
2018-09-26 15:34:21 +02:00
Aurélien Warnon 326dabce09 [IMP] product,(website_)sale: Product configurator naming/cleanup
Targets commit d3530eb07e

Purpose
=======

[Follow up AL review]
Code cleanup and some improved models naming for the product configurator feature (see targeted commit).
Mostly changes the "product.attribute" related models.

Updated models:

- "product.product.attribute.value" to "product.template.attribute.value"
- "product.attribute.filter.line" to "product.template.attribute.exclusion"
- "product.attribute.line" to "product.template.attribute.line"

Updated fields:

- [sale_order_line in sale/sale.py] "product_custom_variant_values" to "product_custom_attribute_value_ids"
- [product_template_attribute_value in product/product_attribute.py] excluded_for is now a o2m instead of a m2m
- [product.attribute in sale/product_product.py] "create_variant" field is now a Selection with "no_variant" (old false), "always" (old true), "dynamic" (new value)
- [product in product/product.py] "product_attribute_value_ids" to "product_template_attribute_value_ids"
2018-09-26 15:08:18 +02:00
jem-odoo ee766ab933 [IMP] hr_timesheet: test case for tracked project creation
Add some test to improve the test coverage
of hr_timesheet module. This commit brings
tests on time-tracked projects and their
deletion (and relation to their AA).
2018-09-26 15:05:25 +02:00
Demaret Rivarola Johan 1803571bdb [FIX] payment: always redirect when using wire transfer
The user should always be redirected when paying with wire transfer.
This is because the landing page displays useful data such as the communication.

Closes #27194
2018-09-26 14:50:17 +02:00
svs-odoo 2f2b5ead7c [IMP] web: update design and icons for dashboard subviews buttons
- Change icon and design for dashboard subviews buttons, according to
the new mockup.
- Primary buttons are put into the same 'btn-group' to have better
border jointure.
! The new icon for the 'fullscreen button' requires to update
Font Awesome (currently in 4.7 and need at least the 5.0).

Task #1882571
2018-09-26 14:35:10 +02:00
sri-odoo a0ff2966b6 [REF] web: data_comparison, output HTML adjust 2018-09-26 14:06:24 +02:00
sri-odoo 30b476ed21 [REF] web: design adjustments for dahboard view 2018-09-26 14:06:13 +02:00
Martin Geubelle 77f6384240 [FIX] base: description of contact widget options
There were spelling errors in the description of the `contact` qweb
widget options.
2018-09-26 13:48:48 +02:00
Martin Trigaux 2e6c071e9f [FIX] doc: set version for version dropdown
The version number is used in the version dropdown in the the switcher_list.html
file as well as in the page title
2018-09-26 13:46:51 +02:00
Raphael Collet d1d496c0b6 [FIX] models: avoid multiple identical warnings in onchange 2018-09-26 13:28:56 +02:00
XavierDo a4fa2a33f9 [FIX] web: order read_group by aggregable fields only in list view
The read_group method will ignore and display a warning when giving an
order on a non-aggregable field. Therefore, when accessing a list of
record from a list view group by some field and ordered on another one,
a warning will appear in logs (making the nightly clikall test yellow)

The solution here is to only order by current group by field and on
aggregable fields. We want to keep the user order to know the ASC/DESC
information.
2018-09-26 13:02:47 +02:00
Christophe Simonis a0d832efdc [MERGE] forward port branch saas-14 up to 218eec5482 2018-09-26 12:09:18 +02:00
Raphael Collet a99e04dfee [FIX] base: perform field reflection in batch
Speedup 4% of installation time.
2018-09-26 11:46:30 +02:00
Vincent Schippefilt c2b4790be4 [FIX] web: fix date picker fields do not capture the focus event when invisible
Before this fix, in form view, when a datepicker was not visible (because
they were on another page or literally invisible), when the user pressed
TAB and the datepicker was positionned after the current field in the
form, it was capturing the focus during the activate phase of the
navigation_move.
This is not correct for invisible elements.

After this fix, only focusable datepickers get the focus during the
activation phase of the navigation_move.

co-author: aab-odoo (aab@odoo.com)
2018-09-26 11:43:38 +02:00
Jeremy Kersten b732ab3dc9 [FIX] base: fix dev mode for get_view_arch_from_file and inherits
Before this commits, dev mode crash in some case (see below) when you declare
a website_page without field name='arch'.
After this commit, we follow the view_id (limit: only into the same file)

Contactus works luckily before this commit, because compute field xml_id on
View return the first ir_model_data (order by name asc by default).

website.contactus
    is BEFORE
website.contactus_page_ir_ui_view

 -- while --

website.bs_debug_page_view
    is AFTER
website.contactus_page_ir_ui_view

closes odoo/odoo#27234
2018-09-26 09:32:11 +00:00
Goffin Simon 736f49baef [FIX] stock_account: float division by zero
Steps to reproduce:

- Create a stockable product P with 2 quantity on hand
- Choose a delivery order in state 'done', unlock it and add a line with P
- Try to set 2 as done quantity and confirm the wizard

Bug:

A ZeroDivisionError(float division by zero) was raised.

opw:1886735

closes odoo/odoo#27547
2018-10-09 07:45:59 +00:00
Lucas Perais (lpe) 798d21ee3f [FIX] website_sale_options: on webshop, display attributes
Before this commit, when the names and values of the attributes on an optional
product were too long (and it did not take that much)
The display was broken into lines

After this commit, the container of the attributes works in standalone and won't break
but, on very small devices, it is not ideal either

OPW 1888416

closes odoo/odoo#27279
2018-09-27 11:42:13 +00:00
Nicolas Lempereur 28d79fc939 [FIX] mrp: pdf preview shown before saved
In the current code, we only show a PDF previewer if a PDF is already
saved. When the PDF is changed we see the preview if it was previously
saved also.

This seems to be the expected behavior, but this changeset changes it so
we could always show a preview.

opw-1888399
closes #27393
2018-10-09 11:27:27 +00:00
Christophe Simonis 218eec5482 [MERGE] forward port branch 10.0 up to 854eb97b2e 2018-09-26 11:28:33 +02:00
Géry Debongnie 046837b9a1 [DOC] sale: fix docstrings (doc is broken)
The crappy branch on the product configurator broke the doc build
process, because

1. we do not test that the doc is properly built
2. we merge branches without reviewing them
2018-09-26 11:23:02 +02:00
svs-odoo 49136a3f03 [FIX] web: menu items are now correctly sorted by alphabetical order
Menu items for measures list are now sorted by their 'string' value.
We set that string in lowercase because uppercase/lowercase influences
string comparison, so we are sure to compare always strings with the
same case.

This fix is effective for pivot view, cohord view and graph board.

Task #1882576
2018-09-26 11:14:32 +02:00
Arnold Moyaux d39847a375 [FIX] stock: match demo lot name with barcode sheet
Since demo data refactoring the lot name and reference has been
inversed. However the demo stock barcode sheet(oe) was not updated
and the scan of the lot trigger the warning unknown barcode.

We prefered to get back to LOT-00001 as name since we could modify the
label on the barcode to 0000047 but it does not reflect a lot name and
couldn't be unserstand by a user trying the demo data. We could also
keep the label LOT-00001 and modify the barcode content to 0000047 but
when the user would scan the LOT-00001, he will see 000047 on its screen
which is incomprehensible. So we choose the simple solution to keep
LOT-00001 as name and 0000047 as reference.
2018-09-26 10:53:43 +02:00
Arnold Moyaux a1ba385075 [FIX] stock: package to master data
commit 96abf2ca90 moved package menu to
operation and rename it delivery package. However move it to opeation
could confuse the user and let him imagine that he is able to create the
package content from this menu which is not the case. This menu only
allow you to see the package, its location and its content.

Also package are not always delivery package since it could be use in
internal picking type so it's better to remove the 'delivery' from the
menu item.
2018-09-26 10:53:05 +02:00
Yenthe V.G d48504f800 [IMP] website_crm_partner_assign: format partner activations form view
Put it in a sheet for a better rendering

closes odoo/odoo#27204
2018-09-26 08:41:01 +00:00
len-odoo 09340bb7f0 [FIX] mail: set the thread_id when creating a new thread
After a refactoring for v11, the id of a newly created thread is not returned
anymore.
Therefore server actions weren't being executed on newly created records.

opw 1886383

closes odoo/odoo#27238
2018-09-26 08:36:14 +00:00
Christophe Simonis 854eb97b2e [MERGE] forward port branch 9.0 up to bc14f30ecc 2018-09-26 10:17:05 +02:00
svs-odoo 9095592a46 [DOC] document value_label attribute
Document 'value_label' attritube of dashboard aggregate and formula.
2018-09-26 09:33:58 +02:00
svs-odoo de2a1d328d [FIX] web: replace bad indentation characters
Done when working on task #1882569
2018-09-26 09:33:03 +02:00
Nicolas Martinelli 7b13888c8e [FIX] mrp: Cost & Structure
- Create the following BOM for 100 Units of A:
   15.0 kg of C1
    1.0 kg of C2
  500.0 g  of C3
- Click on 'Cost & Structure'

The quantities and costs of 100 Units are used for 1 Unit.

opw-1886959
2018-09-26 09:27:47 +02:00
Yenthe V.G 81c15686bd [IMP] mail: group fields per topic
Redesign the mail tracking view

closes odoo/odoo#27188
2018-09-26 07:08:11 +00:00
Nicolas Martinelli a6bf3ef7d8 [FIX] point_of_sale: AccessError
Missing `sudo` which prevents a non-admin to close a POS session.

opw-1888252
opw-1888358
2018-09-26 08:05:29 +02:00
Josse Colpaert f04ede4ec8 [IMP] pos_mercury, pos_restaurant: posbox -> IoT Box 2018-09-25 23:01:41 +02:00