Update product_template.py

This commit is contained in:
zainab2097 2024-08-08 14:26:45 +03:00 committed by GitHub
parent f227262f13
commit a864b2dced
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 0 deletions

View File

@ -15,6 +15,7 @@ class ProductTemplate(models.Model):
_inherit = "product.template"
type_no = fields.Char("Number", default=lambda self: self._get_next_projectno(), tracking=True,copy=False)
sequence_no = fields.Integer(string="Sequence", help="Define the display order")
@api.model
def _get_next_projectno(self):