修复隐藏项目
This commit is contained in:
@@ -37,7 +37,7 @@ class sf_production_plan(models.Model):
|
||||
_order = 'state_order asc, write_date desc'
|
||||
|
||||
name = fields.Char(string='制造订单')
|
||||
active = fields.Boolean(string='已归档', default=True)
|
||||
# active = fields.Boolean(string='已归档', default=True)
|
||||
# selected = fields.Boolean(default=False)
|
||||
# order_number = fields.Char(string='订单号')
|
||||
order_deadline = fields.Datetime(string='订单交期')
|
||||
@@ -101,17 +101,17 @@ class sf_production_plan(models.Model):
|
||||
# return super(sf_production_plan, self.with_context(active_test=False))._search(
|
||||
# args, offset, limit, order, count, access_rights_uid)
|
||||
|
||||
def archive(self):
|
||||
"""
|
||||
归档
|
||||
"""
|
||||
self.write({'active': False})
|
||||
|
||||
def unarchive(self):
|
||||
"""
|
||||
取消归档
|
||||
"""
|
||||
self.write({'active': True})
|
||||
# def archive(self):
|
||||
# """
|
||||
# 归档
|
||||
# """
|
||||
# self.write({'active': False})
|
||||
#
|
||||
# def unarchive(self):
|
||||
# """
|
||||
# 取消归档
|
||||
# """
|
||||
# self.write({'active': True})
|
||||
|
||||
@api.model
|
||||
def get_import_templates(self):
|
||||
|
||||
@@ -63,7 +63,7 @@
|
||||
</div>
|
||||
<group>
|
||||
<group string="基本信息">
|
||||
<field name="active" invisible="1"/>
|
||||
<!-- <field name="active" invisible="1"/> -->
|
||||
<field name="production_id" widget="many2one_button"/>
|
||||
<field name="product_id"/>
|
||||
<field name="origin"/>
|
||||
|
||||
Reference in New Issue
Block a user