Skip to content
This repository has been archived by the owner on Feb 29, 2024. It is now read-only.

Error if category name contain non ascii chars #2

Open
Vassy opened this issue Jun 24, 2017 · 1 comment
Open

Error if category name contain non ascii chars #2

Vassy opened this issue Jun 24, 2017 · 1 comment
Labels

Comments

@Vassy
Copy link

Vassy commented Jun 24, 2017

If category name contain non ascii chars, e.g. cyrillic, gets error

Resolved with add in product_code_by_category/models/product.py after:

from openerp import models, fields, api, _, SUPERUSER_ID
import re
from openerp.exceptions import Warning as UserError

this code:

import sys  
reload(sys)  
sys.setdefaultencoding('utf-8')

OdooBulgaria@e26cdb4#diff-4b7cc5d019dc8dc9b3f93908dab43f12

@OpenCode OpenCode added the bug label Jul 4, 2017
@OpenCode
Copy link
Contributor

OpenCode commented Jul 4, 2017

Hi Vassy,

can you write a test for this case?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants