Skip to content

[16.0][l10n_br_fiscal][l10n_br_hr] fields.Text -> fields.Char where possible #3787

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion l10n_br_fiscal/models/cest.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class Cest(models.Model):

code_unmasked = fields.Char(size=7)

name = fields.Text(required=True, index=True)
name = fields.Char(required=True, index=True)

item = fields.Char(required=True)

Expand Down
2 changes: 1 addition & 1 deletion l10n_br_fiscal/models/data_abstract.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class DataAbstract(models.AbstractModel):

code = fields.Char(required=True, index=True)

name = fields.Text(required=True, index=True)
name = fields.Char(required=True, index=True)

code_unmasked = fields.Char(
string="Unmasked Code", compute="_compute_code_unmasked", store=True, index=True
Expand Down
2 changes: 1 addition & 1 deletion l10n_br_fiscal/models/icms_regulation.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ class ICMSRegulation(models.Model):
_inherit = ["mail.thread", "mail.activity.mixin"]
_description = "Tax ICMS Regulation"

name = fields.Text(required=True, index=True)
name = fields.Char(required=True, index=True)

icms_imported_tax_id = fields.Many2one(
comodel_name="l10n_br_fiscal.tax",
Expand Down
2 changes: 1 addition & 1 deletion l10n_br_fiscal/models/nbm.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class Nbm(models.Model):

code_unmasked = fields.Char(size=10, unaccent=False)

name = fields.Text(required=True, index=True)
name = fields.Char(required=True, index=True)

product_tmpl_ids = fields.One2many(inverse_name="nbm_id")

Expand Down
2 changes: 1 addition & 1 deletion l10n_br_fiscal/models/tax_pis_cofins.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class TaxPisCofins(models.Model):

code = fields.Char(required=True)

name = fields.Text(required=True, index=True)
name = fields.Char(required=True, index=True)

piscofins_type = fields.Selection(
selection=[
Expand Down
2 changes: 1 addition & 1 deletion l10n_br_hr/models/data_abstract.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class DataAbstract(models.AbstractModel):

code = fields.Char(required=True, index=True)

name = fields.Text(required=True, index=True)
name = fields.Char(required=True, index=True)

def name_get(self):
return [(r.id, f"{r.code} - {r.name}") for r in self]
Expand Down