From 50464f54613449be0f9be7b586e2810fc2da4403 Mon Sep 17 00:00:00 2001 From: Prakash Prajapati Date: Wed, 19 Jun 2019 07:21:59 +0000 Subject: [IMP] web,mail: kanban progressbar: filter on falsy value This rev. makes the part of the progressbar corresponding to falsy records 'alive': the user can now click on it to filter on records whose value is false for the progressbar field. Task 1952430 closes odoo/odoo#35100 Signed-off-by: Aaron Bohy (aab) Co-authored-by: Mohammed Shekha Co-authored-by: Aaron Bohy --- doc/reference/views.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'doc/reference') diff --git a/doc/reference/views.rst b/doc/reference/views.rst index 3955c5242d0..efe07c48076 100644 --- a/doc/reference/views.rst +++ b/doc/reference/views.rst @@ -1076,8 +1076,8 @@ Possible children of the view element are: the progressbar ``colors`` (required) - JSON mapping the above field values to either "danger", "warning" or - "success" colors + JSON mapping the above field values to either "danger", "warning", "success" + or "muted" colors ``sum_field`` (optional) the name of the field whose column's records' values will be summed and -- cgit v1.2.3 From 504b5fe5a9613bb836bd865475c4b17713b78864 Mon Sep 17 00:00:00 2001 From: Simon Lejeune Date: Wed, 28 Aug 2019 11:07:36 +0000 Subject: [ADD] fields, models: company consistency check Assigning `check_company=True` to a field will - set a default domain filtering the companies - allow to call `_check_company` on the records to ensure the domain is respected Setting `_check_company_auto = True` on a model will ensure `_check_company` is called at create and write, enforcing the multi company domain. Joint work with Raphael Collet task-1985992 --- doc/reference/orm.rst | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'doc/reference') diff --git a/doc/reference/orm.rst b/doc/reference/orm.rst index b71b52a8907..47b3d508a37 100644 --- a/doc/reference/orm.rst +++ b/doc/reference/orm.rst @@ -697,6 +697,13 @@ Model Reference :type: bool + .. attribute:: _check_company_auto + + On write and create, call ``_check_company`` to ensure companies + consistency on the relational fields having ``check_company=True`` + as attribute. + (default: ``False``) + .. rubric:: CRUD .. automethod:: create -- cgit v1.2.3 From 01f66151c0c9acc27dbcafa00fcdcd4546f1106e Mon Sep 17 00:00:00 2001 From: Mohammed Shekha Date: Mon, 20 May 2019 06:21:05 +0000 Subject: [IMP] web: remove m2o from supportedTypes in selection widget currently widget selection is not working in m2o in editable list view and to fix this issue it need a lots of changes to make it work properly, i.e. make '_fetchSpecialRelation' use correct domain for each record, batch requests as much as possible, also make all '_fetchSpecial...' work in the list case. So to avoid major changes remove supportedTypes from selection widget so user can not tempted to apply selection widget on many2one field. task-1871698 closes odoo/odoo#33485 Signed-off-by: Aaron Bohy (aab) --- doc/reference/javascript_reference.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'doc/reference') diff --git a/doc/reference/javascript_reference.rst b/doc/reference/javascript_reference.rst index d7fb8de399a..b3acee7b87b 100644 --- a/doc/reference/javascript_reference.rst +++ b/doc/reference/javascript_reference.rst @@ -1666,7 +1666,7 @@ Relational fields .. autoclass:: web.relational_fields.FieldSelection - Supported field types: *selection*, *many2one* + Supported field types: *selection* .. attribute:: placeholder @@ -1697,7 +1697,7 @@ Relational fields - many2one (FieldMany2One) Default widget for many2one fields. - - Supported field types: *selection, many2one* + - Supported field types: *many2one* Attributes: -- cgit v1.2.3 From 71570e49ab6a9d7c7950a5b683f504deded3dc04 Mon Sep 17 00:00:00 2001 From: Florent de Labarre Date: Tue, 9 Apr 2019 17:46:50 +0000 Subject: [FIX] doc: add parent_of operator closes odoo/odoo#32558 Signed-off-by: vfe --- doc/reference/orm.rst | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'doc/reference') diff --git a/doc/reference/orm.rst b/doc/reference/orm.rst index 2661615ce3a..842a62dd981 100644 --- a/doc/reference/orm.rst +++ b/doc/reference/orm.rst @@ -1116,6 +1116,12 @@ A domain is a list of criteria, each criterion being a triple (either a Takes the semantics of the model into account (i.e following the relationship field named by :attr:`~odoo.models.Model._parent_name`). + ``parent_of`` + is a parent (ascendant) of a ``value`` record. + + Takes the semantics of the model into account (i.e following the + relationship field named by + :attr:`~odoo.models.Model._parent_name`). ``value`` variable type, must be comparable (through ``operator``) to the named -- cgit v1.2.3 From b294333e94e2bf0858202f1cb7c386a8d6760a78 Mon Sep 17 00:00:00 2001 From: Richard Mathot Date: Thu, 29 Aug 2019 10:44:17 +0000 Subject: [FIX] doc: explanation for pg_path opw-2060249 closes odoo/odoo#36223 Signed-off-by: Xavier Morel (xmo) --- doc/reference/cmdline.rst | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'doc/reference') diff --git a/doc/reference/cmdline.rst b/doc/reference/cmdline.rst index fa57319e4f9..88d1b1c1774 100644 --- a/doc/reference/cmdline.rst +++ b/doc/reference/cmdline.rst @@ -170,6 +170,12 @@ database when creating new databases from the database-management screens, use the specified `template database`_. Defaults to ``template1``. +.. option:: --pg_path + + Path to the PostgreSQL binaries that are used by the database manager to + dump and restore databases. You have to specify this option only if these + binaries are located in a non-standard directory. + .. _reference/cmdline/server/internationalisation: Internationalisation -- cgit v1.2.3