mirror of
https://github.com/guohuadeng/app-odoo.git
synced 2025-02-23 04:11:36 +02:00
opt ztree and base_chinese
This commit is contained in:
@@ -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',
|
||||||
|
|||||||
@@ -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
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
14
app_base_chinese/models/product_category.py
Normal file
14
app_base_chinese/models/product_category.py
Normal 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)
|
||||||
12
app_base_chinese/models/stock_location.py
Normal file
12
app_base_chinese/models/stock_location.py
Normal 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)
|
||||||
Reference in New Issue
Block a user