Merge pull request #5384 from expsa/fix/restore-wizard-form-mechanism-lines-20251112-073000

fix: restore wizard form for donations_details_lines_mechanism_ids
This commit is contained in:
Mohamed Eltayar 2025-11-12 13:36:54 +03:00 committed by GitHub
commit 2e3d0238a5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 7 deletions

View File

@ -372,23 +372,18 @@
<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, }"
widget="section_and_note_one2many"
attrs="{'invisible': [('donation_mechanism', '=', 'without_conditions')], 'readonly': [('state','!=','draft')]}">
<tree editable="bottom">
<control>
<create name="add_line_control" string="Add a line"/>
</control>
<tree>
<field name="sponsorships_computed" invisible="1"/>
<field name="sponsorship_scheduling_line_ids" invisible="1"/>
<field name="show_extend_button" invisible="1"/>
<field name="show_replaced_button" invisible="1"/>
<field name="show_add_benefit_button" invisible="1"/>
<field name="sequence" widget="handle"/>
<field name="display_type" invisible="1"/>
<field name="state" invisible="1"/>
<field name="is_paid" invisible="1"/>
<field name="direct_debit" invisible="1"/>
<field name="sequence_no" readonly="1" optional="hide"/>
<field name="sequence_no" readonly="1"/>
<field name="donation_type"
invisible="1"/>
<!-- attrs="{'column_invisible': [('parent.record_type', '=', 'donation')],'required': ['|',('parent.record_type', '=', 'donation'),('display_type', '=', False)]}"/>-->