From 447e5a7d826cd8f889214aa45c14b8b8e983b730 Mon Sep 17 00:00:00 2001 From: Alexis de Lattre Date: Fri, 12 Feb 2016 15:48:23 +0100 Subject: [PATCH] Resize fiscal year code from 6 to 9 (want to write '2015-2016') --- account_usability/account.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/account_usability/account.py b/account_usability/account.py index 7fa4723..135724c 100644 --- a/account_usability/account.py +++ b/account_usability/account.py @@ -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'