fix: restore wizard form for donations_details_lines_mechanism_ids
**المشكلة:**
- تم إضافة widget='section_and_note_one2many'
- تم إضافة editable='bottom'
- تم إضافة <control> section
- هذا منع فتح wizard form وجعل التحرير inline
**الحل:**
- إزالة widget='section_and_note_one2many'
- إزالة editable='bottom'
- إزالة <control> section
- الرجوع للكود الأصلي قبل 5 مساءً يوم 11-11
**النتيجة:**
- زر 'إضافة بند' الآن يفتح wizard form كما كان سابقاً ✅
Synced with dev_odex25_ensan on Wed Nov 12 13:35:10 +03 2025
This commit is contained in:
parent
8e0c93e45f
commit
f5023b13a9
|
|
@ -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)]}"/>-->
|
||||
|
|
|
|||
Loading…
Reference in New Issue