From 4670991d5b11b695bab4a92fba5f338ef9d5eeb2 Mon Sep 17 00:00:00 2001 From: Meghna Jaswani Date: Thu, 22 Aug 2019 09:30:38 +0000 Subject: [PATCH] [FIX] account: Changed zip_from and zip_to fields into type char as 0 was passed by default closes odoo/odoo#35957 Signed-off-by: Quentin De Paoli (qdp) --- addons/account/models/chart_template.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/account/models/chart_template.py b/addons/account/models/chart_template.py index 1ca6c07ed67..055be7edf3b 100644 --- a/addons/account/models/chart_template.py +++ b/addons/account/models/chart_template.py @@ -1046,8 +1046,8 @@ class AccountFiscalPositionTemplate(models.Model): country_group_id = fields.Many2one('res.country.group', string='Country Group', help="Apply only if delivery or invoicing country match the group.") state_ids = fields.Many2many('res.country.state', string='Federal States') - zip_from = fields.Integer(string='Zip Range From', default=0) - zip_to = fields.Integer(string='Zip Range To', default=0) + zip_from = fields.Char(string='Zip Range From') + zip_to = fields.Char(string='Zip Range To') class AccountFiscalPositionTaxTemplate(models.Model):