Commit Graph
121033 Commits
Author SHA1 Message Date
Xavier Morel 10228fe3ef [ADD] web: ability to become superuser (uid=1)
* requires that current user has group_system
* only visible in debug mode (?debug)
* available at login or via debug menu
* special systray color in superuser sessions

Closes #27254
2018-09-28 17:25:36 +02:00
Martin Trigaux f4bfc90755 [REV] point_of_sale: display pricelist button only if enabled"
This reverts commit 7a417e173..03a20ff6cc

It should have targeted the master version and be squashed
2018-09-28 16:24:50 +02:00
Christophe Monniez 8c682544ea [FIX] config: add a config dest to test-enable option
Commit 76c5389 removed the option dest for test-enable leading to a
traceback when trying to save the configuration.
This was due to the fact that the options dict was sorted while
containing a None key because of the missing dest.
2018-09-28 16:11:22 +02:00
Laurent Smet d0316fab07 [FIX] account: fix auto-validate not working with amount < 0
- Create a statement line with amount < 0
- Create a reconciliation rule with writeoff_suggestion + auto_validate checked
- Open the reconciliation widget: the line is not reconciled.
2018-09-28 15:02:21 +02:00
Gert Pellin 03a20ff6cc [IMP] point_of_sale: pricelist discount on ticket
cleanup of prices printed on tickets
    <std-pricelist-price> -> <active-pricelist-price>
    <extra discount>
    <quantity> x <price-incl-discounts>
2018-09-28 15:01:46 +02:00
Martin Trigaux 3e77a95e5c [FIX] point_of_sale: fixup 2018-09-28 15:01:46 +02:00
lejeune quentin 088044811d [IMP] point of sale : Show discount when option enabled on pricelist
Many users are confused when using pricelists on the PoS :
When they tick the box "Show discount" on the pricelist, it has no impact when the pricelist is applied on the PoS.
They often report a ticket thinking it's a bug.

It can be useful to show the discount on the PoS when applying a pricelist, when users benefit from a preferred price,
the vendor often wants to show it to the customer.
2018-09-28 15:01:46 +02:00
lejeune quentin 799fb5e6f0 [FIX] point_of_sale : fix bug where we add lot.
An error occurs when adding a product with a batch sales rule
syntax correction
2018-09-28 15:01:46 +02:00
GabbasovDinar cc2eb5ea0f [IMP] point_of_sale: better merge detection
If sells
1. product A
2. product B
3. product A

the lines of product A were not merged

Closes #25540

closes odoo/odoo#26602
2018-09-28 15:01:46 +02:00
GabbasovDinar 7a417e1735 [IMP] point_of_sale: display pricelist button only if enabled
If the option use_pricelist is disabled, no need to display the button

Closes #25540
2018-09-28 15:01:46 +02:00
Sébastien Theys a3dc91a0db [IMP] sale: make SO download/print same on portal than backend
We don't want two different reports for the same thing.

We will therefore lose the ability to print the "quotation builder" report built with the snippets.

PR: #27293
task-1889346
2018-09-28 14:36:26 +02:00
Sébastien Theys 7f3b2d09c1 [IMP] account_payment,sale: change sign & pay button color
Green doesn't go well with purple.

PR: #27293
task-1889346
2018-09-28 14:36:26 +02:00
Sébastien Theys 3b5440e785 [FIX] sale: remove wrong chatter line when creating section/note
PR: #27293
task-1889346
2018-09-28 14:36:26 +02:00
Sébastien Theys 6b8d7bb6d6 [FIX] account: fix invoice iframe responsiveness
77be4214db introduced an issue where the meta data would not go to a new line on small screen (on the iframe).

PR: #27293
task-1889346
2018-09-28 14:36:26 +02:00
Sébastien Theys f19ad9d7b7 [FIX] sale_management: fix print of SO
9671ccb509 was forward ported but the field options was renamed in saas-11.5

PR: #27293
task-1889346
2018-09-28 14:36:26 +02:00
Martin Trigaux 3c516eeb6d [I18N] l10n_ch: sync translations with the .pot file
The relevant translations are in l10n_ch/i18n_extra
2018-09-28 13:49:18 +02:00
qsm-odoo 7bcb7934a6 [FIX] web_editor: restore white color for discard button
Fixing BS behavior in https://github.com/odoo/odoo/commit/e24c3409d915ed73d86077b723b6e0cd77134e80
broke that button color as the button bg was set to transparent, so the
text color was computed to dark instead of light (as it should).
2018-09-28 13:43:06 +02:00
qsm-odoo c4420253d7 [FIX] website, *: correct snippet addition option
* website_mass_mailing, website_twitter

A snippet option describes where standard snippets can be dropped in the
page (which is currently in oe_structure elements or html fields, except
for the footer which can only have one snippet). Some external snippets
in other apps or themes were not using this snippet option but defined
their owns which were not adapted to the correct drop locations.
2018-09-28 13:43:06 +02:00
Martin Trigaux d9c0dbcd19 [FIX] base_gengo,l10n_ch,mrp_bom_cost: export source terms
There were still reference to the remaining model: syntax while it should be
model_term:

Fixes #27268
2018-09-28 13:42:49 +02:00
Olivier Colson a6d4a5bb15 [IMP] l10n*: add missing descriptions to models
Before that, installing these modules triggered warnings.
2018-09-28 13:39:26 +02:00
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