Commit Graph

1901 Commits (65441f068fc70eb7fba8126af71289eeecc69f7c)

Author SHA1 Message Date
OCA-git-bot 4517793c6a Merge PR #1810 into 12.0
Signed-off-by pedrobaeza
2021-02-16 11:56:28 +00:00
Alexandre D. Díaz 8aef897c70 [IMP] web_widget_one2many_product_picker: BS grid columns 2021-02-16 09:24:04 +01:00
OCA-git-bot feeeef2ac6 web_widget_one2many_product_picker 12.0.2.0.0 2021-02-15 20:15:44 +00:00
oca-travis e652b70cd9 [UPD] Update web_widget_one2many_product_picker.pot 2021-02-15 20:11:07 +00:00
OCA-git-bot 5e026dd792 Merge PR #1802 into 12.0
Signed-off-by pedrobaeza
2021-02-15 20:06:19 +00:00
Alexandre D. Díaz 677c552b45 [IMP] web_widget_one2many_product_picker: Readme 2021-02-15 20:07:01 +01:00
Alexandre D. Díaz 185edf81be [IMP] web_widget_one2many_product_picker: Clean tests 2021-02-15 20:06:47 +01:00
Alexandre D. Díaz 6fd1f4f7e2 [FIX] web_widget_one2many_product_picker: Use a compact list of old widgets to destroy 2021-02-15 20:06:21 +01:00
Alexandre D. Díaz dccab1502a [FIX] web_widget_one2many_product_picker: Clean attention css classes 2021-02-15 20:05:50 +01:00
Alexandre D. Díaz b845fb5a72 [IMP] web_widget_one2many_product_picker: Force qty to 1.0 in virtual states 2021-02-15 17:38:42 +01:00
Alexandre D. Díaz 559dd04221 [FIX] web_widget_one2many_product_picker: Update widget state 2021-02-15 17:34:12 +01:00
Alexandre D. Díaz aa4ef9b0ed [IMP] web_widget_one2many_product_picker: Better usability 2021-02-15 17:31:50 +01:00
Alexandre D. Díaz c8f718cc3a [IMP] web_widget_one2many_product_picker: Only 'auto' save if has changes 2021-02-15 17:31:50 +01:00
Alexandre D. Díaz 9f5267e1c6 [IMP] web_widget_one2many_product_picker: Auto apply changes without confirmation 2021-02-15 17:31:50 +01:00
OCA-git-bot 5368e7a11d web_view_searchpanel 12.0.1.0.2 2021-02-12 10:03:19 +00:00
oca-travis 960a54006c [UPD] Update web_view_searchpanel.pot 2021-02-12 09:50:07 +00:00
OCA-git-bot c5f55a7081 Merge PR #1798 into 12.0
Signed-off-by pedrobaeza
2021-02-12 09:42:06 +00:00
OCA-git-bot 6a76145dfa web_responsive 12.0.2.3.6 2021-02-08 13:13:36 +00:00
OCA-git-bot eb49e659d8 Merge PR #1815 into 12.0
Signed-off-by pedrobaeza
2021-02-08 12:44:57 +00:00
Yann Papouin 9eb5f86510 [FIX] web_responsive: Do not set overflow property on inline fields
Co-authored-by: Alexandre Díaz <alexandre.diaz@tecnativa.com>
Ensure that the title is displayed while the user holds the mouse click (while selecting content)
2021-02-08 11:44:31 +01:00
Francesco Foresti 28e8b4f38b Translated using Weblate (Italian)
Currently translated at 100.0% (3 of 3 strings)

Translation: web-12.0/web-12.0-web_advanced_search
Translate-URL: https://translation.odoo-community.org/projects/web-12-0/web-12-0-web_advanced_search/it/
2021-02-04 12:44:56 +00:00
Francesco Foresti d7671c1d63 Added translation using Weblate (Italian) 2021-02-04 09:52:12 +00:00
OCA-git-bot fa3a601014 [UPD] README.rst 2021-02-04 08:45:08 +00:00
OCA-git-bot 5165e91680 Merge PR #1807 into 12.0
Signed-off-by Yajo
2021-02-04 08:30:37 +00:00
Jairo Llopis d13fb31e71
[IMP] web_dialog_size: add task to roadmap
It is important to let users decide their default dialog size. Some have ultrawide monitors and this module does more harm than benefit.

Here I add such task to roadmap, to avoid forgetting about it.

@Tecnativa
2021-02-04 08:26:26 +00:00
OCA-git-bot 0801651406 web_responsive 12.0.2.3.5 2021-02-03 17:09:37 +00:00
OCA-git-bot 79d324f4a3 Merge PR #1803 into 12.0
Signed-off-by legalsylvain
2021-02-03 16:08:08 +00:00
Quentin Dupont 7a8e2fd895 [ADD] Web widget Datepicker full options 2021-02-03 14:17:45 +01:00
Alexandre D. Díaz 8d04e635d8 [FIX] web_responsive: List view: Boolean toggle widget 2021-02-03 12:49:59 +01:00
Dmytro Katyukha 2f5ddbfd08 [FIX] search_panel view: Do not apply model domain to comodel
Description
-----------

This commit fixes incorrect bechavior (error thrown) in case when
additional `domain` provided to action (`ir.actions.act_window`)
that displays view with search panel enabled.

Before this commit
------------------

For example we have following models:
- My Category
- My Model

And in category view, we have stat-button that display number of records
of records in this category. On click, it have to open view for My
Model, with domain like `[('category_id', '=', 42)]`.
In this case, following error will be raised:

```tracaback
Error:
Odoo Server Error

Traceback (most recent call last):
  ...
  File "/opt/odoo/custom_addons/web_view_searchpanel/models/base.py", line 60, in search_panel_select_range
    hierarchical_naming=False).search_read(model_domain, fields),
  File "/opt/odoo/odoo/odoo/models.py", line 4615, in search_read
    records = self.search(domain or [], offset=offset, limit=limit, order=order)
  File "/opt/odoo/odoo/odoo/models.py", line 1581, in search
    res = self._search(args, offset=offset, limit=limit, order=order, count=count)
  File "/opt/odoo/odoo/odoo/models.py", line 4147, in _search
    query = self._where_calc(args)
  File "/opt/odoo/odoo/odoo/models.py", line 3939, in _where_calc
    e = expression.expression(domain, self)
  File "/opt/odoo/odoo/odoo/osv/expression.py", line 673, in __init__
    self.parse()
  File "/opt/odoo/odoo/odoo/osv/expression.py", line 854, in parse
    raise ValueError("Invalid field %r in leaf %r" % (left, str(leaf)))
ValueError: Invalid field 'category_id' in leaf "<osv.ExtendedLeaf: ('category_id', '=', 26) on bureaucrat_knowledge_category (ctx: )>"
```

Diagnostics
-----------

It seems that model domain was passed to comodel, thus system cannot
find field related to model in comodel. See code
(web_view_searchpanel/models/base.py", line 60, in
search_panel_select_range)

As tested, the `search_domain` causes this bug.

But if we look at implementation of same method
(`search_panel_select_range`) in Odoo 13.0 (see
[code](https://github.com/odoo/odoo/blob/13.0/addons/web/models/models.py#L214))
then we can see, that there is only empty domain applied for search.

Solution
--------

It seems, that variable `model_domain` could be simply removed, and
we could do the search in comodel without any extra domain in this case.

So, this commit, only makes imlementation of this method look same as in
Odoo 13.0

After this commit
-----------------

Everything is working fine.
2021-02-02 13:48:05 +02:00
OCA-git-bot f86a1ed87e web_responsive 12.0.2.3.4 2021-02-02 08:35:28 +00:00
OCA-git-bot ad825683e7 Merge PR #1797 into 12.0
Signed-off-by pedrobaeza
2021-02-02 08:29:10 +00:00
Alexandre D. Díaz efa36cf2e5 [IMP] web_responsive: Bigger checkboxes in list view 2021-02-01 17:10:48 +01:00
Yann Papouin 2ac734b3d7 Translated using Weblate (French)
Currently translated at 100.0% (1 of 1 strings)

Translation: web-12.0/web-12.0-web_dialog_size
Translate-URL: https://translation.odoo-community.org/projects/web-12-0/web-12-0-web_dialog_size/fr/
2021-02-01 12:44:53 +00:00
Yann Papouin 81a402e4b1 Translated using Weblate (French)
Currently translated at 100.0% (9 of 9 strings)

Translation: web-12.0/web-12.0-web_company_color
Translate-URL: https://translation.odoo-community.org/projects/web-12-0/web-12-0-web_company_color/fr/
2021-02-01 12:44:53 +00:00
Yann Papouin e184579379 Translated using Weblate (French)
Currently translated at 100.0% (2 of 2 strings)

Translation: web-12.0/web-12.0-web_widget_mermaid
Translate-URL: https://translation.odoo-community.org/projects/web-12-0/web-12-0-web_widget_mermaid/fr/
2021-02-01 12:44:53 +00:00
Yann Papouin 245e41b8e0 Translated using Weblate (French)
Currently translated at 100.0% (2 of 2 strings)

Translation: web-12.0/web-12.0-web_tree_duplicate
Translate-URL: https://translation.odoo-community.org/projects/web-12-0/web-12-0-web_tree_duplicate/fr/
2021-02-01 12:44:53 +00:00
Yann Papouin f53ebc6f88 Translated using Weblate (French)
Currently translated at 100.0% (9 of 9 strings)

Translation: web-12.0/web-12.0-web_translate_dialog
Translate-URL: https://translation.odoo-community.org/projects/web-12-0/web-12-0-web_translate_dialog/fr/
2021-02-01 12:44:53 +00:00
Yann Papouin 7bff02ac8b Translated using Weblate (French)
Currently translated at 100.0% (17 of 17 strings)

Translation: web-12.0/web-12.0-web_responsive
Translate-URL: https://translation.odoo-community.org/projects/web-12-0/web-12-0-web_responsive/fr/
2021-02-01 12:44:53 +00:00
Yann Papouin 1140805e3e Translated using Weblate (French)
Currently translated at 100.0% (12 of 12 strings)

Translation: web-12.0/web-12.0-web_m2x_options
Translate-URL: https://translation.odoo-community.org/projects/web-12-0/web-12-0-web_m2x_options/fr/
2021-02-01 12:44:52 +00:00
Yann Papouin 7baa3e8534 Translated using Weblate (French)
Currently translated at 100.0% (24 of 24 strings)

Translation: web-12.0/web-12.0-web_timeline
Translate-URL: https://translation.odoo-community.org/projects/web-12-0/web-12-0-web_timeline/fr/
2021-02-01 12:44:52 +00:00
Yann Papouin 700319d313 Added translation using Weblate (French) 2021-02-01 10:22:37 +00:00
Yann Papouin 8078e8561e Added translation using Weblate (French) 2021-02-01 10:17:09 +00:00
Yann Papouin 3444344533 Added translation using Weblate (French) 2021-02-01 10:16:03 +00:00
Yann Papouin e69c59b84e Added translation using Weblate (French) 2021-02-01 10:15:08 +00:00
OCA-git-bot 4e45f6a4be web_disable_browser_autocomplete 12.0.1.0.1 2021-01-31 19:28:29 +00:00
OCA-git-bot eecbc17e54 [ADD] setup.py 2021-01-31 19:28:29 +00:00
oca-travis 5f3885f02a [UPD] Update web_disable_browser_autocomplete.pot 2021-01-31 19:23:37 +00:00
OCA-git-bot c40d6213d5 Merge PR #1623 into 12.0
Signed-off-by legalsylvain
2021-01-31 19:18:45 +00:00
Renato Lima a7e287e2e7 [ADD] New module web_disable_browser_autocomplete 2021-01-28 20:18:14 -03:00