Remove fiscalyear closing lines

issue6870
review41621002
This commit is contained in:
Sergi Almacellas Abellana committed 2017-11-10 10:04:16 +01:00
1 parent a46c224e02
commit 122f3e6059
2 files changed
+1 -14

No files matched your search

-1
View File
@@ -16,7 +16,6 @@ from .party import *
def register():
Pool.register(
FiscalYear,
FiscalYearLine,
BalanceNonDeferralStart,
TypeTemplate,
Type,
+1 -13
View File
@@ -10,7 +10,7 @@ from trytond.pyson import Eval, If, PYSONEncoder
from trytond.transaction import Transaction
from trytond.pool import Pool
__all__ = ['FiscalYear', 'FiscalYearLine',
__all__ = ['FiscalYear',
'BalanceNonDeferralStart', 'BalanceNonDeferral',
'RenewFiscalYearStart', 'RenewFiscalYear']
@@ -53,8 +53,6 @@ class FiscalYear(Workflow, ModelSQL, ModelView):
('id', If(Eval('context', {}).contains('company'), '=', '!='),
Eval('context', {}).get('company', -1)),
], select=True)
close_lines = fields.Many2Many('account.fiscalyear-account.move.line',
'fiscalyear', 'line', 'Close Lines')
icon = fields.Function(fields.Char("Icon"), 'get_icon')
@classmethod
@@ -342,16 +340,6 @@ class FiscalYear(Workflow, ModelSQL, ModelView):
Period.lock(periods)
class FiscalYearLine(ModelSQL):
'Fiscal Year - Move Line'
__name__ = 'account.fiscalyear-account.move.line'
_table = 'account_fiscalyear_line_rel'
fiscalyear = fields.Many2One('account.fiscalyear', 'Fiscal Year',
ondelete='CASCADE', select=True)
line = fields.Many2One('account.move.line', 'Line', ondelete='RESTRICT',
select=True, required=True)
class BalanceNonDeferralStart(ModelView):
'Balance Non-Deferral'
__name__ = 'account.fiscalyear.balance_non_deferral.start'