Skip to Content
Menu
This question has been flagged
1 Odpoveď
1431 Zobrazenia

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.

Avatar
Zrušiť
Best Answer

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.

Avatar
Zrušiť
Related Posts Replies Zobrazenia Aktivita
2
jún 23
3783
1
apr 24
1891
1
apr 24
1245
1
feb 24
1762
0
feb 24
10