Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odpovědět
2032 Zobrazení

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šit
Nejlepší odpověď

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šit
Related Posts Odpovědi Zobrazení Aktivita
2
čvn 23
4740
1
dub 24
2545
1
dub 24
1899
1
úno 24
2671
0
úno 24
10