Browse Source

[FIX] flake8 + demo data

pull/287/head
ygol 6 years ago
parent
commit
ed71019cd8
  1. 6
      agreement/demo/demo.xml
  2. 2
      agreement/models/agreement.py

6
agreement/demo/demo.xml

@ -11,7 +11,6 @@
<field name="code">C2C-IT0042</field>
<field name="name">Hardware IT</field>
<field name="partner_id" ref="base.res_partner_12"/>
<field name="agreement_type">sale</field>
<field name="signature_date">2017-09-10</field>
<field name="start_date">2017-09-10</field>
<field name="end_date">2018-09-10</field>
@ -21,7 +20,6 @@
<field name="code">C2C-IT0043</field>
<field name="name">Fiber access office Lausanne</field>
<field name="partner_id" ref="base.res_partner_12"/>
<field name="agreement_type">sale</field>
<field name="signature_date" eval="time.strftime('%Y-01-01')"/>
<field name="start_date" eval="time.strftime('%Y-01-01')"/>
<field name="end_date" eval="time.strftime('%Y-01-01')"/>
@ -31,7 +29,6 @@
<field name="code">AGR-VETO001</field>
<field name="name">Vétérinaire</field>
<field name="partner_id" ref="base.res_partner_2"/>
<field name="agreement_type">sale</field>
<field name="signature_date">2017-08-01</field>
<field name="start_date">2017-08-01</field>
<field name="end_date">2018-08-01</field>
@ -41,7 +38,6 @@
<field name="code">AGR-TEL001</field>
<field name="name">Wazo IPBX deployment and maintenance</field>
<field name="partner_id" ref="base.res_partner_2"/>
<field name="agreement_type">sale</field>
<field name="signature_date">2017-05-05</field>
<field name="start_date">2017-05-05</field>
<field name="end_date">2018-09-10</field>
@ -51,7 +47,6 @@
<field name="code">BUY-VOIP012</field>
<field name="name">SIP Phones supply</field>
<field name="partner_id" ref="base.res_partner_1"/>
<field name="agreement_type">purchase</field>
<field name="signature_date" eval="time.strftime('%Y-01-01')"/>
<field name="start_date" eval="time.strftime('%Y-01-01')"/>
<field name="end_date" eval="time.strftime('%Y-01-01')"/>
@ -61,7 +56,6 @@
<field name="code">BUY-VOIP013</field>
<field name="name">SIP-ISDN gateways</field>
<field name="partner_id" ref="base.res_partner_3"/>
<field name="agreement_type">purchase</field>
<field name="signature_date">2017-09-02</field>
</record>

2
agreement/models/agreement.py

@ -17,7 +17,7 @@ class Agreement(models.Model):
company_id = fields.Many2one(
'res.company', string='Company',
default=lambda self: self.env['res.company']._company_default_get(
'agreement'))
'agreement'))
active = fields.Boolean(default=True)
signature_date = fields.Date()
start_date = fields.Date()

Loading…
Cancel
Save