Commit Graph
3355 Commits
Author SHA1 Message Date
Johan Tötterman 9c51b20cc0 [CLA] update SprintIT signature
Add Johan as a contributor for SprintIT

closes odoo/odoo#51063

X-original-commit: f96a17c6fdba4cc53d006db28117f46bbaf347ff
Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
2020-05-11 16:05:12 +00:00
Kristina Seregina 9d3966b434 [CLA] signature for kseregina
closes odoo/odoo#50962

X-original-commit: c280a248443b0c15c2d584bd297bd5950a64cef6
Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
2020-05-08 17:51:09 +00:00
John Touba d5100fc062 [CLA] signature for Jo541
closes odoo/odoo#50961

X-original-commit: cdf3b380b7090e1481acd96b80a20e851e88be81
Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
2020-05-08 17:48:44 +00:00
Yannick Tivisse 8ca96078db [IMP] rating: Add a retrocompatibily route
Purpose
=======

Even if the routes are correctly updated and the existing data is
correctly updated, the emails that were already sent to the customers
will be problematic, as we will provide a value which is not handled
anymore (10 for example).

To provide a retrocompatibility, deprecated the old route and
introduce a new one.

closes odoo/odoo#46296

Taskid: 2083096
Related: odoo/upgrade#889
Related: odoo/enterprise#10312
Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2020-05-08 12:17:20 +00:00
Benjamin Frantzen (bfr) e4a4ffb974 [IMP] customer ratings flow improvements
- Rename the 'Use Rating on Project' feature into 'Customer Ratings'
- Rename the 'Set Email Template to Stages' link to 'Set a Rating Email Template on Stages'
- Add an optional list view for the Stages menu
- display warning if the rating_template_id field is set and if one of the selected project_ids doesn't have the rating_status field set to true
- Project form view revamp
- rename the '% on tasks' stat button into 'Customer Satisfaction'
- Remove the 'no option' for the rating frequency field because it is required
- project form : Add a 'Go to Website' stat button
- Project dashboard: remove the 'Customer Ratings' menu item in more
- Ratings page: the 'Last 30 days' filter include ratings from today
- remove the Appointment / Helpdesk Customer Satisfaction / Live Support menu items

TASK ID : 1251
2020-05-08 12:17:20 +00:00
Victor Feyens 1639343411 [FIX] doc: confirm attribute isn't supported in list buttons
Closes #37036
Forward-port of #50831

closes odoo/odoo#50872

X-original-commit: 27f67bfcb9033ceffc1f781bc3785113c82d4c9c
Signed-off-by: Victor Feyens (vfe) <vfe@odoo.com>
2020-05-07 14:51:14 +00:00
Martin Trigaux 38f5004456 [FIX] doc: escape URL
The ampersand (&) needs to be html encoded to be evaluated correctly

Cherry-picked from odoo/odoo#46526
Courtesy of Olaf
Closes odoo/odoo#46526

closes odoo/odoo#50852

X-original-commit: 28b977d4702cd64290c5e48f39c8df2ad9819483
Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
2020-05-07 12:13:02 +00:00
2c102c292f [IMP] web: search panel counter changes
This commit introduces several changes in the search panel with
respect to record counts:

    - the record counts are now also available for
      the fields with select="one" attribute
      (if not disabled explicitely).
    - the record counts are better computed using the idea that
      selected values within a group should not impact the counts
      for the group values but only the counts for the other
      group values.

On the way we have changed two keys in the values returned
by the server:
    - 'count' becomes '__count'.
      It has been done to avoid a possible clash in case a model would
      have a field named 'count' and that the field values would be
      wanted for some reason.
    - 'name' (multi case) becomes 'display_name'.
      It has been done in order to make the select one and multi cases
      more similar and factorize some code.

TASK-ID: 2166814

Co-authored-by: Raphaël Collet <rco@openerp.com>
Co-authored-by: Mathieu Duckerts-Antoine <dam@odoo.com>
Co-authored-by: Alexis Lacroix <laa@odoo.com>
Co-authored-by: Julien Mougenot <jum@odoo.com>
2020-05-05 19:23:20 +00:00
Osiris Roman a3e61f54d1 [FIX] l10n_ec: correct currency
The currency of Ecuador is USD, ECS is archived.
Add states of Ecuador
Signs CLA

Modificando la moneda oficial de Ecuador de sucre a dolar.
La moneda oficial del Ecuador cambió de sucre a dolar en el año 2000.

introducing Ecuadorian states

Correcting previous commit according to mart-e especifications
State codes follow the ISO 3166-2. Each code is compound by two parts separated by a hyphen "-". First part is "EC" (The ISO ecuadorian code), and the second part is the ISO state code.

Correcting res.country.state file according to mart-e especifications

Adding the states directly in the l10n_ec file

closes odoo/odoo#50653

X-original-commit: 1a6b70c6c3d8d739173de59d61563b0a7aad01c3
Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
2020-05-05 12:40:10 +00:00
Aaron Bohy 22a66ae694 [IMP] hr: add Many2OneAvatarEmployee field widget
This widget is a variant of the Many2OneAvatarUser widget, designed
for many2one fields pointing to 'hr.employee'.

Part of task 2195254
2020-05-05 10:05:12 +00:00
Aaron Bohy 59641325c7 [IMP] mail: add Many2OneAvatarUser field widget
This widget is an extension of Many2OneAvatar, designed for
many2one fields pointing to the 'res.users' model, or a model having
itself a many2one field pointing to 'res.partner'.

With this widget, when the avatar is clicked, we open a DM chat
window with the corresponding partner. If the user clicked on itself,
we open a blank chat window for the sake of consistency.

In kanban views, this widget only displays the avatar.

Part of task 2195254
2020-05-05 10:05:12 +00:00
Aaron Bohy df4693e7ff [IMP] web: add Many2OneAvatar field widget
In readonly, this widget displays the image of the related record
next to its display_name. In edit, it behaves exactly like the
regular many2one.

Part of task 2195254
2020-05-05 10:05:12 +00:00
Aaron Bohy 4f8860e503 [IMP] web: add RemainingDays field widget
This widget can be used on date and datetime fields. In readonly,
it displays the delta (in days) between the value of the field and
today. In edit, it behaves like a regular date(time) widget.

Part of task 2195254
2020-05-05 08:48:34 +00:00
Aaron Bohy 1d6e4948d2 [IMP] web: add BadgeField component
This new field component displays the field's value inside a
bootstrap pill badge. Supported field types are 'char', 'selection'
and 'many2one'. The background color of the badge can be customized
by using the decoration-xxx mechanism, e.g.
 <field name="state" decoration-danger="state == 'cancel'" widget="badge"/>

Part of task 2195254
2020-05-05 08:48:34 +00:00
Aaron Bohy a1d3e224d8 [IMP] web: list: allow to add decorations on field nodes
In list views, one can specify decoration-XXX attributes on the
arch root node. Those decorations are evaluated for each record,
and the corresponding style is applied on rows for which the
condition is true.

This commit allows to specify those decoration-XXX attributes on
field nodes as well. In this case, when the condition is met by a
record, only the field on which the attribute is set will be
impacted.

Part of task 2195254
2020-05-05 08:48:34 +00:00
Alen Uglik 6247a5dba9 [CLA] Uglaos signs Odoo CLA
X-original-commit: 8de457e888545618b82925117efb070ac101201b
2020-05-04 15:42:08 +00:00
Olivier Dony 4310ba3214 [FIX] doc/deploy: add recommendations for firewall rules
In some situations it is important to protect the Odoo service from
direct access from the internet, or to protect internal network
resources from the Odoo server itself.

This is heavily dependent on deployment requirements, and for standard
installations on a public cloud system, this may not be necessary.
Yet it seems useful to mention it in the deployment recommendations,
as it may not be obvious to our users.

Our thanks to Ameya Darshan for raising this concern!

closes odoo/odoo#50422

X-original-commit: da0d9ef4a6e20df765a20a6231b2fcc535d0d863
Signed-off-by: Paul Morelle <madprog@users.noreply.github.com>
2020-04-29 18:14:15 +00:00
Mihai Fekete 0157499600 [CLA] Add NextERP Romania CCLA signature
closes odoo/odoo#50462

X-original-commit: 9040ed92a9c570f5d0051fd2ce810ee6d93ed78e
Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
2020-04-30 11:54:38 +00:00
Commandant Custo 312e02616d [CLA] signature for sve-odoo
X-original-commit: b9d6b548f91311584e36c1d27dec9ce5824f4577
2020-04-27 18:31:59 +00:00
Denis Zhadan bdb89ee4e9 [CLA] Wiserby OÜ signs Odoo CCLA
closes odoo/odoo#49867

X-original-commit: 54becce444578b6b934b7888fca0679cc0f122c9
Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
2020-04-21 12:44:07 +00:00
Lucas Perais (lpe) 4c1feefd13 [IMP] web: Numeric fields can be non-formatted
This commit introduces a new option in fields inheriting from type Numeric
which is `format`.

By default, Numeric fields are formatted according to their subtypes and locale
Adding, in a view, the option format set to a falsy value
will prevent the field's value from being formatted.

```
<field name="int_field" options="{\'format\': false}"/>
```

Task 2050119
2020-04-17 13:56:08 +00:00
ryv-odooandThibault Delavallée 186cfb5ebd [REF] mail: make alias mixin multi-enabled
Purpose of this commit is to allow multi-create in alias mixin by correctly
creating / updating aliases in batch.

Task ID 1919277
Community PR odoo/odoo#41160
Enterprise PR odoo/enterprise#6983
Upgrade PR odoo/upgrade#872

Co-Authored-By: Rémy Voet <ryv@odoo.com>
Co-Authored-By: Thibault Delavallée <tde@odoo.com>
2020-04-17 06:52:09 +00:00
Romeo Fragomeli fbd1d7584a [FIX] tests,tools: remove unused code
Due to this commit: odoo/odoo@0ea67467b1 ( https://github.com/odoo/odoo/blob/0ea67467b1301b39a263a386a622e931784eb0de/odoo/tools/config.py#L521 )

the screencasts value is not a string anymore but a valid PATH.

So now you can't set '1', 'true' or 't' to force to have the
same directory as the screenshot dir.

Steps to reproduce:
odoo-bin ... --screencasts 1 (with a failed JS test to produce a screencast)

closes odoo/odoo#49665

X-original-commit: ab1bf59a3b78f3c0857755cb2439636b6df297c3
Signed-off-by: Christophe Monniez (moc) <moc@odoo.com>
Signed-off-by: rfr-odoo <rfr-odoo@users.noreply.github.com>
2020-04-16 13:28:07 +00:00
clementmbr c5cf9e9e5e [CLA] Update Akretion - Add clementmbr
closes odoo/odoo#49487

X-original-commit: 8ba9507070c262d137115f475cda9e046bbb1cb8
Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
2020-04-14 08:46:02 +00:00
Payam Yasaie de322086eb [CLA] signature for Yasaie
closes odoo/odoo#49481

X-original-commit: 1a0efff25d22f5ee973553ff4b0c15b58baf2577
Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
2020-04-14 08:33:34 +00:00
Christian Hattemer 7de2bb97c9 [CLA] signature for KrilleGH
closes odoo/odoo#49374

X-original-commit: d82f1256b3ce1910576b03552fee03de337d72a5
Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
2020-04-10 09:08:16 +00:00
Julien Mougenot ed38c2adb8 [FIX] web: flatten t-call-assets in test assets bundle
Before this commit, the test assets were called with a `t-call-assets` and contained
themselves some other `t-call-assets` to the back-end assets. According to the current
specification, having nested `t-call-assets` will result in a compilation of the
lower levels regardless of the current debugging mode.

Now, the test bundles (desktop & mobile) have been arranged so that their `t-call-assets`
are all called on the same level.

closes odoo/odoo#49306

Related: odoo/enterprise#9797
Signed-off-by: Aaron Bohy (aab) <aab@odoo.com>
2020-04-09 14:59:54 +00:00
ggros ebe7fabf98 [FIX] doc: themes tutorial
* Outdated xml

See https://stackoverflow.com/questions/53160591/extending-default-template-odoo-12/53162439#53162439

Courtesy of EvgenijjKum from #41970.

* Outdated javascript

See https://stackoverflow.com/questions/41061604/odoo-10-how-to-create-snippets-javascript-option#41062045

closes odoo/odoo#49308

X-original-commit: bdf8ef755a0462871bc907c68597a56d332876e9
Signed-off-by: Victor Feyens (vfe) <vfe@odoo.com>
2020-04-09 10:53:35 +00:00
ggros b3c62611d6 [CLA] signature for ggros
X-original-commit: 45c0f78128d3d62592ff40bf121c74b178b98971
2020-04-09 10:53:35 +00:00
xO-Tx 4a1bd8fe79 [IMP] doc: Update Js control panel
Update information in JS doc for 13.0 (replace control panel mixin with the hasControlPanel attribute).

closes odoo/odoo#49291

X-original-commit: 0d46f49a00c6ecb62725ab97c1f337d1b0666852
Signed-off-by: Denis Ledoux (dle) <dle@odoo.com>
2020-04-09 09:36:21 +00:00
Victor Feyens 57eb964182 [IMP] base: document all field types.
closes odoo/odoo#49135

X-original-commit: cc653d3f1a49e2b7b2cc0ec833097bd7cf3528a1
Signed-off-by: Victor Feyens (vfe) <vfe@odoo.com>
2020-04-07 12:11:57 +00:00
Florent de Labarre 857aaef011 [FIX] doc : missing state on ir.actions.server examples
closes odoo/odoo#48871

X-original-commit: 7f806fd661f373201396861b77b64a71decf52a9
Signed-off-by: Victor Feyens (vfe) <vfe@odoo.com>
2020-04-02 11:29:04 +00:00
Adrian Torres 5952928b42 [REM] *: remove various unused import shims
Before this commit, a lot of leftover import shims existed in the
codebase for py2-py3 compatibility, these are no longer needed since
Odoo 13.0+ doesn't support Python 2 anymore and is (finally) in EOL.

With this commit, these shims are dropped, making the code cleaner,
easier to read and with one less dependency.

Queue -> queue -> py2-py3 compatibility
xmlrpclib -> xmlrpc.client -> py2-py3 compatibility
ConfigParser -> configparser -> py2-py3 compatibility
itertools.izip_longest -> itertools.zip_longest -> py2-py3 compatibility
urllib -> urllib.request -> py2-py3 compatibility
__builtins__ -> builtins -> py2-py3 compatibility
_winreg -> winreg -> py2-py3 compatibility

mock -> unittest.mock -> merged into CPython

The debian/fedora packages and requirements.txt have been updated accordingly

closes odoo/odoo#44601

Related: odoo/enterprise#8141
Signed-off-by: Xavier Morel (xmo) <xmo@odoo.com>
2020-04-01 12:45:40 +00:00
Dhruv PatelandAaron Bohy ae610d0e20 [IMP] web: graph: drill down to records in bar/pie charts
After this commit, in the graph view, when the user clicks on parts
of the bar and pie charts, it opens the list view of the concerned
records (like what was already done in the pivot view).

This is the default behavior, but it can be deactivated by setting
the attribute 'disable_linking' to true in the view.

Task 2198461

closes odoo/odoo#47796

Signed-off-by: Aaron Bohy (aab) <aab@odoo.com>
Co-authored-by: Aaron Bohy <aab@odoo.com>
2020-03-31 19:15:10 +00:00
Tiffany Chang (tic) 1ac243c21c [IMP] various: Replace incorrect use of "edition"
"Edition" is a French-English false friend word. "Edition" in English
means "version" whereas "edition" in French means "editing". This commit
updates user facing strings/documents that incorrectly use "edition" instead
of "edit" or "editing". Attempts were made to clean up English around
"edition" usage so please excuse any errors from lack of context
knowledge. Code comments and names incorrectly using "edition" were NOT
updated.
2020-03-31 10:31:35 +00:00
Yenthe666 307263c22d [FIX] doc: no longer use customer in API
Before this commit the documentation had quite some samples with 'customer', '=', True. Since in V13 this field on the res.partner model no longer exists we've removed it.

closes odoo/odoo#48453

X-original-commit: 2215d803aa35cdd13ab7f989c807bc7f575aaa8e
Signed-off-by: Victor Feyens (vfe) <vfe@odoo.com>
2020-03-26 16:02:39 +00:00
Mario Krajacic 4d9d90bae0 [CLA] signature for mkrajaci
closes odoo/odoo#47775

X-original-commit: 2b81684a0a472303a40e3c1487fd5f4334658737
Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
2020-03-17 09:48:34 +00:00
Jesús Alan Ramos Rodríguez d0bb42916f [CLA] update cla for Jarsa
closes odoo/odoo#47734

X-original-commit: 815d8894b638685fe106e585f0f353587d1593da
Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
2020-03-16 20:42:24 +00:00
bart.vanbossche cd8a25c20a [CLA] add bartvanbossche to DynApps CLA
closes odoo/odoo#46819

Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
2020-03-16 07:57:09 +00:00
fw-bot 13c326f6dc [FIX] doc: increase requirement
Partial cherry pick of e4b75149f7
Sphinx 1.6.7 is the minimum in debian stable and ubuntu LTS

X-original-commit: 516e7854fd61c75865bb444e3614cad20283275e
2020-03-10 15:24:11 +01:00
sbejaoui 2b5ef9f63f [CLA] add signature for sbejaoui
Done at odoo/odoo#46379

closes odoo/odoo#47262

X-original-commit: 0741c8c13fa5e47e59d03cdaa77f166b03be7b7b
Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
2020-03-10 09:55:06 +00:00
Daniel Stenlöv a0f0cdd70e [IMP] l10n_se: introducing swedish accounting
task-2073735
closed-40937

closes odoo/odoo#46607

X-original-commit: d7134b631c47dabc75dc6a6297f0a5cb8aa87407
Related: odoo/enterprise#8911
Signed-off-by: oco-odoo <oco-odoo@users.noreply.github.com>
2020-02-28 17:40:18 +00:00
Siddarth Gajjar 8b88f743b7 [ADD] doc: gantt view cell_create attribute.
closes odoo/odoo#46205

Related: odoo/enterprise#6327
Signed-off-by: Damien Bouvy (dbo) <dbo@odoo.com>
2020-02-25 12:22:20 +00:00
lejeune quentin 1dfda363a9 [FIX] doc: For IoT add reference for longpolling
Add details in IoT for the release of a event with the longpolling

closes odoo/odoo#46215

X-original-commit: 0ce8ab484d03ea2fdb318a7427fc20c0028bb964
Signed-off-by: Quentin Lejeune (qle) <qle@odoo.com>
2020-02-25 11:26:07 +00:00
Denis Ledoux 7a928bbdfb [FIX] doc: backend, internationalization, load a translation no longer exists
It has been replaced by a button in the languages list & form views
`Activate Language and Update Translations`

closes odoo/odoo#46070

X-original-commit: d451924dc79e84bb556ca7bc63b9f2908c4d077e
Signed-off-by: Denis Ledoux (dle) <dle@odoo.com>
2020-02-24 11:13:23 +00:00
Sayan Bhowmik 49c87c2705 [FIX] doc: correct typo
Ko is in French

closes odoo/odoo#45984

X-original-commit: abdfba83f1f7aa16235ee6479e93a09e5edd2239
Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
2020-02-21 17:21:44 +00:00
Antoine Prieels 4a6d3ae934 [IMP] doc: Add reference for IoT
Add documentation for development of new Drivers for the IoT Box.

closes odoo/odoo#45990

Taskid: 2092878
X-original-commit: 246060c0757b52725ebd93164c8151fa8db2c6b9
Signed-off-by: Antoine Prieëls <aprieels@users.noreply.github.com>
2020-02-21 18:07:11 +00:00
Denis Ledoux c59aefb783 [FIX] doc: backend, internationalization, renamed menus
closes odoo/odoo#45946

X-original-commit: 08df477c819aab1c91b04fada285ae1aae340800
Signed-off-by: Denis Ledoux (dle) <dle@odoo.com>
2020-02-21 13:42:11 +00:00
Paul Morelle 8ec5ab0078 [FIX] doc: gantt view no longer support date_delay
Use date_stop instead, and remove the instruction to remove the computed
field.

closes odoo/odoo#45669

X-original-commit: 3650adbac52d19ecc6265d90babeb6fc270d3ac2
Signed-off-by: Denis Ledoux (dle) <dle@odoo.com>
2020-02-18 19:20:14 +00:00
Paul Morelle 67b114da55 [FIX] doc: add missing tag in documentation exercise
The diff was truncated earlier because the amount of lines has not been
incremented.

X-original-commit: ea4dc2e0f266e26d9596a8128b2e3a1fe6a325a4
2020-02-18 19:20:14 +00:00