opt ztree and base_chinese

This commit is contained in:
ivan deng
2019-05-21 18:12:24 +08:00
parent c29e37bf88
commit d4baa12ee1
4 changed files with 29 additions and 1 deletions

View File

@@ -0,0 +1,12 @@
# -*- coding: utf-8 -*-
import logging
from odoo import api, fields, models, _
_logger = logging.getLogger(__name__)
class Location(models.Model):
_inherit = "stock.location"
complete_name = fields.Char("Full Location Name", compute='_compute_complete_name', store=True, translate=True)