Add Attachments Field - Assignments
This commit is contained in:
parent
f7a3d0b7bc
commit
697b64c199
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
|
@ -69,8 +69,6 @@ class OpAssignmentSubLine(models.Model):
|
|||
company_id = fields.Many2one(
|
||||
'res.company', string='Company',
|
||||
default=lambda self: self.env.user.company_id)
|
||||
attachment = fields.Binary("Attachment")
|
||||
attachment_filename = fields.Char("File Name")
|
||||
|
||||
def act_draft(self):
|
||||
result = self.state = 'draft'
|
||||
|
|
|
|||
|
|
@ -47,11 +47,9 @@
|
|||
<field name="assignment_id"
|
||||
domain="[('allocation_ids','=',student_id),('state','=','publish')]"/>
|
||||
<field name="submission_date"/>
|
||||
<field name="attachment" filename="attachment_filename"
|
||||
attrs="{'invisible': [('assignment_id','=',False)]}"/>
|
||||
<field name="user_boolean" invisible="1"/>
|
||||
<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"/>
|
||||
|
|
|
|||
Loading…
Reference in New Issue