Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
H
hh_ccs
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
贺阳
hh_ccs
Commits
4a6a9c4f
提交
4a6a9c4f
authored
12月 04, 2025
作者:
贺阳
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
优化base导入的顺序,不然升级报错
上级
41d254a1
显示空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
5 行增加
和
6 行删除
+5
-6
__init__.py
ccs_base/__init__.py
+2
-1
res_partner.py
ccs_base/models/res_partner.py
+2
-4
batch_get_pod_info_wizard_views.xml
ccs_base/wizard/batch_get_pod_info_wizard_views.xml
+1
-1
没有找到文件。
ccs_base/__init__.py
浏览文件 @
4a6a9c4f
from
.
import
wizard
from
.
import
models
from
.
import
models
from
.
import
wizard
from
.
import
controllers
from
.
import
controllers
ccs_base/models/res_partner.py
浏览文件 @
4a6a9c4f
from
odoo
import
models
,
fields
,
api
,
_
# 导入日志
# 导入日志
import
logging
import
logging
from
odoo
.exceptions
import
UserError
from
odoo
import
models
,
fields
# 获取日志
# 获取日志
_logger
=
logging
.
getLogger
(
__name__
)
_logger
=
logging
.
getLogger
(
__name__
)
...
@@ -17,7 +15,7 @@ class ResPartner(models.Model):
...
@@ -17,7 +15,7 @@ class ResPartner(models.Model):
is_customer
=
fields
.
Boolean
(
string
=
'Is Customer'
,
default
=
False
)
is_customer
=
fields
.
Boolean
(
string
=
'Is Customer'
,
default
=
False
)
# 是否是清关公司
# 是否是清关公司
is_clearance_company
=
fields
.
Boolean
(
string
=
'Is Clearance Company'
,
default
=
False
)
is_clearance_company
=
fields
.
Boolean
(
string
=
'Is Clearance Company'
,
default
=
False
)
#新增类型:TK平台/TEMU平台。用英文表示
#
新增类型:TK平台/TEMU平台。用英文表示
platform_type
=
fields
.
Selection
([
platform_type
=
fields
.
Selection
([
(
'tk'
,
'TK Platform'
),
(
'tk'
,
'TK Platform'
),
(
'temu'
,
'TEMU Platform'
),
(
'temu'
,
'TEMU Platform'
),
...
...
ccs_base/wizard/batch_get_pod_info_wizard_views.xml
浏览文件 @
4a6a9c4f
...
@@ -81,7 +81,7 @@
...
@@ -81,7 +81,7 @@
<sheet>
<sheet>
<group>
<group>
<group>
<group>
<field
name=
"partner_id"
<field
name=
"partner_id"
options=
"{'no_create':True}"
attrs=
"{'invisible': [('action_type', '!=', '创建temu提单')]}"
/>
attrs=
"{'invisible': [('action_type', '!=', '创建temu提单')]}"
/>
<!-- 请输入提单号,可输入多个,一行一个 -->
<!-- 请输入提单号,可输入多个,一行一个 -->
<field
name=
"bl_numbers"
<field
name=
"bl_numbers"
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论