Commit Graph
126133 Commits
Author SHA1 Message Date
Christophe Simonis 503c7a3d65 [MERGE] forward port branch 10.0 up to baf3c5712d 2018-09-28 19:10:04 +02:00
Christophe Simonis aef15f3d5d [FIX] account,event: force no groups on views
Oversight of f56ad6daf8
2018-09-28 18:59:05 +02:00
Romain Derie af0e47f42f [FIX] sale_coupon: compute fixed amount as such
Commit 092200073 broke the discount computation for discount of type
fixed_amount. Indeed the appropriate method was not called anymore and such
discount type would be computed as percentage discount with default value of
10% (field default for percentage).

opw-1888484
2018-09-28 18:14:10 +02:00
Christophe Simonis baf3c5712d [MERGE] forward port branch 9.0 up to 70028701b3 2018-09-28 18:06:03 +02:00
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
eco-odoo feb792d1cf [FIX] account_budget: allow saving multiple budget lines
The constraint did not take into account the possibility of adding
multiple budget lines at the same time.
2018-09-28 15:31:35 +02:00
Christophe Simonis 1c4b562d6a [FIX] website_sale_coupon: adapt test tour to new checkout flow 2018-09-28 15:11:19 +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
Martin Trigaux 21f8ee0119 [FIX] account: fallback for entries with no name
The name of an account.move.line is not mandatory
If a line with no name but analytic tags is posted, the name for the analytic
line should be computed differently (the name of an anlytic line is required).

Apply changes from f2b2d87236 to the _prepare_analytic_distribution_line method

Fixes #27281
2018-09-28 14:55:13 +02:00
Gustavo Valverde a9a556178d [FIX] stock_account: Use product display_name in errors
When working with product variants, if the error which gets displayed does not include the product attributes, it's harder to identify the variant with the error.

closes odoo/odoo#27298
2018-09-28 12:38:34 +00:00
Christophe Simonis 56658ad8de [MERGE] forward port branch saas-15 up to 88fa382664 2018-09-28 19:17:24 +02:00
Gert Pellin 1b5f2ac420 [FIX] hw_scale: read values from Adam scale
with migration from python2 to python3 not all regexes where converted
to byte-array.

backport of b4bcf86f8e to 11.0

closes odoo/odoo#27252
2018-09-28 13:21:56 +00: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
Christophe Simonis 47ef5cb2c0 [FIX] sale_coupon: correct sending of coupon via email 2018-09-28 13:43:36 +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
Nicolas LempereurandWolfgang Taferner 46f2e1918f [FIX] base: access_token error handling correctly
When an attachment is requested with an access_token, a server error
would occur in some situation.

With this changeset when an access token is specified:

- returns a 404 error if the attachment does not exist
- returns a 403 error if the attachment has no access_token

Without this change, the added test would fail with:

```
 status = test_access(access_token='Secret')
 self.assertEqual(status, 403,
     "no access if access token for attachment without access token")
 | if not consteq(obj.access_token, access_token):
 | TypeError: unsupported operand types(s) or combination of types: 'bool' and 'str'

 status = test_access(access_token='Secret')
 self.assertEqual(status, 404,
     "no access with access token for deleted attachment")
 | if not consteq(obj.access_token, access_token):
 | odoo.exceptions.MissingError: ('Record does not exist or has been deleted.', None)
```

close #26647
opw-1884419
closes #27275

Co-authored-by: Wolfgang Taferner <wtaferner@users.noreply.github.com>
2018-09-28 10:42:51 +00:00
Nicolas Lempereur bedb3a1db0 [FIX] stock_account: visual ok product standard_price
The xml structure would display "$ 0.00Cost" instead of "Cost $ 0.00".

closes #27280
2018-09-28 12:31:41 +02:00
Olivier Colson 70028701b3 [IMP] l10n_lu: make 9.0 fix match the one done by mat in 11.5 2018-09-28 12:16:25 +02:00
Stefan Rijnhart 22cd49bafb [IMP] l10n_jp: reintroduce account 製品 with correct account code 2018-09-28 12:08:47 +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
Yenthe V.G 032d0ed90f [IMP] crm: format form views
Improve the rendering by putting them in a sheet

closes odoo/odoo#27202
2018-09-28 08:48:25 +00:00
Olivier Colson 7c9a3840f8 [FIX] l10n_jp: remove duplicate account code
Two account had the same account code. Because of that, one of them always failed to be created and logged a psql error. To fix that, we totally remove this account, as it never got created anyway.
2018-09-28 10:38:01 +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
Olivier Colson 51b7168d1b [FIX] l10n_lu: rename duplicate tax xml id
The second tax with the same xml id was never created, and caused a psql error to be logged.
2018-09-28 10:30:58 +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
Christophe Simonis 5d4ae94f4d [MERGE] forward port branch 11.0 up to d61a248523 2018-09-27 14:59:50 +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