summaryrefslogtreecommitdiff
path: root/doc/reference
AgeCommit message (Collapse)Author
2019-04-02[IMP] web: editable list: table-layout: fixedAaron Bohy
This rev. changes the layout of *editable* list views to a fixed layout. This means that we are now responsible of the width of each column. To do that, we associate with each field type a factor, and the higher the factor is, the larger the column will be (w.r.t. the others). This default value can be overriden in the arch. The fixed layout allows to remove the absolute positionning of widgets inside editable lists (done in the next commit). Part of task 1915702 Co-authored-by: Martin Geubelle <mge@odoo.com>
2019-04-02[IMP] web,base: put buttons in list group headersMartin Geubelle
It is now possible to put buttons in the list view group headers. When the view is grouped by a many2one field, those buttons appear next to the header title when the group is opened. The buttons are specified in the views in a <groupby> tag in the list arch, with the following structure: <groupby name="groupedField"> <!-- must be a many2one --> <button type="object" name="my_method" string="Button1"/> </groupby> It is also possible to add `field`, inside the `groupby` which can be used for modifiers. These fields thus belong on the many2one comodel, like: <groupby name="partner_id"> <field name="name"/> <!-- name of partner_id --> <button type="object" name="my_method" string="Button1" attrs="{'invisible': [('name', '=', 'Georges')]}"/> </groupby> These extra fields are fetched in batch when grouping on the field. Part of task 1915702
2019-04-02[IMP] web,board: enable pagination in grouped listsAaron Bohy
With this rev., when there are a lot of groups in a grouped list view, groups are displayed under several pages, whereas they were all displayed in the same page before. This is especially interesting with the new 'expand' attribute, to ensure that we don't read records for a large number of groups. By default, the groups limit is set to 80 (like records), and to 10 is the 'expand' attribute is set to true. This limit can be overriden with the 'groups_limit' attribute. Part of task 1915702
2019-04-02[IMP] web: list: add expand attrsAaron Bohy
When this attribute is set to true on the <tree> root node, in a grouped list view, first level groups are automatically opened. Part of task 1915702
2019-04-02[IMP] web: list: import attrsAaron Bohy
The 'import' attrs is valid according to the rng definition of the list view. It is used in a few views in Odoo. However, it didn't actually work (in most cases, it worked by chance because it is set to "0" in addition to create="0", and create="0" already disables the import feature). With this ref, the 'import' attrs is taken into account and we can now disable the import feature even if the create one is enabled. Moreover, it is now documented.
2019-04-02[REF] base,account: list: remove deprecated attrsAaron Bohy
The 'toolbar' attribute is not referenced in the documentation, and it has no effect since at least v10. The 'on_write' attribute was referenced in the documentation, but is no longer used in Odoo and has no effect since at least v11. The 'colors' and 'fonts' attributes are deprecated since v9, and have no effect since v10. The 'string' attribute is deprecated since v8 and has no effect since v9. However, it is widely used in Odoo, so we must remove all occurrences before removing it from the rng.
2019-03-27[IMP] web: allow multiple fields in form viewsSarah Van Bogaert
This feature was already working in the actual version of Odoo but it is now tested. The following features are supported: - When the value of one widget is modified, the other ones change accordingly - The modifiers 'invisible' and 'readonly' are applied correctly if they differ between widgets. However, the modifiers 'required' must be equal for the several fields, otherwise the behavior is not guaranteed. closes odoo/odoo#32158 Signed-off-by: Géry Debongnie (ged) <ged@openerp.com>
2019-03-25[MERGE] forward port branch saas-12.2 up to 230ad8c381eChristophe Simonis
closes odoo/odoo#32088 Signed-off-by: Christophe Simonis <chs@odoo.com>
2019-03-21[MERGE] forward port branch saas-12.1 up to 6878c9f3424Christophe Simonis
2019-03-19[MERGE] forward port branch 12.0 up to 82c4393fd02Christophe Simonis
2019-03-13[REF] doc: add async javascript code sectionVincent Schippefilt
in javascript Cheatsheet, add a bunch of example about asynchronous code closes odoo/odoo#31716 Signed-off-by: Aaron Bohy (aab) <aab@odoo.com>
2019-03-06[REF] doc: promisify doc examplesDavid Monjoie
Also remove a file on async stuff as its content is outdated, and actually not used.
2019-03-05[IMP] guidelines: remove actually wanted PEP8 optionsThibault Delavallée
Task-1817988 closes odoo/odoo#28714 Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2019-03-05[IMP] guidelines: improve xml ids naming sectionThibault Delavallée
* rewording of XML naming section * remove the convention of suffixing inherited XML ids with `_inherit_my_module, as the information is in the complete XML id name (prefixed by module name). This will avoid too long XML ids. * extend convention for the name of groups, views, ... Task-1817988
2019-03-05[IMP] doc: add guidelines for window actions namingThibault Delavallée
Rewording of "action" naming section. Task-1817988
2019-03-05[IMP] doc: rewrite part of module structure and js references guidelinesjem-odoo
This commit * removes deprecated guidelines for static file and assets struture; * fixes some typo and mistakes; * correctly links JS guidelines section; * adds a running example to ease understanding; * adds missing section about security files; * adds text blocks for each directory to show directly the expected result of each section; * perform some rewording; Thanks to @pedrobaeza for its review. Task-1817988
2019-02-22[MERGE] forward port branch saas-12.1 up to 0f4abc5c228Christophe Simonis
2019-02-21[MERGE] forward port branch 12.0 up to 84143a34b31Christophe Simonis
2019-02-20[MERGE] forward port branch saas-11.3 up to 2c495502aa3Christophe Simonis
2019-02-20[MERGE] forward port branch 11.0 up to de8cefcef4dChristophe Simonis
2019-02-19[IMP] base,doc: add scales attribute to gantt viewDavid Monjoie
closes odoo/odoo#31210
2019-02-19[IMP] base,doc: add offset attributeDavid Monjoie
Depending on the scale, the number of units to add to today to compute the default period. Examples: An offset of +1 in default_scale week will open the gantt view for next week, and an offset of -2 in default_scale month will open the gantt view of 2 months ago.
2019-02-19[MERGE] forward port branch saas-15 up to c6c3d73391aChristophe Simonis
2019-02-19[MERGE] forward port branch 10.0 up to 6cf4f4924b0Christophe Simonis
2019-02-18[IMP] base,doc: re-add consolidation feature to gantt viewDavid Monjoie
closes odoo/odoo#31159
2019-02-14[IMP] base, doc: adapt according to the new gantt viewMartin Geubelle
The view has been rewritten from scratch so the doc and the RNG validation needed to be adapted. Co-authored-by: dmo-odoo <dmo@odoo.com> Co-authored-by: aab-odoo <aab@odoo.com> Co-authored-by: jat-odoo <jat@odoo.com> See odoo/enterprise#3437 Task 1856235
2019-02-14[IMP] *: add mobile (native) barcode scanner for product fieldRomeo Fragomeli
This commit change widget to many2one_barcode in these views: - sale_order - purchase - invoice - expense In the fields register 'many2one_barcode' is mapped to many2one as fallback. many2one_barcode is implemented in odoo enterprise Task ID: 1924766 closes odoo/odoo#31018
2019-02-13[IMP] web: add kanban searchPanelAaron Bohy
This rev. defines a searchPanel widget used in Kanban views to refine search according to specific dimensions. This wigdet is displayed as a sidebar to the left of the kanban view. Part of task 1892462 Co-authored-by: Aaron Bohy <aab@odoo.com> Co-authored-by: Mathieu Duckerts-Antoine <dam@odoo.com> Co-authored-by: Raphael Collet <rco@odoo.com>
2019-02-11[MERGE] forward port branch saas-12.1 up to 93d736e905eChristophe Simonis
2019-02-07[MERGE] forward port branch 12.0 up to a46138cb019Christophe Simonis
2019-02-06[MERGE] forward port branch saas-11.3 up to 0c42a607eceChristophe Simonis
2019-02-05[MERGE] forward port branch 11.0 up to e0b14bf9a7aChristophe Simonis
2019-02-04[DOC] reports: add documentation for custom fontsYenthe666
closes odoo/odoo#30813
2019-02-06[IMP] web: expose context in kanban templatesAaron Bohy
This rev. allows to use variable 'context' in kanban view templates. Part of task 34045 PR: #30881
2019-02-04[FIX] doc: specify correct field name in mailObay Abdelgadir
closes odoo/odoo#30718
2019-01-08[FIX] doc: fix numbered list in guidelinesVeikko Väätäjä
Fix rst-formating for numbered list under heading "Inherited XML". closes odoo/odoo#30043
2019-01-18[FIX] web, *: restore `context` key on search view fieldMartin Geubelle
Since the control panel refactoring, the `context` key on a `<field>` in the search view was ignored (like <field name='pricelist' context="{'pricelist': self}". The previous behaviour has been reintroduced and modified a little bit. For way too long, an ugly hack was used to get a numerical value in self. This ugly hack was still present but wasn't working since 8.0 (at least for the numerical value). A counter hack (see odoo/odoo@4a81e8a) was then applied to avoid really using a `selection` widget. To get even more confused, `self` was replaced by the *last* user-specified value. Well, it's time to clean this mess. Now, the `self` key is replaced by an array of user-specified values (by value, we mean the field value i.e. the `id` for a many2one, or the `key` for a selection field). Task 1902826 closes odoo/odoo#30368
2019-01-14[MERGE] forward port branch 12.0 up to 6a0675d36ddChristophe Simonis
2019-01-09[MERGE] forward port branch 12.0 up to 3e4138deaa2Christophe Simonis
closes odoo/odoo#30045
2018-12-06[FIX] doc: correct spelling mistake in javascript referenceFrederic Junod
2018-12-03[FIX] web: add support for string and invisible attributes in pivot viewlen-odoo
The pivot view may sum fields that are not really summable: unsigned values (e.g. in the case of refunds) values in different UOM, currencies (any different units really) Which causes confusion when these fields are displayed. We add support for the string and invisible attributes in the pivot view, so that a field can be given a more informative name or hidden altogether. opw 1909046 closes odoo/odoo#29144
2018-12-03[DOC] mixins: remove message_subscribe_users()Olivier Dony
It was dropped from 12.0 some time ago by b6d2351df45bdd049e42e828743b5dd2f1941649 and #23377
2018-12-05[MERGE] forward port branch 12.0 up to 053bb45706fChristophe Simonis
2018-11-28[DOC] doc: add warning in JS test documentationGéry Debongnie
This commit adds a warning for common causes of mistakes, while running the JS test suite. It is possible to lose a lot of time trying to make the tests pass if one does not notice that the browser window is not zoomed at 100%. Maybe this warning will help someone in the future... closes odoo/odoo#29021
2018-11-23[MERGE] forward port branch 12.0 up to b3052b690faChristophe Simonis
2018-11-18[DOC] orm: fix a typo in `parent_path` docOlivier Dony
2018-11-18[DOC] orm: update doc for `parent_path` fieldOlivier Dony
As of 12.0, the `parent_left` and `parent_right` special fields previously used to store the tree structure have been replaced with a single `parent_path` field. See also PR #22558.
2018-11-20[DOC] doc: add information on javascript testingGéry Debongnie
The documentation on JS testing was almost completely useless. With the introduction of our new test utility functions, it is time to document properly how the testing system works. closes odoo/odoo#28834
2019-01-29[ADD] web: server-side-rendered qweb templates as viewsXavier Morel
2019-01-28[MERGE] forward port branch saas-12.1 up to d3b8422c9c4Christophe Simonis
closes odoo/odoo#30614