fix: resolve donations_details_lines currency display and tree layout issues
🔧 **Currency Display Fixes:** - Add missing currency_id field to donations_details_lines_mechanism_ids tree view - Fix currency symbol display for donation_amount and total_donation_amount fields - Add currency_id to sponsorship_scheduling_line_ids tree view for amount fields 🎨 **Tree Layout Improvements:** - Remove 'fix_overflow' class that was preventing full screen width display - Ensure tree views utilize complete screen width like other one2many fields - Improve visual consistency across all tree views in the module 📍 **Files Updated:** - takaful_sponorship_view.xml: Fixed currency display + removed fix_overflow class - donations_details_lines.xml: Added currency to sponsorship scheduling tree ✅ **Impact:** - Currency symbols (ر.س) now display correctly in all donation amount fields - Tree views properly utilize full screen width for better UX - Consistent monetary field display across donations_details_lines mechanism - Resolved user-reported issues with currency display and tree layout 🐛 **Issues Resolved:** - Currency symbol missing in donations_details_lines tree views - Tree not taking full screen width due to fix_overflow class - Inconsistent monetary field display in scheduling lines
This commit is contained in:
parent
770a3993fc
commit
5635fcc6f6
|
|
@ -298,8 +298,9 @@
|
|||
<field name="sequence_no" />
|
||||
<field name="beneficiary_id" />
|
||||
<field name="month_year" />
|
||||
<field name="amount" />
|
||||
<field name="refunded_amount" />
|
||||
<field name="currency_id" invisible="1"/>
|
||||
<field name="amount" widget="monetary" options="{'currency_field': 'currency_id'}"/>
|
||||
<field name="refunded_amount" widget="monetary" options="{'currency_field': 'currency_id'}"/>
|
||||
<field name="status" widget="badge"
|
||||
decoration-danger="status == 'unpaid'"
|
||||
decoration-success="status == 'paid'"
|
||||
|
|
|
|||
|
|
@ -287,7 +287,7 @@
|
|||
<field name="donations_details_lines_mechanism_ids"
|
||||
context="{'default_active_id': id, 'default_donation_mechanism': 'with_conditions','default_start_date': sponsorship_creation_date, 'default_sponsor_id': sponsor_id, }"
|
||||
attrs="{'invisible': [('donation_mechanism', '=', 'without_conditions')], 'readonly': [('state','!=','draft')]}">
|
||||
<tree class="fix_overflow">
|
||||
<tree>
|
||||
<field name="sponsorships_computed" invisible="1"/>
|
||||
<field name="sponsorship_scheduling_line_ids" invisible="1"/>
|
||||
<field name="show_extend_button" invisible="1"/>
|
||||
|
|
@ -348,6 +348,7 @@
|
|||
<field name="end_date" widget="date"
|
||||
attrs="{'column_invisible': [('parent.donation_mechanism','!=','with_conditions'),('parent.record_type','!=','sponsorship')],'invisible': [('payment_option', '!=', 'month')]}"
|
||||
string="End Date"/>
|
||||
<field name="currency_id" invisible="1"/>
|
||||
<field name="donation_qty" invisible="1" force_save="1"/>
|
||||
<field name="record_type" invisible="1"/>
|
||||
<field name="donation_amount" widget="monetary"
|
||||
|
|
|
|||
Loading…
Reference in New Issue