Merge pull request #5368 from expsa/fix/module-icon-sponsor-phone-visibility-20251112-033000

fix: Module Icon + Sponsor Phone Field Visibility - 20251112
This commit is contained in:
Mohamed Eltayar 2025-11-12 03:37:28 +03:00 committed by GitHub
commit b4a0afd534
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 5 deletions

View File

@ -77,7 +77,7 @@
'reports/transfer_deduction_report.xml',
'reports/transfer_deduction_report_templates.xml',
],
'images': ['static/description/icon5.png'],
'icon': 'static/description/icon5.png',
# 'installable': True,
# 'application': True,
# 'auto_install': False,

View File

@ -192,12 +192,11 @@
<field name="sponsor_phone" string="رقم الجوال" widget="phone"
attrs="{
'readonly': ['|',
('state','!=','draft'),
'|',
'invisible': ['|',
'&amp;', ('record_type','=','donation'), ('sponsor_or_donor_type','!=','unknown'),
'&amp;', ('record_type','=','sponsorship'), ('sponsor_donor_type','!=','unknown')
]
],
'readonly': [('state','!=','draft')]
}"
placeholder="05xxxxxxxx"/>