Merge pull request #4266 from expsa/maz_openeducat

Maz openeducat
This commit is contained in:
mazenmuhamad 2025-08-20 12:50:48 +03:00 committed by GitHub
commit 3ebd9e0c28
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
23 changed files with 3 additions and 1 deletions

View File

@ -69,6 +69,7 @@ class OpAssignmentSubLine(models.Model):
company_id = fields.Many2one(
'res.company', string='Company',
default=lambda self: self.env.user.company_id)
attachment = fields.Binary("Attachment")
def act_draft(self):
result = self.state = 'draft'

View File

@ -47,9 +47,10 @@
<field name="assignment_id"
domain="[('allocation_ids','=',student_id),('state','=','publish')]"/>
<field name="submission_date"/>
<field name="user_boolean" invisible="1"/>
<field name="attachment"/>
<field name="marks"
attrs="{'readonly':[('state','=','accept')], 'invisible':[('user_boolean','=',False),('state','!=','accept')]}"/>
<field name="user_boolean" invisible="1"/>
</group>
<group string="Description">
<field name="description" nolabel="1"/>