Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
1 Răspunde
1649 Vizualizări

Hi, i'm new here. 


I'm currently using widget: many2many_checkboxes in Odoo to allow users to select transactions for splitting. However, the displayed information is limited to the order number, which isn't very descriptive. Ideally, I'd like to show additional details such as the amount, bank account, description, and payment date, which are part of the account.payment.order model. Could someone guide me on how to include this extra information to make the checkboxes more informative? Any suggestions would be greatly appreciated.

Imagine profil
Abandonează
Cel mai bun răspuns

Hi Daniel Schwarze,

You can consider customizing the Widget Template to display additional information within the many2many_checkboxes widget for splitting transactions in Odoo. This approach utilizes existing Odoo widget options to enhance the information displayed in the checkboxes. But it requires knowledge of Odoo's templating system (QWeb)

For this consider the following steps.

  • Use the no_label option with the many2many_checkboxes widget to hide the default label (order number). This allows you to create a custom display for the checkboxes.
  • Create a custom QWeb view that displays the desired information (amount, bank account, description, payment date) for each related account.payment.order record.
  • Within your custom QWeb view, use the widget option to render a custom widget that displays the checkbox and the additional information retrieved from the related record.


Hope this helps.

Imagine profil
Abandonează
Related Posts Răspunsuri Vizualizări Activitate
2
iun. 23
4044
1
apr. 24
2057
1
apr. 24
1506
1
feb. 24
2085
0
feb. 24
10