Browse Source

Remove unneeded string argument in field definition

pull/95/head
Alexis de Lattre 7 years ago
parent
commit
16b5646b6d
  1. 9
      agreement_account/models/agreement.py

9
agreement_account/models/agreement.py

@ -10,9 +10,8 @@ class Agreement(models.Model):
_name = 'agreement' _name = 'agreement'
_description = 'Agreement' _description = 'Agreement'
code = fields.Char(
string='Code', required=True, copy=False)
name = fields.Char(string='Name', required=True)
code = fields.Char(required=True, copy=False)
name = fields.Char(required=True)
agreement_type = fields.Selection([ agreement_type = fields.Selection([
('sale', 'Sale'), ('sale', 'Sale'),
('purchase', 'Purchase'), ('purchase', 'Purchase'),
@ -24,8 +23,8 @@ class Agreement(models.Model):
'res.company', string='Company', 'res.company', string='Company',
default=lambda self: self.env['res.company']._company_default_get( default=lambda self: self.env['res.company']._company_default_get(
'agreement')) 'agreement'))
active = fields.Boolean(string='Active', default=True)
signature_date = fields.Date(string='Signature Date')
active = fields.Boolean(default=True)
signature_date = fields.Date()
out_invoice_ids = fields.One2many( out_invoice_ids = fields.One2many(
'account.invoice', 'agreement_id', string='Customer Invoices', 'account.invoice', 'agreement_id', string='Customer Invoices',
readonly=True, domain=[('type', 'in', ('out_invoice', 'out_refund'))]) readonly=True, domain=[('type', 'in', ('out_invoice', 'out_refund'))])

Loading…
Cancel
Save