mirror of
https://github.com/OCA/contract.git
synced 2025-02-13 17:57:24 +02:00
Remove unneeded string argument in field definition
This commit is contained in:
@@ -10,9 +10,8 @@ class Agreement(models.Model):
|
|||||||
_name = 'agreement'
|
_name = 'agreement'
|
||||||
_description = 'Agreement'
|
_description = 'Agreement'
|
||||||
|
|
||||||
code = fields.Char(
|
code = fields.Char(required=True, copy=False)
|
||||||
string='Code', required=True, copy=False)
|
name = fields.Char(required=True)
|
||||||
name = fields.Char(string='Name', 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)
|
active = fields.Boolean(default=True)
|
||||||
signature_date = fields.Date(string='Signature Date')
|
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'))])
|
||||||
|
|||||||
Reference in New Issue
Block a user