3
0
Fork 0
Commit Graph

1522 Commits (96c0d61f4eb1c04f19e6809943c56867706bb12c)

Author SHA1 Message Date
OCA-git-bot 1e81435e9d [UPD] README.rst 2023-03-01 14:24:02 +01:00
oca-ci 1cc28d2c6f [UPD] Update web_tree_many2one_clickable.pot 2023-03-01 14:24:02 +01:00
Carlos Roca d1c985c48a [IMP] web_tree_many2one_clickable: Fix pre-commit + improve readme 2023-03-01 14:24:02 +01:00
Xander De Matteis 1c00b0ae00 [MIG] web_tree_many2one_clickable: Migration to 15.0 2023-03-01 14:24:02 +01:00
Eduardo De Miguel 0cd551931a [14.0] [FIX] Clicking on a field with context
Clicking on a field with context like this `{'default_product_id': product_id}` doesn't throws an error.
2023-03-01 14:24:02 +01:00
Raf Ven e8c0a88506 [MOD] Pass context defined on tree view field
When for instance a form_view_ref context is defined on a field in a specific tree view, the context should also be passed when opening the form.
2023-03-01 14:24:02 +01:00
Kévin Roche 07a863f17f [MIG] web_tree_many2one_clickable: Migration to 14.0 2023-03-01 14:24:02 +01:00
Stéphane Bidoul 9112d75278 pre-commit update: prettier xml indent 2023-03-01 14:24:01 +01:00
Jairo Llopis d0cdaee33a [IMP] pre-commit run after update
Includes some manual fixes to silent ESLint warnings.
2023-03-01 14:24:01 +01:00
Simone 28cc7bbaff [MIG] web_tree_many2one_clickable: Migration to 13.0 2023-03-01 14:24:01 +01:00
Simone af54263b29 [IMP] web_tree_many2one_clickable: black, isort 2023-03-01 14:24:01 +01:00
黎伟杰 70ad7b2169 Added translation using Weblate (Chinese (Simplified)) 2023-03-01 14:24:01 +01:00
Alexandre Díaz 061cf62b39 [IMP] web_tree_many2one_clickable: Readme - USAGE 2023-03-01 14:24:01 +01:00
Alexandre Díaz 20fedea52c [MIG] web_tree_many2one_clickable: Migration to 12.0 2023-03-01 14:24:01 +01:00
Anand Kansagra ba4d6194c5 [MIG] web_tree_many2one_clickable: Migration to 12.0. 2023-03-01 14:24:01 +01:00
Guewen Baconnier 8c7ca351e8 web_tree_many2one_clickable: Check if the node is a field
If a list contains a node which is not a field (e.g. a button), it will
not be found in the fields so we'll have an error trying to get 'type'
from undefined.
2023-03-01 14:24:01 +01:00
Artem Kostyuk d0dd5546c0 [MIG] web_tree_many2one_clickable: Migration to 11.0 2023-03-01 14:24:01 +01:00
Atchuthan, Sodexis c36cb88f21 [MIG] web_tree_many2one_clickable: Migrated to 10.0 2023-03-01 14:24:01 +01:00
Antonio Espinosa a5c5406488 [MIG] web_tree_many2one_clickable: Migration to 9.0 2023-03-01 14:24:01 +01:00
Holger Brunn 54a92f745e support reference fields in many2one_clickable widget 2023-03-01 14:24:01 +01:00
Antonio Espinosa 45b5cfb7d7 [FIX] Allow set web_tree_many2one_clickable.default as True 2023-03-01 14:24:01 +01:00
Pedro M. Baeza 9e4115de77 [ADD] web_tree_many2one_clickable
Clickable many2one fields for tree views
========================================

This addon provides a separate widget to allow many2one fields in a tree view
open the linked resource when clicking on their name.

You can also define a system parameter to have this behaviour for all the
existing many2one fields in tree views.

Installation
============

Install it the regular way.

Configuration
=============

If you want to have all many2one fields clickable by default, you have to
define in *Configuration > Technical > Parameters > System parameters*, a new
parameter with name `web_tree_many2one_clickable.default` and with value
`true`.

Usage
=====

For the widget option, you need to add `widget="many2one_clickable"` attribute
in the XML field definition in the tree view.

For example:

`<field name="partner_id" widget="many2one_clickable" />`

will open the linked partner in a form view.

Known issues / Roadmap
======================

* You cannot deactivate clickable behaviour for an specific many2one field if
  you configure the system parameter.
* The value of the system parameter is retrieved for each many2one field
  present in the view instead of only once.
2023-03-01 14:24:01 +01:00
tarteo 8292aec9b0 [IMP] web_widget_x2many_2d_matrix: pre-commit stuff 2023-02-28 13:55:28 +01:00
OCA-git-bot 2a6213e388 web_widget_x2many_2d_matrix 15.0.1.0.2 2023-02-28 13:53:55 +01:00
Sylvain LE GAL e0b9a2e39a [FIX] web_widget_x2many_2d_matrix: make the possibility to have alternative values for headers of rows and columns working 2023-02-28 13:53:55 +01:00
OCA-git-bot e7f3c8646f web_widget_x2many_2d_matrix 15.0.1.0.1 2023-02-28 13:53:55 +01:00
OCA-git-bot 45e8d25bb7 [UPD] README.rst 2023-02-28 13:53:55 +01:00
Lois Rilo a89b9ed142 [UPD] web_widget_x2many_2d_matrix dev status to Production/stable 2023-02-28 13:53:55 +01:00
OCA-git-bot 6b5e0e4319 [UPD] README.rst 2023-02-28 13:53:55 +01:00
oca-ci a0803574bb [UPD] Update web_widget_x2many_2d_matrix.pot 2023-02-28 13:53:55 +01:00
Christopher Ormaza e6640767a4 [15.0][MIG] web_widget_x2many_2d_matrix 2023-02-28 13:53:55 +01:00
Christopher Ormaza dbb1537e62 [IMP] web_widget_x2many_2d_matrix: black, isort, prettier 2023-02-28 13:53:55 +01:00
OCA-git-bot 5c8c48d604 web_widget_x2many_2d_matrix 14.0.1.0.1 2023-02-28 13:53:55 +01:00
Sylvain LE GAL 8ee8d00560 [FIX] web_widget_x2many_2d_matrix: remove console.log 2023-02-28 13:53:55 +01:00
Bosd 210836fb2c Translated using Weblate (Dutch)
Currently translated at 100.0% (3 of 3 strings)

Translation: web-14.0/web-14.0-web_widget_x2many_2d_matrix
Translate-URL: https://translation.odoo-community.org/projects/web-14-0/web-14-0-web_widget_x2many_2d_matrix/nl/
2023-02-28 13:53:55 +01:00
Bosd f01d259fb3 Translated using Weblate (Dutch)
Currently translated at 33.3% (1 of 3 strings)

Translation: web-14.0/web-14.0-web_widget_x2many_2d_matrix
Translate-URL: https://translation.odoo-community.org/projects/web-14-0/web-14-0-web_widget_x2many_2d_matrix/nl_NL/
2023-02-28 13:53:55 +01:00
Bosd 1bcefdb29b Added translation using Weblate (Dutch) 2023-02-28 13:53:55 +01:00
OCA-git-bot 3a88397b21 [UPD] README.rst 2023-02-28 13:53:55 +01:00
oca-travis c1ace6b00c [UPD] Update web_widget_x2many_2d_matrix.pot 2023-02-28 13:53:55 +01:00
Saran440 42d56c3fba [14.0][MIG] web_widget_x2many_2d_matrix 2023-02-28 13:53:55 +01:00
Saran440 cfc8a5a1a8 [IMP] web_widget_x2many_2d_matrix: black, isort, prettier 2023-02-28 13:53:55 +01:00
Alexey Pelykh 53d7727414 [UPD] Brainbean Apps => CorporateHub 2023-02-28 13:53:55 +01:00
c2cdidier 64182b5e86 Translated using Weblate (German)
Currently translated at 100.0% (3 of 3 strings)

Translation: web-13.0/web-13.0-web_widget_x2many_2d_matrix
Translate-URL: https://translation.odoo-community.org/projects/web-13-0/web-13-0-web_widget_x2many_2d_matrix/de/
2023-02-28 13:53:55 +01:00
Alexandre Díaz f0f073d784 [IMP] web_widget_x2many_2d_matrix: Debug mode 2023-02-28 13:53:55 +01:00
OCA Transbot bd807a7bfb Update translation files
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: web-13.0/web-13.0-web_widget_x2many_2d_matrix
Translate-URL: https://translation.odoo-community.org/projects/web-13-0/web-13-0-web_widget_x2many_2d_matrix/
2023-02-28 13:53:55 +01:00
Adrià Gil Sorribes d74ce81504 [13.0][MIG] web_widget_x2many_2d_matrix 2023-02-28 13:53:55 +01:00
Adrià Gil Sorribes 128365badd [IMP] web_widget_x2many_2d_matrix: black, isort 2023-02-28 13:53:55 +01:00
Pablo Fuentes 335246e972 [FIX] web_widget_x2many_2d_matrix: Ensure lines order
As objects are unordered collections of properties, we ensure incoming lines order by using lists
2023-02-28 13:53:55 +01:00
Alexandre Díaz 49a2d159dd [IMP] web_widget_x2many_matrix: Sticky header, footer rows and main, totals columns 2023-02-28 13:53:55 +01:00
Pablo Fuentes 8f60abca98 [FIX] web_widget_x2many_2d_matrix: Wrong widget
In previous versions _setSubViewLimit was defined at AbstractView widget but in v12 is defined at FormView widget
2023-02-28 13:53:55 +01:00