Skip to content

Commit

Permalink
add code field in certificat typology'
Browse files Browse the repository at this point in the history
  • Loading branch information
chafique-delli committed Jan 29, 2024
1 parent 83a13ad commit 9cdfd90
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
1 change: 1 addition & 0 deletions sale_certificat_typology/models/certificat_typology.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ class CertificatTypology(models.Model):
_description = "Certificat Typology"

name = fields.Char(string="Name", required=True, translate=True)
code = fields.Char(string="Code")
description = fields.Char(string="Description", translate=True)
storage_duration = fields.Integer(
string="Storage duration", help="Enter the number of days to keep the document."
Expand Down
9 changes: 8 additions & 1 deletion sale_certificat_typology/views/certificat_typology.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,12 @@
</h1>
</div>
<group>
<group>
<label for="code" />
<div>
<field name="code" />
</div>
</group>
<group>
<label for="description" />
<div>
Expand Down Expand Up @@ -49,8 +55,9 @@
<field name="name">certificat.typology.tree</field>
<field name="model">certificat.typology</field>
<field name="arch" type="xml">
<tree string="Certificat typology">
<tree>
<field name="name" />
<field name="code" />
<field name="description" />
<field name="storage_duration" optional="hide" />
<field name="automatic_deletion" optional="hide" />
Expand Down

0 comments on commit 9cdfd90

Please sign in to comment.