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

@@ -18,7 +18,7 @@
{ {
'name': "App base chinese中国化基本模块增强", 'name': "App base chinese中国化基本模块增强",
'version': '12.19.05.01', 'version': '12.19.05.17',
'author': 'Sunpop.cn', 'author': 'Sunpop.cn',
'category': 'Base', 'category': 'Base',
'website': 'https://www.sunpop.cn', 'website': 'https://www.sunpop.cn',

View File

@@ -2,6 +2,8 @@
from . import res_partner from . import res_partner
from . import res_currency from . import res_currency
from . import product_category
from . import stock_location

View File

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

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)