Commit Graph
3181 Commits
Author SHA1 Message Date
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
Raf Geens 389979572f [FIX] doc: correct typos including a parameter name
closes odoo/odoo#56232

Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
2020-08-21 06:26:40 +00:00
Thibault Delavallée fcd10b3691 [REF] iap, various: reorganize IAP module organization
PURPOSE

Clean and improve IAP tools integration in Odoo. Introduce bridge modules
to extract common features, notably for CRM and Partner.

SPECIFICATIONS

In this commit we reorganize IAP module to better understand its content
and ease future cleaning

  * have models separated from tools;
  * rename some tools to find their grep. An iap_ prefix is added to ensure
    we don't clash with other global functions or methods;
  * perform some linting;

To provide backward compatibility support we keep some import in init file of
IAP addon. Standard code is about to be updated but we want to avoid too
much issues when migrating code to 13.5 . Compatibility layer will be removed
after v14 final freeze.

LINKS

Task ID-2248367
Community PR odoo/odoo#53214
Enterprise PR odoo/enterprise#11258
Upgrade PR odoo/upgrade#1363
IAP PR odoo/iap-apps#191
2020-08-18 11:41:59 +00:00
Jérémy Hennecart 2c21301d31 [IMP] web: manage invisible fields in graph and pivot view
PURPOSE

Be able to remove some measures from graph / pivot views. Currently fields
are automatically added but some of them make no sense.

SPECIFICATIONS

Add the possibility to not display some fields in the measures dropdown for
the graph and pivot views.

When a field is not displayed in the measures of a pivot views we remove them
also from the list of groupable fields.

LINKS

Task ID-2288381
Community PR #54774
Enterprise PR odoo/enterprise#11970
Upgrade PR odoo/upgrade#1519
2020-08-18 08:56:48 +00:00
Michael Mattiello (mcm) 5750adea3a [IMP] doc: add limit parameter to map view
This commit adds some doc for the new `limit` parameter of map view.

Task id: 2150548

closes odoo/odoo#55856

Related: odoo/enterprise#10882
Signed-off-by: Vincent Schippefilt (vsc) <vsc@odoo.com>
2020-08-17 06:54:08 +00:00
Mihai Fekete 4145f4baca [IMP] l10n_ro: improved Romanian localization
this includes improvements in accounts, taxes,
fiscal positions, tax report, account groups etc

closes odoo/odoo#43095

Task: 48668
Closes: 43095
Signed-off-by: Josse Colpaert <jco@openerp.com>
2020-08-13 18:42:42 +00:00
Mathieu Duckerts-Antoine e3a2bb6e09 [IMP] doc: update doc on view attribute 'sample'
The attribute 'sample' is now also available for the reporting views
(the cohort, dashboard, graph, and pivot views). Here, we simply extend
the existing doc on the attribute.

Task ID: 2282196
2020-08-12 09:55:38 +00:00
Julien Mougenot c00e76b67c [FIX] web: Filter with domain disables category counters
Before this commit, the search panel was subject to some inconsistencies
when dealing with a category having enabled counters and with a filter
defining a "domain" attribute. Indeed, the counters could be in an
incorrect state if the right filters/categories were not loaded first,
with no simple way in doing so.

The search panel being complex enough as it is, we decided to disable
all categories' counters in the presence of a filter having a "domain"
attribute regardless of said domain.

closes odoo/odoo#55734

X-original-commit: e78f777bd8ccb314b85451cbc8d1dd9109997d7a
Related: odoo/enterprise#12341
Signed-off-by: Aaron Bohy (aab) <aab@odoo.com>
2020-08-11 10:12:15 +00:00
qsm-odoo 42e1d4ca60 [IMP] website, *: enable the parallax option for all snippets
*: web_editor, website_blog

Unfortunately, this feature revealed a new batch of flaws in the
editor widgets system so some hacks were made to make it work. We will
always have the time to improve the pure technical side later.

This commit also separates the notion of color filter from the notion
of parallax. A color filter can now be applied independantly, when
there is either a background image or a background video. Applying a
color filter on top of a background video is actually a new feature.
Applying a color filter on top of a background image is actually now
achievable by two different ways: this new color filter layer or by
applying the color transformation on the image itself via the related
option. Depending on the user case, both could make sense at the same
time, but more importantly: having a CSS color filter is useful for
using those for default Odoo content (e.g. like the current contact us
page where we use a cover banner with an image with a black filter on
top of it: doing that without CSS color filter would mean to alter the
image directly which would not be ok when the user changes the image).
Also, sometimes you want the unfiltered image on a page and the exact
same one but filtered on another (for example: forum images).

Note: this commit also "fixes" an issue: the optimization feature for
images when parallax was enabled was not available before.

Part of https://github.com/odoo/odoo/pull/47313
task-46147
2020-08-10 14:27:00 +00:00
Michael Mattiello (mcm) 1e11249c93 [IMP] base,web: add scales param to calendar
This commit adds the parameter `scales` in the calendar view's template.
This parameter can be used to choose which mode(s) is/are allowed.

This commit also refactors the way we manage calendar scales.
Before scales were defined in model and renderer, now it's defined
in the view and given to model, controller and renderer by params.

Task: 2193921
2020-08-11 12:32:54 +00:00
Michael Mattiello (mcm) 441d9f65b3 [IMP] base,web: add year scale to calendar
This commit adds a new year scale to the calendar view.
It comes with a new view in the calendar, this view displays a
4x3 grid which cells are month views.

Task: 2193921
2020-08-11 12:32:54 +00:00
hoangtrann 56523599e5 [CLA] signature for Hoang Tran
closes odoo/odoo#55738

X-original-commit: d83607a716744eee279b04c1d6771c8aed308e67
Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
2020-08-11 10:31:12 +00:00
Jorge Luis Juarez 9637de2f9e [CLA] signature for JorgeJuarezM
closes odoo/odoo#55505

X-original-commit: 3183a68002ce490eb2c821e8c7e0923b64cd2a18
Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
2020-08-06 07:18:23 +00:00
Mark Robinson 1f87150da2 [CLA] signature for Mark Robinson
closes odoo/odoo#55540

X-original-commit: cfde4bc8b7f0f7edcae6f33ed2ce6569fcc46ca0
Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
2020-08-06 10:45:44 +00:00
Bruno Zanotti (ADHOC) 44fb324f7a [CLA] add new member to Adhoc CLA
closes odoo/odoo#55527

X-original-commit: ac8d173064f033136f33272a8724e937e73b1b85
Signed-off-by: Josse Colpaert <jco@openerp.com>
2020-08-06 09:34:00 +00:00
Yousef Al-Hadhrami 00048bd24c [FIX] web: avoid double switching in RTL
The direction arrows in the datepicker were switched a first time in
fontawesome_overridden.scss

  .o_rtl
    ..fa-chevron-left,.fa-chevron-right
       transform: rotate(-180deg);

and a second time in datepicker.scss
  .o_rtl
     .bootstrap-datetimepicker-widget
        .prev,.next
	   transform: rotate(180deg);

The buttons were flipped twice

Signed the Odoo CLA

Fixes odoo/odoo#50090
Closes odoo/odoo#53369

closes odoo/odoo#54880

X-original-commit: 8629fa3fdfddbf24f48a58d5add0fcadca60fba4
Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
2020-08-04 10:53:15 +00:00
Julien Mougenot f21dc0c84b [DOC] doc: Document "today" and "now" in context
Documentation of the affected blocks have been updated to inform about
the contents of the "today" and "now" context values.

closes odoo/odoo#54438

Related: odoo/enterprise#11831
Signed-off-by: Aaron Bohy (aab) <aab@odoo.com>
2020-08-04 08:25:37 +00:00
Parveen c653afc81e [IMP] account: add return value
This allows the method to be called in RPC
The nil extension has not been enabled as explained at odoo/odoo#12289

closes odoo/odoo#55374

Cla: signature for parveenjangra290
X-original-commit: abac62f35c8cd293143e01c137c79519897eb21c
Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
2020-08-04 08:20:15 +00:00
Xavier Morel 96a3265118 [FIX] doc: remove <act_window> and <report>
* remove <report> and <act_window> form the backend tutorial
* remove documentation for <report> in the report doc

Also various fixes and improvements:

* add ACL to the wizard in the tutorial, as transients now require ACLs
* fix indentation & spacing in rST
* reword a few bits
* improve styling of footnote references (and recompile stylesheet
  with recent lessc which apparently changes its output formatting
  quite a bit)
2020-07-28 13:03:13 +00:00
Xavier Morel 48335c04bf [IMP] core: orm doc
* fix link from backend tutorial to log_access section
* flesh out log access documentation
* add documentation for log_access itself & improve doc for a few
  other model-level attributes
2020-07-28 13:03:12 +00:00
Victor Feyens 8d96f92bb1 [FIX] doc/views: header should be outside of sheet tag.
Forward-Port-Of: #54984

Original commit: d5e807e47edc641c8d9d97fe59d8d9eba40bd5af

closes odoo/odoo#55015

X-original-commit: e2c358adc7de11de28f18dbe36963ba71f95dd19
Signed-off-by: Victor Feyens (vfe) <vfe@odoo.com>
2020-07-27 17:22:14 +00:00
Victor Feyens 6c53332358 [FIX] doc/views: templates attribute isn't supported in calendar views.
Since
https://github.com/odoo/odoo/commit/369c20a99bd25172f72f4efde870172a4729aadc:
event cards cannot be customized anymore, only the popover is adapted
depending on <field> attributes inside the calendar tag.

Forward-Port-Of: #54984

original commit: 920599a46e1221c03a20e005a7ad5c61fa9107a0

X-original-commit: ef18d482a58bbff24ce1217619df603ec4670002
2020-07-27 17:22:13 +00:00
Julien Mougenot a7657fbf84 [IMP] web: Drop widget support in search view
Until now the "widget" attribute used in the search view was meant to
force the type of a field regardless of its definition. This system was
implemented quite a long time ago and is now useful in only one case:
searching for "reference" fields (we want them considered as char fields
else it is impossible to search on them).

This is why this commit completely removes the "widget" attribute
support in search views while consistently casting the "reference"
fields as "char" fields in the search bar.

Task 2061795
2020-07-27 08:03:18 +00:00
Victor Feyens c69a092b98 [IMP] doc: _inherits usage warnings
The delegation inheritance is very useful in some cases,
but its usage shouldn't be encouraged.

Furthermore, chained _inherits may result in unexpected
behavior/results,
and really shouldn't be used.

closes odoo/odoo#54864

X-original-commit: 4a06a4c79e962906832f98147fe87a2c19efaa75
Signed-off-by: Victor Feyens (vfe) <vfe@odoo.com>
2020-07-23 16:18:11 +00:00
Ivan Yelizariev 6d96111196 [FIX] doc: fix typo in guidelines
You can see on example below the updated line that it's module_name and not model_name

<!-- security -->
<record id="module_name_group_user" model="res.groups">
    ...
</record>

closes odoo/odoo#54756

X-original-commit: 56de03befa16eeaaec211b5fc08116ce778b52b7
Signed-off-by: Victor Feyens (vfe) <vfe@odoo.com>
2020-07-22 10:15:12 +00:00