Resize fiscal year code from 6 to 9 (want to write '2015-2016')

This commit is contained in:
Alexis de Lattre
2016-02-12 15:48:23 +01:00
parent 324580ec79
commit 5f6a0a1bdf

View File

@@ -55,6 +55,15 @@ class AccountInvoice(models.Model):
return super(AccountInvoice, self).action_move_create()
class AccountFiscalYear(models.Model):
_inherit = 'account.fiscalyear'
# For companies that have a fiscal year != calendar year
# I want to be able to write '2015-2016' in the code field
# => size=9 instead of 6
code = fields.Char(size=9)
class AccountJournal(models.Model):
_inherit = 'account.journal'