proلقشة فغحث

This commit is contained in:
blackbelts 2025-09-02 10:15:38 +03:00
parent 3abee41b28
commit 6752ece9cf
3 changed files with 57 additions and 5 deletions

View File

@ -517,6 +517,17 @@ msgstr "المسارات المرتبطة"
msgid "Tracks that belong to this level"
msgstr "المسارات التي تنتمي إلى هذا المستوى"
#. module: odex25_program_activity
#: model:ir.model.fields,field_description:odex25_program_activity.field_pa_program__program_type_id
msgid "Program Type"
msgstr "نوع البرنامج"
#. module: odex25_program_activity
#: model:ir.model.fields,field_description:odex25_program_activity.field_pa_program_type__pg_type
msgid "Name"
msgstr "نوع البرنامج"

View File

@ -68,7 +68,9 @@ class PaProgramTrack(models.Model):
name = fields.Char(string='Track Name', required=True)
description = fields.Text(string='Track Description')
branch = fields.Char(string='Branch')
# branch = fields.Many2one('age.category',string='Branch')
branch = fields.Many2one("branch.settings", string='Branch', domain="[('branch_type','=','branches')]")
gender = fields.Selection(
[('male', 'Male'), ('female', 'Female')],
@ -81,7 +83,7 @@ class PaProgramTrack(models.Model):
help='Filter track based on age category',
)
study_category = fields.Char(string='Study Category')
study_category = fields.Many2one('education.level',string='Study Category')
hobby = fields.Char(string='Hobby')
study_status = fields.Char(string='Study Status')
health_status = fields.Char(string='Health Status')
@ -125,8 +127,7 @@ class PaProgram(models.Model):
program_type_id = fields.Many2one(
'pa.program.type',
string='Program Type',
# required=True,
help='Program type registered in the program types settings'
)
payment_type = fields.Selection([
@ -415,4 +416,5 @@ class PaProgram(models.Model):
class PaProgramType(models.Model):
_name = 'pa.program.type'
pg_type =fields.Char(string='نوع البرنامج')
pg_type =fields.Char(string='Name')

View File

@ -162,6 +162,7 @@
<tree>
<field name="code"/>
<field name="name"/>
<field name="program_type_id" />
<!-- <field name="kind"/>-->
<field name="payment_type"/>
<field name="sponsor_id"/>
@ -183,6 +184,7 @@
<group>
<field name="code" readonly="1"/>
<field name="name" required="1"/>
<field name="program_type_id" />
<!-- <field name="kind" widget="selection" required="1"/>-->
<field name="payment_type" required="1"/>
<field name="sponsor_id" attrs="{'invisible': [('payment_type','!=','paid')]}"/>
@ -601,6 +603,42 @@
<record id="pa_program_type_tree" model="ir.ui.view">
<field name="name">pa.program.type.tree</field>
<field name="model">pa.program.type</field>
<field name="arch" type="xml">
<tree>
<field name="pg_type"/>
</tree>
</field>
</record>
<record id="pa_program_type_form" model="ir.ui.view">
<field name="name">pa.program.type.form</field>
<field name="model">pa.program.type</field>
<field name="arch" type="xml">
<form>
<sheet>
<field name="pg_type" required="1" />
</sheet>
</form>
</field>
</record>
<record id="action_pa_program_type" model="ir.actions.act_window">
<field name="name">انواع البرامج</field>
<field name="res_model">pa.program.type</field>
<field name="view_mode">tree,form</field>
</record>
<!-- Root Settings Menu -->
@ -618,6 +656,7 @@
<!-- Programs menu -->
<menuitem id="menu_pa_programs" name="البرامج" parent="menu_pa_settings" action="action_pa_program"/>
<menuitem id="menu_pa_program_type" name="انواع البرامج" parent="menu_pa_settings" action="action_pa_program_type"/>
<!-- Activities menu -->
<menuitem id="menu_pa_activities" name="الأنشطة" parent="menu_pa_settings" action="action_pa_program_activity"/>