account_usability: Add copy=False on some fields
This commit is contained in:
@@ -265,6 +265,7 @@ class AccountMove(models.Model):
|
|||||||
# By default, we can still modify "ref" when account move is posted
|
# By default, we can still modify "ref" when account move is posted
|
||||||
# which seems a bit lazy for me...
|
# which seems a bit lazy for me...
|
||||||
ref = fields.Char(states={'posted': [('readonly', True)]})
|
ref = fields.Char(states={'posted': [('readonly', True)]})
|
||||||
|
date = fields.Date(copy=False)
|
||||||
|
|
||||||
|
|
||||||
class AccountMoveLine(models.Model):
|
class AccountMoveLine(models.Model):
|
||||||
@@ -278,6 +279,7 @@ class AccountMoveLine(models.Model):
|
|||||||
|
|
||||||
# Update field only to add a string (there is no string in account module)
|
# Update field only to add a string (there is no string in account module)
|
||||||
invoice_id = fields.Many2one(string='Invoice')
|
invoice_id = fields.Many2one(string='Invoice')
|
||||||
|
date_maturity = fields.Date(copy=False)
|
||||||
|
|
||||||
@api.onchange('credit')
|
@api.onchange('credit')
|
||||||
def _credit_onchange(self):
|
def _credit_onchange(self):
|
||||||
|
|||||||
Reference in New Issue
Block a user