From 16b5646b6d6ceb9291f185bb1aa65064c84d9cde Mon Sep 17 00:00:00 2001 From: Alexis de Lattre Date: Tue, 19 Sep 2017 22:46:17 +0200 Subject: [PATCH] Remove unneeded string argument in field definition --- agreement_account/models/agreement.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/agreement_account/models/agreement.py b/agreement_account/models/agreement.py index aa4f48c3..008c63af 100644 --- a/agreement_account/models/agreement.py +++ b/agreement_account/models/agreement.py @@ -10,9 +10,8 @@ class Agreement(models.Model): _name = '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([ ('sale', 'Sale'), ('purchase', 'Purchase'), @@ -24,8 +23,8 @@ class Agreement(models.Model): 'res.company', string='Company', default=lambda self: self.env['res.company']._company_default_get( '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( 'account.invoice', 'agreement_id', string='Customer Invoices', readonly=True, domain=[('type', 'in', ('out_invoice', 'out_refund'))])