<commit_before># -*- coding: utf-8 -*-

from odoo import models, fields, _


class Document_Type(models.Model):

    _name = 'tmc.document_type'

    name = fields.Char(
        string='Document Type'
    )

    abbreviation = fields.Char(
        size=3,
        required=True
    )

    model = fields.Char(
        required=True
    )

    _sql_constraints = [
        ('name_unique',
         'UNIQUE(name)',
         _('Document type name must be unique')),
        ('abbreviation_unique',
         'UNIQUE(abbreviation)',
         _('Document type abbreviation must be unique'))
    ]<commit_msg>[FIX] Increase size for abbreviation field<commit_after># -*- coding: utf-8 -*-

from odoo import _, fields, models


class Document_Type(models.Model):

    _name = 'tmc.document_type'

    name = fields.Char(
        string='Document Type'
    )

    abbreviation = fields.Char(
        size=4,
        required=True
    )

    model = fields.Char(
        required=True
    )

    _sql_constraints = [
        ('name_unique',
         'UNIQUE(name)',
         _('Document type name must be unique')),
        ('abbreviation_unique',
         'UNIQUE(abbreviation)',
         _('Document type abbreviation must be unique'))
    ]
{'fraction_non_alphanumeric': 0.12003244120032441, 'fraction_numerical': 0.0032441200324412004, 'mean_word_length': 2.1968911917098444, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6246202', 'n_tokens_mistral': 397, 'n_tokens_neox': 369, 'n_words': 85}