mirror of
https://github.com/guohuadeng/app-odoo.git
synced 2025-02-23 04:11:36 +02:00
fix #I67W3Y app_base_chinese可用
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
# Created on 2018-11-05
|
# Created on 2023-02-02
|
||||||
# author: 广州尚鹏,https://www.sunpop.cn
|
# author: 广州尚鹏,https://www.sunpop.cn
|
||||||
# email: 300883@qq.com
|
# email: 300883@qq.com
|
||||||
# resource of Sunpop
|
# resource of Sunpop
|
||||||
@@ -18,7 +18,7 @@
|
|||||||
|
|
||||||
{
|
{
|
||||||
'name': "App base chinese,中国化基本模块增强",
|
'name': "App base chinese,中国化基本模块增强",
|
||||||
'version': '13.21.01.02',
|
'version': '16.23.02.02',
|
||||||
'author': 'Sunpop.cn',
|
'author': 'Sunpop.cn',
|
||||||
'category': 'Base',
|
'category': 'Base',
|
||||||
'website': 'https://www.sunpop.cn',
|
'website': 'https://www.sunpop.cn',
|
||||||
@@ -67,7 +67,7 @@
|
|||||||
'views/sale_order_views.xml',
|
'views/sale_order_views.xml',
|
||||||
'views/account_move_views.xml',
|
'views/account_move_views.xml',
|
||||||
'views/ir_default_views.xml',
|
'views/ir_default_views.xml',
|
||||||
'views/templates.xml',
|
# 'views/templates.xml',
|
||||||
'wizard/sale_make_invoice_advance_views.xml',
|
'wizard/sale_make_invoice_advance_views.xml',
|
||||||
'data/ir_default_data.xml',
|
'data/ir_default_data.xml',
|
||||||
'data/base_data.xml',
|
'data/base_data.xml',
|
||||||
@@ -80,6 +80,11 @@
|
|||||||
'data/stock_location_data.xml',
|
'data/stock_location_data.xml',
|
||||||
'data/sales_team_data.xml',
|
'data/sales_team_data.xml',
|
||||||
],
|
],
|
||||||
|
'assets': {
|
||||||
|
'web.assets_backend': [
|
||||||
|
'app_base_chinese/static/src/scss/app_style.scss',
|
||||||
|
]
|
||||||
|
},
|
||||||
'demo': [
|
'demo': [
|
||||||
],
|
],
|
||||||
'test': [
|
'test': [
|
||||||
|
|||||||
@@ -4,10 +4,10 @@
|
|||||||
#
|
#
|
||||||
msgid ""
|
msgid ""
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: Odoo Server 13.0+e\n"
|
"Project-Id-Version: Odoo Server 16.0-20221228\n"
|
||||||
"Report-Msgid-Bugs-To: \n"
|
"Report-Msgid-Bugs-To: \n"
|
||||||
"POT-Creation-Date: 2020-04-10 18:20+0000\n"
|
"POT-Creation-Date: 2023-02-02 10:28+0000\n"
|
||||||
"PO-Revision-Date: 2020-04-10 18:20+0000\n"
|
"PO-Revision-Date: 2023-02-02 10:28+0000\n"
|
||||||
"Last-Translator: \n"
|
"Last-Translator: \n"
|
||||||
"Language-Team: \n"
|
"Language-Team: \n"
|
||||||
"MIME-Version: 1.0\n"
|
"MIME-Version: 1.0\n"
|
||||||
@@ -21,9 +21,9 @@ msgid "Active"
|
|||||||
msgstr "激活"
|
msgstr "激活"
|
||||||
|
|
||||||
#. module: app_base_chinese
|
#. module: app_base_chinese
|
||||||
#: model:ir.model,name:app_base_chinese.model_base
|
#: model:ir.model,name:app_base_chinese.model_res_company
|
||||||
msgid "Base"
|
msgid "Companies"
|
||||||
msgstr "基础"
|
msgstr "公司"
|
||||||
|
|
||||||
#. module: app_base_chinese
|
#. module: app_base_chinese
|
||||||
#: model:ir.model.fields,field_description:app_base_chinese.field_product_category__complete_name
|
#: model:ir.model.fields,field_description:app_base_chinese.field_product_category__complete_name
|
||||||
@@ -50,12 +50,6 @@ msgstr "币种"
|
|||||||
msgid "Determine the display order. Sort ascending."
|
msgid "Determine the display order. Sort ascending."
|
||||||
msgstr "决定显示顺序,数字越小排序越前"
|
msgstr "决定显示顺序,数字越小排序越前"
|
||||||
|
|
||||||
#. module: app_base_chinese
|
|
||||||
#: model:ir.model.fields,field_description:app_base_chinese.field_res_partner__name_en_US
|
|
||||||
#: model:ir.model.fields,field_description:app_base_chinese.field_res_users__name_en_US
|
|
||||||
msgid "English Name"
|
|
||||||
msgstr "英文名"
|
|
||||||
|
|
||||||
#. module: app_base_chinese
|
#. module: app_base_chinese
|
||||||
#: model_terms:ir.ui.view,arch_db:app_base_chinese.app_view_sale_advance_payment_inv
|
#: model_terms:ir.ui.view,arch_db:app_base_chinese.app_view_sale_advance_payment_inv
|
||||||
msgid "FaPiao / Invoice Orders"
|
msgid "FaPiao / Invoice Orders"
|
||||||
@@ -125,6 +119,15 @@ msgid "Tax Group"
|
|||||||
msgstr "税组"
|
msgstr "税组"
|
||||||
|
|
||||||
#. module: app_base_chinese
|
#. module: app_base_chinese
|
||||||
#: model:ir.sequence,name:app_base_chinese.sequence_product_category_normal
|
#. odoo-javascript
|
||||||
msgid "产品目录常规编号规则"
|
#: code:addons/app_base_chinese/static/src/xml/views.xml:0
|
||||||
|
#, python-format
|
||||||
|
msgid "性能原因,只支持 200 条记录的显示"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. module: app_base_chinese
|
||||||
|
#. odoo-javascript
|
||||||
|
#: code:addons/app_base_chinese/static/src/xml/views.xml:0
|
||||||
|
#, python-format
|
||||||
|
msgid "记录没有树状结构"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|||||||
@@ -9,6 +9,4 @@ _logger = logging.getLogger(__name__)
|
|||||||
class ProductCategory(models.Model):
|
class ProductCategory(models.Model):
|
||||||
_inherit = "product.category"
|
_inherit = "product.category"
|
||||||
|
|
||||||
complete_name = fields.Char(
|
complete_name = fields.Char(translate=True)
|
||||||
'Complete Name', compute='_compute_complete_name',
|
|
||||||
store=True, translate=True)
|
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ from odoo.exceptions import UserError, ValidationError
|
|||||||
class ResPartner(models.Model):
|
class ResPartner(models.Model):
|
||||||
_inherit = 'res.partner'
|
_inherit = 'res.partner'
|
||||||
|
|
||||||
name = fields.Char(index=True, translate=True)
|
name = fields.Char(translate=True)
|
||||||
short_name = fields.Char('Short Name') # 简称
|
short_name = fields.Char('Short Name') # 简称
|
||||||
fax = fields.Char('Fax') # 简称
|
fax = fields.Char('Fax') # 简称
|
||||||
|
|
||||||
|
|||||||
@@ -9,4 +9,4 @@ _logger = logging.getLogger(__name__)
|
|||||||
class Location(models.Model):
|
class Location(models.Model):
|
||||||
_inherit = "stock.location"
|
_inherit = "stock.location"
|
||||||
|
|
||||||
complete_name = fields.Char("Full Location Name", compute='_compute_complete_name', store=True, translate=True)
|
complete_name = fields.Char(translate=True)
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
<h2 class="oe_slogan">App base chinese. Local customize for china user </h2>
|
<h2 class="oe_slogan">App base chinese. Local customize for china user </h2>
|
||||||
<h3 class="oe_slogan">Set all chinese default value. Like Default country, timezone, currency, partner... </h3>
|
<h3 class="oe_slogan">Set all chinese default value. Like Default country, timezone, currency, partner... </h3>
|
||||||
<div class="oe_row">
|
<div class="oe_row">
|
||||||
<h3>Lastest update: v13.20.04.11</h3>
|
<h3>Lastest update: v16.23.02.02</h3>
|
||||||
<div class="oe_span12">
|
<div class="oe_span12">
|
||||||
<img class="oe_demo oe_screenshot" src="banner.jpg">
|
<img class="oe_demo oe_screenshot" src="banner.jpg">
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -97,7 +97,7 @@
|
|||||||
<record id="app_view_partner_short_form" model="ir.ui.view">
|
<record id="app_view_partner_short_form" model="ir.ui.view">
|
||||||
<field name="name">app.res.partner.form</field>
|
<field name="name">app.res.partner.form</field>
|
||||||
<field name="model">res.partner</field>
|
<field name="model">res.partner</field>
|
||||||
<field name="inherit_id" ref="base.view_partner_short_form"/>
|
<field name="inherit_id" ref="base.view_partner_form"/>
|
||||||
<field name="arch" type="xml">
|
<field name="arch" type="xml">
|
||||||
<xpath expr="//field[@name='street']" position="before">
|
<xpath expr="//field[@name='street']" position="before">
|
||||||
<xpath expr="//field[@name='country_id']" position="move"/>
|
<xpath expr="//field[@name='country_id']" position="move"/>
|
||||||
@@ -154,7 +154,7 @@
|
|||||||
<xpath expr="//templates" position="before">
|
<xpath expr="//templates" position="before">
|
||||||
<field name="credit_limit"/>
|
<field name="credit_limit"/>
|
||||||
</xpath>
|
</xpath>
|
||||||
<xpath expr="//div[hasclass('oe_kanban_details')]/ul" position="inside">
|
<xpath expr="//div[hasclass('oe_kanban_details')]/div/ul" position="inside">
|
||||||
<li t-if="record.credit_limit and record.credit_limit.raw_value">
|
<li t-if="record.credit_limit and record.credit_limit.raw_value">
|
||||||
Credit:<field name="credit_limit"/>
|
Credit:<field name="credit_limit"/>
|
||||||
</li>
|
</li>
|
||||||
|
|||||||
@@ -1,8 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
|
||||||
<odoo>
|
|
||||||
<template id="_assets_backend" name="app_base_chinese assets backend" inherit_id="web.assets_backend">
|
|
||||||
<xpath expr="//link[last()]" position="after">
|
|
||||||
<link rel="stylesheet" type="text/scss" href="/app_base_chinese/static/src/scss/app_style.scss"/>
|
|
||||||
</xpath>
|
|
||||||
</template>
|
|
||||||
</odoo>
|
|
||||||
Reference in New Issue
Block a user