From 1c022711a19423ec6c33f22c48125eae9d777853 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?WEB=E8=AE=B8=E4=BD=95=E5=93=B2=5Cxuhez?= Date: Fri, 14 Jul 2023 09:11:57 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B3=A8=E9=87=8A=E6=B5=8B=E8=AF=95=E5=AD=97?= =?UTF-8?q?=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sf_warehouse/models/model.py | 2 +- sf_warehouse/views/view.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sf_warehouse/models/model.py b/sf_warehouse/models/model.py index 22bfb255..8954a84e 100644 --- a/sf_warehouse/models/model.py +++ b/sf_warehouse/models/model.py @@ -50,7 +50,7 @@ class SfLocation(models.Model): # product_id = fields.Many2one('product.template', string='产品') product_id = fields.Many2one('product.product', string='产品', compute='_compute_product_id', readonly=True) product_sn_id = fields.Many2one('stock.lot', string='产品序列号') - time_test = fields.Char(string='time') + # time_test = fields.Char(string='time') # 添加SQL约束 _sql_constraints = [ ('name_uniq', 'unique(name)', '位置名称必须唯一!'), diff --git a/sf_warehouse/views/view.xml b/sf_warehouse/views/view.xml index b756c467..e9ef8467 100644 --- a/sf_warehouse/views/view.xml +++ b/sf_warehouse/views/view.xml @@ -30,7 +30,7 @@ - +