|
@ -4,7 +4,7 @@ |
|
|
!python {model: account.account}: | |
|
|
!python {model: account.account}: | |
|
|
from datetime import datetime |
|
|
from datetime import datetime |
|
|
ctx={'xls_export':1} |
|
|
ctx={'xls_export':1} |
|
|
data_dict = {'chart_account_id':ref('account.chart0'), 'until_date': '%s-12-31' %(datetime.now().year)} |
|
|
|
|
|
|
|
|
data_dict = {'chart_account_id':ref('account.chart0')} |
|
|
from openerp.tools import test_reports |
|
|
from openerp.tools import test_reports |
|
|
test_reports.try_report_action(cr, uid, 'account_financial_report_webkit.action_account_partners_ledger_menu_webkit',wiz_data=data_dict, context=ctx, wiz_buttons='xls_export',our_module='account_financial_report_webkit_xls') |
|
|
test_reports.try_report_action(cr, uid, 'account_financial_report_webkit.action_account_partners_ledger_menu_webkit',wiz_data=data_dict, context=ctx, wiz_buttons='xls_export',our_module='account_financial_report_webkit_xls') |
|
|
|
|
|
|
|
@ -15,7 +15,7 @@ |
|
|
from datetime import datetime |
|
|
from datetime import datetime |
|
|
ctx={'xls_export':1} |
|
|
ctx={'xls_export':1} |
|
|
data_dict = {'chart_account_id':ref('account.chart0'), 'fiscalyear_id': ref('account.data_fiscalyear'), |
|
|
data_dict = {'chart_account_id':ref('account.chart0'), 'fiscalyear_id': ref('account.data_fiscalyear'), |
|
|
'until_date': '%s-12-31' %(datetime.now().year), 'target_move': 'posted', |
|
|
|
|
|
|
|
|
'target_move': 'posted', |
|
|
'amount_currency': True, 'result_selection': 'customer_supplier'} |
|
|
'amount_currency': True, 'result_selection': 'customer_supplier'} |
|
|
from openerp.tools import test_reports |
|
|
from openerp.tools import test_reports |
|
|
test_reports.try_report_action(cr, uid, 'account_financial_report_webkit.action_account_partners_ledger_menu_webkit',wiz_data=data_dict, context=ctx, wiz_buttons='xls_export',our_module='account_financial_report_webkit_xls') |
|
|
test_reports.try_report_action(cr, uid, 'account_financial_report_webkit.action_account_partners_ledger_menu_webkit',wiz_data=data_dict, context=ctx, wiz_buttons='xls_export',our_module='account_financial_report_webkit_xls') |
|
@ -27,7 +27,7 @@ |
|
|
from datetime import datetime |
|
|
from datetime import datetime |
|
|
ctx={'xls_export':1} |
|
|
ctx={'xls_export':1} |
|
|
data_dict = {'chart_account_id':ref('account.chart0'), 'fiscalyear_id': ref('account.data_fiscalyear'), |
|
|
data_dict = {'chart_account_id':ref('account.chart0'), 'fiscalyear_id': ref('account.data_fiscalyear'), |
|
|
'until_date': '%s-12-31' %(datetime.now().year), 'target_move': 'posted', |
|
|
|
|
|
|
|
|
'target_move': 'posted', |
|
|
'amount_currency': True, 'result_selection': 'customer_supplier', |
|
|
'amount_currency': True, 'result_selection': 'customer_supplier', |
|
|
'partner_ids': [ref('base.res_partner_2'), ref('base.res_partner_1')]} |
|
|
'partner_ids': [ref('base.res_partner_2'), ref('base.res_partner_1')]} |
|
|
from openerp.tools import test_reports |
|
|
from openerp.tools import test_reports |
|
@ -40,7 +40,7 @@ |
|
|
from datetime import datetime |
|
|
from datetime import datetime |
|
|
ctx={'xls_export':1} |
|
|
ctx={'xls_export':1} |
|
|
data_dict = {'chart_account_id':ref('account.chart0'), 'fiscalyear_id': ref('account.data_fiscalyear'), |
|
|
data_dict = {'chart_account_id':ref('account.chart0'), 'fiscalyear_id': ref('account.data_fiscalyear'), |
|
|
'until_date': '%s-12-31' %(datetime.now().year), 'target_move': 'posted', |
|
|
|
|
|
|
|
|
'target_move': 'posted', |
|
|
'amount_currency': True, 'result_selection': 'customer_supplier', |
|
|
'amount_currency': True, 'result_selection': 'customer_supplier', |
|
|
'filter': 'filter_period', 'period_from': ref('account.period_1'), 'period_to': ref('account.period_12')} |
|
|
'filter': 'filter_period', 'period_from': ref('account.period_1'), 'period_to': ref('account.period_12')} |
|
|
from openerp.tools import test_reports |
|
|
from openerp.tools import test_reports |
|
@ -53,7 +53,7 @@ |
|
|
from datetime import datetime |
|
|
from datetime import datetime |
|
|
ctx={'xls_export':1} |
|
|
ctx={'xls_export':1} |
|
|
data_dict = {'chart_account_id':ref('account.chart0'), 'fiscalyear_id': ref('account.data_fiscalyear'), |
|
|
data_dict = {'chart_account_id':ref('account.chart0'), 'fiscalyear_id': ref('account.data_fiscalyear'), |
|
|
'until_date': '%s-12-31' %(datetime.now().year), 'target_move': 'posted', |
|
|
|
|
|
|
|
|
'target_move': 'posted', |
|
|
'amount_currency': True, 'result_selection': 'customer_supplier', |
|
|
'amount_currency': True, 'result_selection': 'customer_supplier', |
|
|
'filter': 'filter_date', 'date_from': '%s-01-01' %(datetime.now().year), 'date_to': '%s-12-31' %(datetime.now().year)} |
|
|
'filter': 'filter_date', 'date_from': '%s-01-01' %(datetime.now().year), 'date_to': '%s-12-31' %(datetime.now().year)} |
|
|
from openerp.tools import test_reports |
|
|
from openerp.tools import test_reports |
|
|