Skip to content

Commit

Permalink
Merge PR #26 into 14.0
Browse files Browse the repository at this point in the history
Signed-off-by andhit-r
  • Loading branch information
ssi-bot committed Sep 14, 2023
2 parents 62d88f8 + f8dcfb2 commit b8f2fd0
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
8 changes: 8 additions & 0 deletions ssi_helpdesk/models/helpdesk_ticket_data_requirement.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,14 @@ class HelpdeskTicketDataRequirement(models.Model):
string="Requirement",
required=True,
)
url = fields.Char(
string="URL",
)
attachment_id = fields.Many2one(
string="Attachment",
comodel_name="ir.attachment",
ondelete="restrict",
)
date_submit = fields.Date(
string="Date Submit",
)
Expand Down
6 changes: 6 additions & 0 deletions ssi_helpdesk/views/helpdesk_ticket_views.xml
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@
<field name="arch" type="xml">
<data>
<xpath expr="//field[@name='user_id']" position="after">
<field name="id" invisible="1" />
<field name="partner_id" />
<field name="commercial_partner_id" />
<field
Expand Down Expand Up @@ -164,6 +165,11 @@
<field name="sequence" widget="handle" />
<field name="type_id" />
<field name="name" />
<field name="url" widget="url" />
<field
name="attachment_id"
domain="[('res_model','=','helpdesk_ticket'),('res_id','=',parent.id)]"
/>
<field name="date_submit" />
<field name="state" />
</tree>
Expand Down

0 comments on commit b8f2fd0

Please sign in to comment.