Use StateReport
issue4896 review22351002
This commit is contained in:
1 parent
562e022a0c
commit
5dc260c1ba
2 files changed
+7
-7
No files matched your search
+5
-5
@@ -12,7 +12,7 @@ from sql.conditionals import Coalesce, Case
|
||||
|
||||
from trytond.model import ModelView, ModelSQL, fields, Unique
|
||||
from trytond.wizard import Wizard, StateView, StateAction, StateTransition, \
|
||||
Button
|
||||
StateReport, Button
|
||||
from trytond.report import Report
|
||||
from trytond.tools import reduce_ids, grouped_slice
|
||||
from trytond.pyson import Eval, PYSONEncoder, Date
|
||||
@@ -1146,7 +1146,7 @@ class PrintGeneralLedger(Wizard):
|
||||
Button('Cancel', 'end', 'tryton-cancel'),
|
||||
Button('Print', 'print_', 'tryton-print', default=True),
|
||||
])
|
||||
print_ = StateAction('account.report_general_ledger')
|
||||
print_ = StateReport('account.general_ledger')
|
||||
|
||||
def do_print_(self, action):
|
||||
if self.start.start_period:
|
||||
@@ -1360,7 +1360,7 @@ class PrintTrialBalance(Wizard):
|
||||
Button('Cancel', 'end', 'tryton-cancel'),
|
||||
Button('Print', 'print_', 'tryton-print', default=True),
|
||||
])
|
||||
print_ = StateAction('account.report_trial_balance')
|
||||
print_ = StateReport('account.trial_balance')
|
||||
|
||||
def do_print_(self, action):
|
||||
if self.start.start_period:
|
||||
@@ -1977,7 +1977,7 @@ class OpenThirdPartyBalance(Wizard):
|
||||
Button('Cancel', 'end', 'tryton-cancel'),
|
||||
Button('Print', 'print_', 'tryton-print', default=True),
|
||||
])
|
||||
print_ = StateAction('account.report_third_party_balance')
|
||||
print_ = StateReport('account.third_party_balance')
|
||||
|
||||
def do_print_(self, action):
|
||||
data = {
|
||||
@@ -2106,7 +2106,7 @@ class OpenAgedBalance(Wizard):
|
||||
Button('Cancel', 'end', 'tryton-cancel'),
|
||||
Button('Print', 'print_', 'tryton-print', default=True),
|
||||
])
|
||||
print_ = StateAction('account.report_aged_balance')
|
||||
print_ = StateReport('account.aged_balance')
|
||||
|
||||
@classmethod
|
||||
def __setup__(cls):
|
||||
|
||||
@@ -12,7 +12,7 @@ from sql.conditionals import Coalesce, Case
|
||||
|
||||
from trytond.model import ModelView, ModelSQL, fields, Check
|
||||
from trytond.wizard import Wizard, StateTransition, StateView, StateAction, \
|
||||
Button
|
||||
StateReport, Button
|
||||
from trytond.report import Report
|
||||
from trytond import backend
|
||||
from trytond.pyson import Eval, Bool, PYSONEncoder, If
|
||||
@@ -2080,7 +2080,7 @@ class PrintGeneralJournal(Wizard):
|
||||
Button('Cancel', 'end', 'tryton-cancel'),
|
||||
Button('Print', 'print_', 'tryton-print', default=True),
|
||||
])
|
||||
print_ = StateAction('account.report_general_journal')
|
||||
print_ = StateReport('account.move.general_journal')
|
||||
|
||||
def do_print_(self, action):
|
||||
data = {
|
||||
|
||||
Reference in new issue
Block a user