Commit Graph
127612 Commits
Author SHA1 Message Date
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
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
Martin GeubelleandAaron Bohy f4b2060af5 [FIX] web: handle lazy load with previous actions
Before this rev. the lazy loading of views was correctly handled if there was
only one action in the action stack (which is usually the case when performing a
F5, the main use case of the view lazy loading).

Nevertheless, it might happen that the lazy-loading is used in top of other
actions (when performing a `doAction` with a form view for an action with
another view as first view, i.e. when leaving Studio while editing the form view).
The controller was `unshift` in the case (put in the first position of the
controller stack), which is not correct.

This causes the breadcrumb to be misordered and a traceback occured when trying
to access a breadcrumb element.

Co-authored-by: Aaron Bohy <aab@odoo.com>
2018-09-27 12:34:04 +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
len-odoo 2a697f1c5b [FIX] document: update environment before attachments update
Fine-tuning of commit:
b3a3ad8099
ac1e187eea

The environment should be updated before the call to _updateAttachments,
as it depends on the env active_id.

opw 1888651

closes odoo/odoo#27277
2018-09-27 10:11:12 +00:00
Xavier Morel 8eb8495710 [FIX] doc: backport of ac37ca39e
github_link compatibility with Sphinx 1.8

Backport to 11.0
2018-09-28 12:23:41 +02:00
Martin Trigaux b18a4cba0e [CLA] Inspur signs Odoo CCLA
Done at opw-1889259
2018-09-28 11:55:10 +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
Adrian Torres 67431fcfaa [REF] *: adapt code to new related default behaviour
This commit adapts the business code to changes introduced by
the change to related field's default readonly value 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:09:45 +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
Martin Trigaux cf50388d10 [FIX] product: correct bad translation
Already fixed on Transifex but saas-11.3 is no longer translated
opw-1888807
2018-09-27 11:17:43 +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