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

Error if category name contain non ascii chars #2

Description

@Vassy

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions