Commit Graph

2200 Commits (f27f8bc62536781a2c20593cededc78dc5b47d8c)

Author SHA1 Message Date
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
OCA-git-bot 06a499ee72 web_widget_one2many_product_picker 12.0.1.4.0 2021-01-25 14:09:44 +00:00
OCA-git-bot 70d8fc7342 Merge PR #1788 into 12.0
Signed-off-by pedrobaeza
2021-01-25 13:59:11 +00:00
Alexandre D. Díaz 93aacf9bb0 [IMP] web_widget_one2many_product_picker: Add auto-save feature 2021-01-25 14:39:59 +01:00
OCA-git-bot dbb8754729 web_widget_one2many_product_picker 12.0.1.3.0 2021-01-21 15:41:44 +00:00
OCA-git-bot 6e52e2411f Merge PR #1784 into 12.0
Signed-off-by pedrobaeza
2021-01-21 15:19:26 +00:00
Alexandre D. Díaz 13d9e24d3a [IMP] web_widget_one2many_product_picker: Remove height limit 2021-01-21 15:28:37 +01:00
OCA-git-bot 287bed77df web_pwa_oca 12.0.3.1.0 2021-01-21 11:16:03 +00:00
OCA-git-bot 58ab6bae44 Merge PR #1776 into 12.0
Signed-off-by Yajo
2021-01-21 11:00:19 +00:00
Dimitrios T. Tanis 065f7fff60 [12.0][FIX] web_pwa_oca: manifest and workers should only be present in backend 2021-01-21 00:00:37 +02:00
claudiagn e4a84c9286 Translated using Weblate (Catalan)
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/ca/
2021-01-20 21:44:47 +00:00
claudiagn 76f4444944 Translated using Weblate (Spanish)
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/es/
2021-01-20 21:44:46 +00:00
claudiagn 6d3e1b7106 Added translation using Weblate (Catalan) 2021-01-20 19:09:32 +00:00
claudiagn 3949eecb25 Added translation using Weblate (Spanish) 2021-01-20 19:09:15 +00:00
claudiagn 7b9520de10 Added translation using Weblate (Catalan) 2021-01-20 19:06:36 +00:00
claudiagn 147c5b2a06 Added translation using Weblate (Spanish) 2021-01-20 19:03:45 +00:00
OCA-git-bot 0b77c5658f web_widget_one2many_product_picker 12.0.1.2.0 2021-01-11 15:57:22 +00:00
oca-travis 172f23fdfa [UPD] Update web_widget_one2many_product_picker.pot 2021-01-11 15:34:22 +00:00
OCA-git-bot 16030d05b3 Merge PR #1771 into 12.0
Signed-off-by pedrobaeza
2021-01-11 15:10:23 +00:00
Alexandre D. Díaz 56f9c0acf4 [FIX] web_widget_one2many_product_picker: Use variant image 2021-01-11 11:47:48 +01:00
OCA-git-bot 264bd15c14 web_widget_one2many_product_picker 12.0.1.1.2 2021-01-02 15:20:58 +00:00
OCA-git-bot 82a87ea8a0 Merge PR #1769 into 12.0
Signed-off-by pedrobaeza
2021-01-02 15:15:51 +00:00