添加功能
This commit is contained in:
@@ -28,6 +28,7 @@ class HrContract(models.Model):
|
||||
address = fields.Text(related='party_id.address', string='通讯地址')
|
||||
contact = fields.Char(related='party_id.contact', string='联系人')
|
||||
phone = fields.Char(related='party_id.phone',string='电话')
|
||||
documents_ids = fields.Many2many('ir.attachment', string="合同附件")
|
||||
|
||||
@api.model
|
||||
def _default_date_of_entry(self):
|
||||
|
||||
@@ -35,6 +35,7 @@
|
||||
</xpath>
|
||||
<xpath expr="//field[@name='contract_type_id']" position="after">
|
||||
<field name="is_probation"/>
|
||||
<field name="documents_ids" widget="preview_many2many"/>
|
||||
<field name="start_date" invisible="not is_probation"/>
|
||||
<field name="end_date" invisible="not is_probation"/>
|
||||
</xpath>
|
||||
|
||||
Reference in New Issue
Block a user