Commit Graph
121013 Commits
Author SHA1 Message Date
Cedric Snauwaert bc9e1f7ed0 [FIX] account: fix account type of other income and asset filter
Account type of other income should be of type 'income' and not 'other'
Filter 'Assets' in chart of accounts view is not working correctly due to typo in the filter.
2018-09-28 13:34:37 +02:00
Martin Trigaux 060e312a4f [FIX] account: do not translate taxes
This is already handled in the l10n_multilang module for countries with several languages
Same as the account names, it should not be translatable in standard
2018-09-28 13:32:32 +02:00
Xavier Morel 139aa9367d [IMP] base_import: performances of parse_preview by way of _try_match_date_time
* reduce number of patterns: using localised month names is useless
  since we're not setting the locale so it always uses the server's own
* avoid going through the entire strptime machinery: lift the bits of
  TimeRE we're interested in to get regex bits out of strptime patterns
  and just to an re.match to check whether value & pattern match

Further possible optimisation: cache REs and only compile user-provided
patterns dynamically.
2018-09-28 13:15:04 +02:00
William Henrotin 1c780d682f [FIX] stock: correct picking type view
The inventory overview is made of kanban cards of picking types. There is a link to the picking type settings on each card. Before this commit, the link was partially ouside the card.
2018-09-28 11:53:26 +02:00
Thibault Delavallée 96680a6ab1 [FIX] hr_expense: correctly create activities when submitting expense report
Call to the activities update method was not done when submitting the expense
report. Thanks to @odoongr for reporting the bug.
2018-09-28 11:28:37 +02:00
qsm-odoo 706c421511 [FIX] web_editor: restore snippet options preview
Hovering an option was not working anymore since BS4.
2018-09-28 10:54:34 +02:00
Stefan Rijnhart 234cbc0629 [FIX] l10n_jp: duplicate entry causes Postgres error
ERROR: ON CONFLICT DO UPDATE command cannot affect row a second time

Closes #27285
2018-09-28 10:31:07 +02:00
Stefan Rijnhart 5c20416c88 [FIX] l10n_lu: duplicate entry causes Postgres error
ERROR: ON CONFLICT DO UPDATE command cannot affect row a second time

Closes #27286
2018-09-28 10:00:25 +02:00
Stefan Rijnhart 926a5006a3 [FIX] base: Set enterprise modules to uninstallable
Two were left uninstalled instead of uninstallable

Closes #27288
2018-09-28 09:56:55 +02:00
Raphael Collet 574f4c3deb [FIX] base: update XML ids of automatic fields
Upon module upgrade, automatic fields are removed from `ir.model.fields`.  This
is because those fields do not belong to the module of their model.  Fix the
condition to update their XML id when the module of their model is upgraded.
2018-09-27 15:29:53 +02:00
Martin Trigaux 099092ab81 [FIX] sales_team: remove non-existant field
Introduced at a6ad87a
use_opportunities is a field of crm, not sales_team

Fixes #27276
2018-09-27 14:07:24 +02:00
qsm-odoo 509a7f73b0 [FIX] website, *: restore color edition in theme dialog
* base, web_editor

Commit https://github.com/odoo/odoo/commit/44d659d0df6b50ae230af39a0d41a46b9549e2ae
made the system work with multi-website but fetching the assets content
was unfortunately not working in multi-website...

Also restore correct search operators.
2018-09-27 13:56:09 +02:00
Jeremy Kersten 64719b71d5 [FIX] website, website_sale: add bg-{color}-light
And use it in confirmation payment card

FP request
2018-09-27 13:13:38 +02:00
Jeremy Kersten d8f0837f94 [FIX] website: last_website_so_id is website dependent
Before this commit, if you use this field outside of a controller website,
it will fail because this field depend of request.website that is only set
on controller of type website.

Now we return False if we call try to use this field outside of the website.

Eg: call get_current_pricelist in json
2018-09-27 13:13:38 +02:00
Vincent Schippefilt 1da9ed30c2 [FIX] crm: add more demo data for dashboard 2018-09-27 13:04:00 +02:00
XavierDo 76c5389cd9 [IMP] core: enable tests when test-tags are set
The goal here is to keep the default behaviour of test-enable and test-tags
except that test-tags will set test-enable to true if set.
- +standart must stay the default test-tags if none are set
	(only usefull if test-enable is set)
- should work no matter the order of "test-tags" and "test-enable"
	options  in args
- knowing the fact that for strange reason, _parse_config is called twice

PR: #27255
2018-09-27 13:01:22 +02:00
Mathieu Duckerts-Antoine 53a9bdf900 [FIX] web: only default time range works
If a default time range was set in the action but no
other default filter or groupby, the time range wasn't applied.
This commit fixes that situation.
2018-09-27 12:34:01 +02:00
Martin Geubelle fc268a37dd [FIX] mrp: correctly define BOM structure report
Calling `html_container` is not only useless when using the `basic_layout`
but it's also dangerous because it is already present in the latter.

The assets will be added twice in the report (once in the head and once in
the body).

Morever, the <base> tag was added in the report ; this tag is only useful when
rendering the pdf version, which uses minimal_layout that already set the
<base> tag ; this tag can only be present once in an HTML document so it has
been removed from the BOM report.

This results in a report not being editable by Studio.
2018-09-27 12:29:12 +02:00
ThanhDodeurOdoo ed2a8c4f3b [FIX] documents, base: pdf split
Reason: Following feedback from FP and AVW.

- Fixed the "split PDF" feature, it is now possible to leave an
empty page input, check the "split all" box and get a result.

Task: 1888982
2018-09-27 12:12:33 +02:00
Adrian Torres 3f4f77fd9d [REF] *: adapt code to new related default behaviour
This commit adapts the business code to changes introduced by
the parent commit in order to keep the same behaviour as before.

All readonly=False fields will have to be checked afterwards to confirm
that the business case requires write access to the source field.
2018-09-27 12:10:23 +02:00
Adrian Torres 52a8ed3c0c [IMP] fields: make related fields readonly by default
With this commit, any *explicitly* related fields will be `readonly=True`
by default.

*Implicitly* related fields (i.e. _inherits fields) however will keep the
source field's `readonly` attribute.

The rationales behind this patch are:
    * Enforce good practices, as the most common use-case for
      related fields is the same as for compute fields: to read data.
    * Avoid errors where some user saves a form view which contains
      a related field that the user doesn't have write access to.
2018-09-27 12:10:23 +02:00
Mathieu Duckerts-Antoine 3c093a8108 [FIX] web: human numbers and percentages
A recent modification of the float and integer
formatters allowing the rendering to be human readable
causes a bug in the percentage formatter for large values.
The reason is that the latter formatter uses formatFloat (wich can
now produce 'numbers' like 3k) and then parse the result. In the case
of 3k an error is raised since 3k is not recognized as a true number.

This fixes avoid to parse the number in case it has been formatted
to be 'readable'. Note that the parsing was essentially used
to produces better percentages like 10% instead of 10.00%.
This is not necessary in our case since utils.human_number takes care
of the unwanted (not all) decimals for us (the original number is always
rounded by utils.human_number).
2018-09-27 11:58:39 +02:00
Rémi Rahir 49695b0088 [FIX] snailmail: use the correct activity type
The activity generated by the snailmail sending is actually an exception
and should therefore use the corresponding activity type.
2018-09-27 11:30:16 +02:00
Laurent Smet 4237e162a2 [FIX] account: fix writeoff_suggestion in reconciliation widget
'data' doesn't contains any 'status' key but the 'write_off' key to know if some write off lines
must be applied.
2018-09-27 11:01:48 +02:00
TWA c257b8f0a9 [FIX] partner_autocomplete: prevent possible concurrent flag update 2018-09-27 10:45:30 +02:00
TWA e609a6ad4c [IMP] partner_autocomplete: improved additional informations template 2018-09-27 10:45:30 +02:00
TWA 03cd389024 [IMP] crm_reveal: improved additional informations template 2018-09-27 10:45:30 +02:00
TWA 9adbd587d3 [FIX] iap: fix double rpc in get credit widget 2018-09-27 10:45:30 +02:00
Martin Trigaux 2c26fc0e86 [FIX] calendar: do not crash on all day selection
While start and stop are required fields, it is possible to trigger the
computation from the UI before saving (e.g. create an event, set no date, check
"all day" checkbox).

Fixes #27265
2018-09-27 10:33:33 +02:00
Martin Trigaux 17416e664c [FIX] web: translate search view
Group By and Filters strings in the search view were not translatable
2018-09-27 10:24:32 +02:00
Géry Debongnie dbddb233cf [DOC] doc: rename AppSwitcher into HomeMenu
The AppSwitcher widget was renamed to HomeMenu a long time ago, but the
documentation was not updated accordingly.
2018-09-27 10:06:41 +02:00
Raphael Collet 3a30391e9d [FIX] base: superuser cannot become active 2018-09-27 09:54:28 +02:00
Vincent Schippefilt 13d3456791 [FIX] web: fix crash in sidebar when adding attachment
task-id : 1873908
2018-09-26 21:42:58 +02:00
qsm-odoo 6f3affe886 [FIX] website_blog: BS4, restore blog options 2018-09-26 21:08:35 +02:00
qsm-odoo 86e6345095 [FIX] website: allow choosing a body background in full layout
Previous system was strange: you were able to choose a body color but
not a body background when you were in full layout mode.
As transparent colors will soon be able to be chosen by the user, it
makes even more sense to give that possibility as the user can set a
body background pattern and a transparent footer color to let it
appear. Choosing a transparent background image which will be mixed with
the body color is also a common feature.

Also changes boxed layout option to use a white background for the boxed
content (we should maybe give the opportunity to the user to choose that
color instead of using always white).
2018-09-26 21:08:35 +02:00
qsm-odoo 5c9d313007 [FIX] website: better allow color extensions in the future 2018-09-26 21:08:35 +02:00
qsm-odoo 67ac1b541d [FIX] website: remove "Ok" button of theme customize dialog 2018-09-26 20:49:26 +02:00
ThanhDodeurOdoo 2d82692648 [REF] documents, base: binary_content
- Changed the binary_content method
to make it more generic and allow alternative ways of checking
the access rights by using a new method check_access_mode.

   Reason: Asked by ODO following documents' security review.

- if all pages are processed, splitting a pdf will
archive the original attachment.

   Reason: FP feedback.

Task: 1853490
2018-09-26 19:18:38 +02:00
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