From 9cdfd9096d9c40d44cc086704c15e9852ef4c375 Mon Sep 17 00:00:00 2001 From: "chafique.delli" Date: Mon, 29 Jan 2024 11:22:26 +0100 Subject: [PATCH] add code field in certificat typology' --- sale_certificat_typology/models/certificat_typology.py | 1 + sale_certificat_typology/views/certificat_typology.xml | 9 ++++++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/sale_certificat_typology/models/certificat_typology.py b/sale_certificat_typology/models/certificat_typology.py index deebc214..d1f979b1 100644 --- a/sale_certificat_typology/models/certificat_typology.py +++ b/sale_certificat_typology/models/certificat_typology.py @@ -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." diff --git a/sale_certificat_typology/views/certificat_typology.xml b/sale_certificat_typology/views/certificat_typology.xml index 23aa22d6..2902b8e8 100644 --- a/sale_certificat_typology/views/certificat_typology.xml +++ b/sale_certificat_typology/views/certificat_typology.xml @@ -13,6 +13,12 @@ + +