Commit Graph
3005 Commits
Author SHA1 Message Date
Vanneri 4db54fd906 [CLA] signature for Vanneri
closes odoo/odoo#59538

X-original-commit: d8c61bc71a5e86ec56ed3da6bd1c2a8c426ccdde
Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
2020-10-08 15:41:22 +00:00
Julien Castiaux 6504ac9e90 [DOC] update debian dependencies
On a fresh Linux Mint installation, the libraries used by Pillow and
psycopg2 are not installed. This update the list of dependencies so
users don't have to dig through Pillow/psycopg2 documentations in
order to find and install the missing dependencies.

closes odoo/odoo#59497

X-original-commit: 7ba29d237f9bead3f6d67e25d1343a0a3d126b9f
Signed-off-by: Antoine Vandevenne (anv) <AntoineVDV@users.noreply.github.com>
Signed-off-by: Julien Castiaux <Julien00859@users.noreply.github.com>
2020-10-08 10:56:09 +00:00
Ronald Portier 3c0c9ea2c2 [CLA] Update Therp BV CLA.
closes odoo/odoo#59486

Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
2020-10-08 09:57:32 +00:00
fw-bot 7076449752 [FIX] portal: share a record without partner_id field
The method _notify_get_groups is called to determine how a user should be
notified based on the groups he belongs to.
If a record is shared via portal but the model does not have a field named
`partner_id`, the method was failing.

With this patch, the presence of the field is checked first. No additional
access_token is computed if the field is not present.

Forward port of #59123

closes odoo/odoo#59310

X-original-commit: 6612c7ae766e996c57bda5c4c23132797f162f1e
Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
2020-10-06 15:53:14 +00:00
SilvioGregorini 5e7a471e70 [CLA] openforce signs Odoo CCLA
closes odoo/odoo#59276

X-original-commit: 3f184a2529ca5828fb18e463bea7386b70a802b1
Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
2020-10-06 13:02:15 +00:00
Swapnesh Shah b4795e6d3b [FIX] doc: correct link for runbot
Following the last summer runbot update, the URLs have changed

closes odoo/odoo#59241

X-original-commit: 7eaec4b2693b9aea67cfbde5d19dda152fd9f395
Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
2020-10-06 10:36:27 +00:00
Cyril VINH-TUNG ea05ced56b [CLA] EasyPME signs Odoo CCLA
closes odoo/odoo#59081

X-original-commit: ea31b502b5df8550357bb7f63580c2ca76849cc5
Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
2020-10-05 09:23:42 +00:00
Martin Trigaux 097de9be62 [FIX] doc: update version
This commit lands in master, the version switcher was displayed as
"14.0" instead of "master" when published to
https://www.odoo.com/documentation/master

closes odoo/odoo#58816

Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
2020-09-29 13:31:53 +00:00
Richard Mathot df14f6aef8 [FIX] doc: clarify "supported browsers"
closes odoo/odoo#58976

X-original-commit: 10fb7f0c9f9fc4e73dd75060055693e1745bd2ae
Signed-off-by: Richard Mathot (rim) <rim@openerp.com>
2020-10-02 10:54:23 +00:00
LuisMalave2001 b952b92221 [CLA] signature for LuisMalave2001
closes odoo/odoo#58808

X-original-commit: 5c771f5dc52eb1f18ae032b44d96c7bd94f96c9e
Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
2020-09-29 12:08:10 +00:00
Thierry Ducrest 590c5fbe2d [CLA] Add tdu to camptocamp cla
closes odoo/odoo#58773

X-original-commit: 1d95a9e540c442b65b1f51adde5a265bf8089bef
Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
2020-09-29 09:40:03 +00:00
Jorge Luis Quinteros ae7a3e09b2 [CLA] signature for JorgeQuinteros
closes odoo/odoo#58732

X-original-commit: 98c006e5c78bf7b31703846d3cf602da84e83a76
Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
2020-09-28 17:17:10 +00:00
Mohammed Alhalwachi 8310c44c0f [CLA] Signature for jidd6
closes odoo/odoo#58724

X-original-commit: e6249992b33b42edf191772dba4c406cbfcd7005
Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
2020-09-28 16:46:28 +00:00
Martin Trigaux 5c3923c3e3 [IMP] doc: specify the minimum version of PostgreSQL
Specify 10.0 as present in both the latest LTS versions of Debian and
Ubuntu (Debian Buster=11.0, Ubuntu Bionic=10.0)

Update link to point to a postgresql.org URL to be more "official"

Fixes odoo/odoo#34226

closes odoo/odoo#58710

X-original-commit: 698336cbcfdefd78728901edeb365febe0b8cb77
Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
2020-09-28 16:03:27 +00:00
root c4fa804cc6 [IMP] doc: update links to 14.0
closes odoo/odoo#58686

X-original-commit: 78abbd6472f4c389ef6b67a257754365f5b02741
Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
2020-09-28 14:07:25 +00:00
Jeremy Kersten d86a1fa685 [IMP] website: rename 'choose a theme' to 'pick a theme'
closes odoo/odoo#58446

X-original-commit: af99455d9c4314ef13d1014450d927f99cd16b9a
Signed-off-by: Jérémy Kersten (jke) <jke@openerp.com>
2020-09-24 15:01:55 +00:00
Kaushalya Mandaliya 6b31e9c16b [FIX] doc: fix some typing mistakes in guidelines
closes odoo/odoo#58322

closes odoo/odoo#58437

X-original-commit: 7ceb73d324cd90038c80a5c7d65d9f43fd4b264a
Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
2020-09-24 13:55:00 +00:00
Raf Geens cfe2d22999 [ADD] doc: port the searchbar from user to dev docs
The developer documentation already has a search functionality via Sphinx if
you use the right URL, but it was not exposed in the frontend. This commit ports
 the search bar from the user documentation.

Original commits: 17fc4219bd24e8993fc5ab3c00d9979f87a45e84 (rim) and
52e49eda472963e929ec7b004eae20c514364403 (kts) from
https://github.com/odoo/documentation-user/

closes odoo/odoo#58213

X-original-commit: b38059caf59a3fbd67989d89317cfdc9f3be35a3
Signed-off-by: Richard Mathot (rim) <rim@openerp.com>
2020-09-22 11:42:36 +00:00
Marcel Savegnago 043dcba4e0 [CLA] Escodoo signs Odoo's CCLA
closes odoo/odoo#58158

X-original-commit: 25c50242f9761257868a586dbf686d7aeb16c01c
Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
Signed-off-by: Marcel Savegnago <marcelsavegnago@users.noreply.github.com>
2020-09-21 15:46:10 +00:00
Martin Trigaux a55496dc8e [ADD] doc: sescurity pitfalls
Write guidelines on how to write secure code and avoid commons
mistakes.

Update outdated information and move existing security guidelines to
the same section.

closes odoo/odoo#58065

X-original-commit: 10184274fb6be1639d2047e863654ed5c7bef9f0
Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
2020-09-18 16:21:39 +00:00
Alex Hafner 7079d747e7 [FIX] core: use shortened table aliasing in get_join_conditions()
Current behavior:
Auto-generated SQL fails with ERROR: missing FROM-clause entry for table when table alias names exceed the target length of 63 characters. This is because odoo.osv.expression.py handles shortening the table name alias in generate_table_alias, but not in get_join_conditions. In the resulting SQL, shortened aliases are used in the FROM clause, whereas in the join conditions, the full alias is used, which is both exceeding the Postgres limit and not matching the table name alias in the FROM clause.

Expected behavior:
auto-generated SQL runs without errors.

Implementation of fix:
- refactor alias shortening into new function _shorten_alias to make it reusable
- Use _shorten_alias in both generate_table_alias and get_join_conditions

closes odoo/odoo#57944

X-original-commit: 40b97b37e2188b082cd70eec1cdf14bf9366377e
Signed-off-by: Raphael Collet (rco) <rco@openerp.com>
2020-09-17 12:22:13 +00:00
Raf Geens 3380ea7964 [FIX] doc: formatting/rendering issues
This commits solves different rendering issues in the javascript reference
documentation, following the work done in #57270, but for issues added in
further versions and missed in the forward-port.

Forward-port of #57758
Forward-port of #57775

closes odoo/odoo#57835

X-original-commit: 8885cf578468d34e740bada95440f092f10c6268
Signed-off-by: Victor Feyens (vfe) <vfe@odoo.com>
2020-09-16 11:47:15 +00:00
Victor FeyensandRaf Geens c4442e8341 [IMP] doc: related fields do not support chained x2m dependencies
The behavior isn't exactly undefined: it will appear to work if the
relation refers to only 1 instance. If there are multiple it will give
results for 1 instance and ignore the others. This behavior should not
be relied upon, hence I'm documenting it as undefined. I confirmed this
with mat from the ORM team.

Even better would be to raise an error or warning if `related` is used
in this context.

closes odoo/odoo#57270

closes odoo/odoo#57815

X-original-commit: 6ae421f551ee36afa836494bc8563fc9276ab31e
Signed-off-by: Raf Geens <raf-odoo@users.noreply.github.com>
Signed-off-by: Victor Feyens (vfe) <vfe@odoo.com>
Co-authored-by: Raf Geens <raf@odoo.com>
2020-09-16 10:21:36 +00:00
Raf Geens e179d4750d [IMP] doc: Add example for inherit_id + mode
Added an example because it's non-trivial to realize why you would want
to set `mode` to `primary` together with `inherit_id`.

Another way to look at it is that the view matching doesn't understand
delegation inheritance. If it did there would be no need to override
`mode` because it would be able to see that the parent and derived views
refer to related models. But since that feature might not be worth the
effort, it's ok for me to just document the current situation.

X-original-commit: 549d159a836229f634be04131db947b275240edb
2020-09-16 10:21:36 +00:00
Raf Geens 0447a061f1 [IMP] doc: Mention inherit_id needs a ref attribute
Also added an example.

X-original-commit: 9e7577bf550087159880de84706d4dad8cf99f93
2020-09-16 10:21:35 +00:00
Raf Geens 296b137acf [FIX] doc: Formatting issue with some bullet list lines
Some line items in a bulleted list would span a paragraph but the first
line of the paragraph would be in bold and the rest would be indented
and not bold below it. You would end up with sentences that broke off
half in bold and half in the regular font. This was due to wrong
indentation in the source.

The pattern was also used for more legitimate cases (field descriptions),
as well as borderline cases (where a section might have also worked).
I've updated the borderline cases to have consistent formatting across
the document and removed the bullet points that were prefixing
description lists in both cases.

X-original-commit: 2d865d80b1b9d14994562f0c77b16e99a4167fcf
2020-09-16 10:21:35 +00:00
Raf Geens e838ed8e10 [FIX] doc: Frenchism: edition -> editing
X-original-commit: 5a7e4e0d0943679c7a0c3feb5dcf82ec9efde094
2020-09-16 10:21:35 +00:00
Raf Geens 71566558bc [REM] doc: Removed dead Javascript API doc and link
MAT confirmed the Javascript API is currently not being built due to
repeated compatibility problems between ES6 and the docstring output
with no clear solution in sight.

X-original-commit: 3198d0120a9388768ee882bb98e279f860a5b456
2020-09-16 10:21:34 +00:00
Raf Geens 6fcfefc83e [FIX] doc: Truncate 680-line example data
The page shows the first 15 lines of a CSV in raw form as an example.
Next it shows the same data rendered as a table. However, it was
displaying the entire 680-line source data. `csv-table` doesn't have a
`:lines:` directive. I copied and truncated the original file for use
in the documentation.

X-original-commit: 04d4ec33043627747e36730953479557aae278f2
2020-09-16 10:21:34 +00:00
Raf Geens f116cbf004 [REM] doc: Removed redundant sentence
It links to the same url as the previous sentence.

X-original-commit: ec652ee2c82a52958066f9e7c3ca42be93413de6
2020-09-16 10:21:34 +00:00
Umar 1a32547682 [CLA] signature for emyu01
closes odoo/odoo#57692

X-original-commit: 581848eda89ddc697d35234634d5c430727b32b9
Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
2020-09-14 17:47:11 +00:00
Atchuthan Ubendran 30f5c32372 [CLA] update Sodexis CCLA
Add dvdhinesh
Remove amkarthik

closes odoo/odoo#57684

X-original-commit: 9cb093aecc7e50e2addf321e2d003680b6f31384
Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
2020-09-14 16:05:17 +00:00
Kenneth Hansen 059faa7f1f [CLA] Corporate signature for VK DATA ApS
closes odoo/odoo#57614

X-original-commit: 2527debe02aa7bdc65d0f572f7ddead6bb89d67b
Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
2020-09-14 09:21:13 +00:00
Jose Lopez 0502f5f526 [I18N] l10n_latam_invoice_document: add es_DO translation
For terms different than es

closes odoo/odoo#57550

X-original-commit: cb8e12aeda19373764fd01971aa9f7b24aef866c
Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
2020-09-11 14:18:08 +00:00
Victor Feyens a92b44dbd6 [FIX] doc: transient models now require access rights.
Since #43306, transient models now requires access rights.

Also fixes a little error: transient models can also refer to regular
records through m2m fields

closes odoo/odoo#57559

X-original-commit: 9106ff0e8c63accf54db2dd6ddfaf62479ded784
Signed-off-by: Victor Feyens (vfe) <vfe@odoo.com>
2020-09-11 15:01:53 +00:00
Ibrahima Gueye fffe2fcd0b [CLA] add new contributor in Optesis Signature
closes odoo/odoo#57471

X-original-commit: 37a54aca8b89f30d42b8ed5a2912461de0551bdb
Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
2020-09-11 07:07:53 +00:00
gaikaz 4072a1825c [CLA] Update Via laurea signature
closes odoo/odoo#57465

X-original-commit: 3c2fbda0b5b32d4c9e04a0afe5c12121e4533424
Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
2020-09-10 18:00:20 +00:00
Raf Geens 6d2488bb08 [FIX] doc: 'nusery' typo in examples
closes odoo/odoo#57454

X-original-commit: 3b4a0ab81a667c75ce11b8eec0cbf2469bc76f61
Signed-off-by: Richard Mathot (rim) <rim@openerp.com>
2020-09-10 15:46:27 +00:00
Raf Geens 06a18aa092 [IMP] doc: How to add a print action on a report record
If you define a report using `<report>` it will implicitly add that
action to a Print menu in the model's views. If you use ``<record>`` to
do the same, that won't happen unless you also set `binding_model_id`.

In older versions that wasn't really an issue because people mainly used
`<report>`, but it was deprecated in 13.5, hence this update. And it
applies to versions older than 13.5 as well, I tested until 11.0.

X-original-commit: 6768d4190993e95b50785ac4ebf3be7213ef5e3f
2020-09-10 15:46:26 +00:00
Xavier Morel 3e7d096f32 [WIP] base, auth_totp: add doc links for 2FA & API keys 2020-09-10 12:49:00 +00:00
KENLYLST 3f954ae580 [CLA] signature for KENLYST
closes odoo/odoo#57297

X-original-commit: 7ee9e547e85b1578d32ee33f08d77e121fd4905c
Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
2020-09-08 22:33:14 +00:00
Victor Feyens ebfd6d4ac2 [FIX] doc: binding_model_id isn't mandatory on actions.
Remove this incoherent comment, and move the interesting information in
the dedicated section.

closes odoo/odoo#57383

X-original-commit: 1be2806045a6d92416a63364391e035ed36589f0
Signed-off-by: Victor Feyens (vfe) <vfe@odoo.com>
2020-09-09 17:33:11 +00:00
Rémi Rahir 91f9853c8c [IMP] doc: update iap documentation
Some informations for the developpers do not fit in the technical
documentation. To solve this, we opened a new documentation page on
iap.odoo.com and this commit adds a reference to the said documentation.

Task - 2330046

closes odoo/odoo#57215

X-original-commit: a7b86da8a0ceea3268de9b0fa249a56223411293
Signed-off-by: Rémi Rahir (rar) <rar@odoo.com>
2020-09-09 07:17:22 +00:00
Nicolas Martinelli 6e382346b4 [FIX] doc: wrong list indentation
closes odoo/odoo#57286

X-original-commit: 892dd6860733c46caf379fd36f57219082331b66
Signed-off-by: Nicolas Martinelli (nim) <nim@odoo.com>
2020-09-08 21:23:43 +00:00
Sudhir ERP Harbor 19f7157267 [CLA] signature for sudhir-erpharbor
closes odoo/odoo#57160

X-original-commit: 8f94fa8c96f9c7e38f52ef95606659f742b2a9e6
Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
2020-09-07 09:11:35 +00:00
Éloi Rivard 9d00341850 [CLA] Sign CLA for Éloi Rivard
closes odoo/odoo#56761

X-original-commit: 7cf0f52d97480a26b7d3a88b47f62608cfbec5c5
Signed-off-by: Quentin Lejeune (qle) <qle@odoo.com>
Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
2020-08-28 19:36:12 +00:00
Antoine Prieels 72681dc53f [IMP] hw_*,point_of_sale: Cleaning IoT Box
- Split driver.py to multiple files
- Remove hw_proxy module as most of its routes were not used and
  move remaingin routes to a controller in hw_drivers
- Add missing coding and license lines at the beginning of files
- Reorder imports and remove unused ones
- Rename device_id to device_identifier for clarity
- Rename screen to display for consistency
- Other minors improvements

Taskid: 1973956
X-original-commit: 841c016913a87133bf7257c62ae5f6bf7d99e06d
2020-08-25 11:24:56 +00:00
Damien Bouvy be9ea60d07 [IMP] web: support custom create_name_field in calendar view
Until now, the quick creation dialog of the calendar view assumed that
the underlying model used a 'name' field for quick creation, with a
graceful degradation if it was not the case (redirect to the form view).

This prevented quick creation of models created through customizations
(for example).

This commit adds a `create_name_field` attribute on the view declaration
(similarly to many2one field) that allows to specify the field to use
during quick creation.

Task-2185423

closes odoo/odoo#48122

Related: odoo/enterprise#11242
Signed-off-by: Damien Bouvy (dbo) <dbo@odoo.com>
2020-08-24 11:50:15 +00:00
Ibrahima Gueye 8c083bcd3e [CLA] Signature for Optesis
closes odoo/odoo#56296

X-original-commit: 050218da483a123afccf56b5462be88c263726c7
Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
2020-08-21 12:08:01 +00:00
Telmo Santos 9bdba5b758 [CLA] add Telmo Santos to Camptocamp CLA
closes odoo/odoo#56057

Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
2020-08-21 10:15:49 +00:00