Skip to content

Commit

Permalink
ci fail:增加lili的tpye
Browse files Browse the repository at this point in the history
  • Loading branch information
floraXiao committed Apr 25, 2018
1 parent 6ad42e9 commit 5758e1b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion finance/models/finance.py
Original file line number Diff line number Diff line change
Expand Up @@ -556,7 +556,7 @@ class AuxiliaryFinancing(models.Model):
('member', u'个人'),
('project', u'项目'),
('department', u'部门'),
], u'分类', required=True, sdefault=lambda self: self.env.context.get('type'))
], u'分类', required=True, default=lambda self: self.env.context.get('type'))
active = fields.Boolean(u'启用', default=True)
company_id = fields.Many2one(
'res.company',
Expand Down
1 change: 1 addition & 0 deletions staff/tests/staff_demo.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
<record id="lili" model="staff">
<field name="name">丽丽</field>
<field name="code">lili</field>
<field name="type">member</field>
<field name='identification_id'>87654321</field>
<field name='work_phone'>18823456789</field>
<field name='user_id' ref='base.user_demo'/>
Expand Down

0 comments on commit 5758e1b

Please sign in to comment.