Remove account journal type
issue7451 review46481002
This commit is contained in:
+17
-16
@@ -2,28 +2,29 @@
|
||||
# this repository contains the full copyright notices and license terms.
|
||||
|
||||
from trytond.pool import Pool
|
||||
from .journal import *
|
||||
from .statement import *
|
||||
from .account import *
|
||||
from .party import PartyReplace
|
||||
from . import journal
|
||||
from . import statement
|
||||
from . import account
|
||||
from . import party
|
||||
|
||||
|
||||
def register():
|
||||
Pool.register(
|
||||
Journal,
|
||||
Statement,
|
||||
Line,
|
||||
LineGroup,
|
||||
Move,
|
||||
Origin,
|
||||
OriginInformation,
|
||||
ImportStatementStart,
|
||||
journal.Journal,
|
||||
statement.Statement,
|
||||
statement.Line,
|
||||
statement.LineGroup,
|
||||
account.Journal,
|
||||
account.Move,
|
||||
statement.Origin,
|
||||
statement.OriginInformation,
|
||||
statement.ImportStatementStart,
|
||||
module='account_statement', type_='model')
|
||||
Pool.register(
|
||||
PartyReplace,
|
||||
ImportStatement,
|
||||
ReconcileStatement,
|
||||
party.PartyReplace,
|
||||
statement.ImportStatement,
|
||||
statement.ReconcileStatement,
|
||||
module='account_statement', type_='wizard')
|
||||
Pool.register(
|
||||
StatementReport,
|
||||
statement.StatementReport,
|
||||
module='account_statement', type_='report')
|
||||
|
||||
+11
-1
@@ -9,7 +9,17 @@ from trytond.pool import PoolMeta, Pool
|
||||
from trytond.transaction import Transaction
|
||||
from trytond.tools import grouped_slice, reduce_ids
|
||||
|
||||
__all__ = ['Move']
|
||||
__all__ = ['Journal', 'Move']
|
||||
|
||||
|
||||
class Journal:
|
||||
__metaclass__ = PoolMeta
|
||||
__name__ = 'account.journal'
|
||||
|
||||
@classmethod
|
||||
def __setup__(cls):
|
||||
super(Journal, cls).__setup__()
|
||||
cls.type.selection.append(('statement', "Statement"))
|
||||
|
||||
|
||||
class Move:
|
||||
|
||||
@@ -13,10 +13,6 @@ this repository contains the full copyright notices and license terms. -->
|
||||
<field name="type">tree</field>
|
||||
<field name="name">statement_journal_tree</field>
|
||||
</record>
|
||||
<record model="account.journal.type" id="journal_type_statement">
|
||||
<field name="name">Statement</field>
|
||||
<field name="code">statement</field>
|
||||
</record>
|
||||
|
||||
<record model="ir.action.act_window" id="act_statement_journal_form">
|
||||
<field name="name">Statement Journals</field>
|
||||
|
||||
Reference in New Issue
Block a user