Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
1 Balas
2009 Tampilan

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
Buang
Jawaban Terbai

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
Buang
Post Terkait Replies Tampilan Aktivitas
2
Jun 23
4702
1
Apr 24
2524
1
Apr 24
1880
1
Feb 24
2649
0
Feb 24
10