用章
This commit is contained in:
@@ -34,6 +34,8 @@ class PropertyAccountingApproval(models.Model):
|
||||
default='normal')
|
||||
active = fields.Boolean('Active', default=True, tracking=True)
|
||||
work_end = fields.Boolean(string="结束")
|
||||
is_chapter = fields.Selection([('yes', '是'), ('no', '否')], string="是否用章")
|
||||
type_stamp_ids = fields.Many2many('seals.type.setting', string='用章类型')
|
||||
|
||||
def _get_default_name_title(self):
|
||||
return self._description if self._description else self._name
|
||||
|
||||
@@ -35,6 +35,8 @@ class PropertyConstructionApproval(models.Model):
|
||||
default='normal')
|
||||
active = fields.Boolean('Active', default=True, tracking=True)
|
||||
work_end = fields.Boolean(string="结束")
|
||||
is_chapter = fields.Selection([('yes', '是'), ('no', '否')], string="是否用章")
|
||||
type_stamp_ids = fields.Many2many('seals.type.setting', string='用章类型')
|
||||
|
||||
def _get_default_name_title(self):
|
||||
return self._description if self._description else self._name
|
||||
|
||||
@@ -32,6 +32,8 @@ class PropertyDesignApproval(models.Model):
|
||||
default='normal')
|
||||
active = fields.Boolean('Active', default=True, tracking=True)
|
||||
work_end = fields.Boolean(string="结束")
|
||||
is_chapter = fields.Selection([('yes', '是'), ('no', '否')], string="是否用章")
|
||||
type_stamp_ids = fields.Many2many('seals.type.setting', string='用章类型')
|
||||
|
||||
def _get_default_name_title(self):
|
||||
return self._description if self._description else self._name
|
||||
|
||||
@@ -35,6 +35,8 @@ class PropertySupervisingApproval(models.Model):
|
||||
business_type = fields.Char(string="业务类型")
|
||||
active = fields.Boolean('Active', default=True, tracking=True)
|
||||
work_end = fields.Boolean(string="结束")
|
||||
is_chapter = fields.Selection([('yes', '是'), ('no', '否')], string="是否用章")
|
||||
type_stamp_ids = fields.Many2many('seals.type.setting', string='用章类型')
|
||||
approval_comments = fields.Text(string='经办意见')
|
||||
property_documents_ids = fields.Many2many('ir.attachment', string="附件")
|
||||
|
||||
|
||||
@@ -36,6 +36,14 @@
|
||||
<group>
|
||||
<field name="name" required="1" string="合同编号:"/>
|
||||
</group>
|
||||
<group col="2">
|
||||
<group>
|
||||
<field name="is_chapter"/>
|
||||
</group>
|
||||
<group>
|
||||
<field name="type_stamp_ids" widget="many2many_tags" options="{'no_create': True, 'no_open': True}" context="{'search_default_group_by_scope': 1, 'search_default_filter_effective': 1}" invisible="is_chapter in [False, 'no']" required="is_chapter"/>
|
||||
</group>
|
||||
</group>
|
||||
<group col="2">
|
||||
<group>
|
||||
<field name="company_a_id"/>
|
||||
|
||||
Reference in New Issue
Block a user