|
[[ formatLang(line['date'],date=True) ]]
@@ -365,7 +359,10 @@
[[ line['move_name'] ]]
|
- b[[ (line['ref'] or '') + ' ' + line['name'] ]]
+ [[ line['a_code'] ]] - [[ line['a_name'] ]]
+ |
+
+ [[ line['ref'] ]] - [[ line['name'] ]]
|
[[ formatLang((line['debit'])) ]] [[ company.currency_id.symbol ]]
@@ -382,10 +379,10 @@
- [[ display_currency(data) == True or removeParentNode('blockTable') ]]
+ [[ display_currency(data) == True or removeParentNode('blockTable') ]]
|
- Datefff
+ Date
|
JNRL
@@ -393,6 +390,9 @@
|
Ref.
|
+
+ A/c No.- Name
+ |
Entry Label
|
@@ -413,28 +413,10 @@
- [[ display_currency(data) == True or removeParentNode('blockTable') ]]
-
- |
- Balance Brought Forward
- |
-
- [[ formatLang((sum_debit())) ]] [[ company.currency_id.symbol ]]
- |
-
- [[ formatLang((sum_credit())) ]] [[ company.currency_id.symbol ]]
- |
-
- [[ formatLang((sum_debit() - sum_credit())) ]] [[ company.currency_id.symbol ]]
- |
-
- |
-
-
- [[ display_currency(data) == True or removeParentNode('blockTable') ]]
+ [[ display_currency(data) == True or removeParentNode('blockTable') ]]
|
@@ -457,7 +439,7 @@
|
| [[display_initial_balance(data) or removeParentNode('tr') ]]
- Initial Balance
+ Initial Balance
|
[[ formatLang(get_intial_balance(p)[0][0]) ]] [[ company.currency_id.symbol ]]
@@ -478,7 +460,7 @@
[[ repeatIn(lines(p), 'line') ]]
- [[ display_currency(data) == True or removeParentNode('blockTable') ]]
+ [[ display_currency(data) == True or removeParentNode('blockTable') ]]
|
[[ formatLang(line['date'],date=True) ]]
@@ -490,7 +472,10 @@
[[ line['move_name'] ]]
|
- a[[ (line['ref'] or '') + ' ' + line['name'] ]]
+ [[ line['a_code'] ]] - [[ line['a_name'] ]]
+ |
+
+ [[ (line['ref'] or '') + ' ' + line['name'] ]]
|
[[ formatLang((line['debit'])) ]] [[ company.currency_id.symbol ]]
diff --git a/addons/account/report/account_partner_ledger_other.rml b/addons/account/report/account_partner_ledger_other.rml
index b755479c12f..1e8429546db 100644
--- a/addons/account/report/account_partner_ledger_other.rml
+++ b/addons/account/report/account_partner_ledger_other.rml
@@ -181,7 +181,9 @@
-
+
+
+
@@ -207,6 +209,7 @@
+
@@ -219,7 +222,7 @@
-
+
@@ -231,6 +234,7 @@
+
@@ -243,6 +247,7 @@
+
@@ -256,7 +261,7 @@
-
+
@@ -269,6 +274,7 @@
+
@@ -425,7 +431,7 @@
- [[ display_currency(data) == False or removeParentNode('blockTable') ]]
+ [[ display_currency(data) == False or removeParentNode('blockTable') ]]
|
Date
@@ -436,6 +442,9 @@
|
Ref.
|
+
+ A/c No.- Name
+ |
Entry Label
|
@@ -450,26 +459,9 @@
- [[ display_currency(data) == False or removeParentNode('blockTable') ]]
-
- |
- Balance Brought Forward
- |
-
- [[ formatLang((sum_debit())) ]] [[ company.currency_id.symbol ]]
- |
-
- [[ formatLang((sum_credit())) ]] [[ company.currency_id.symbol ]]
- |
-
- [[ formatLang((sum_debit() - sum_credit())) ]] [[ company.currency_id.symbol ]]
- |
-
-
-
[[ repeatIn(objects, 'p') ]] [[ setLang(p.lang) ]]
- [[ display_currency(data) == False or removeParentNode('blockTable') ]]
+ [[ display_currency(data) == False or removeParentNode('blockTable') ]]
|
@@ -487,7 +479,7 @@
|
| [[ display_initial_balance(data) or removeParentNode('tr') ]]
- Initial Balance
+ Initial Balance
|
[[ formatLang(get_intial_balance(p)[0][0])]] [[ company.currency_id.symbol ]]
@@ -502,7 +494,7 @@
[[ repeatIn(lines(p), 'line') ]]
- [[ display_currency(data) == False or removeParentNode('blockTable') ]]
+ [[ display_currency(data) == False or removeParentNode('blockTable') ]]
|
[[ formatLang(line['date'],date=True) ]]
@@ -514,7 +506,10 @@
[[ line['move_name'] ]]
|
- [[ (line['ref'] or '')+ ' ' + line['name'] ]]
+ [[ line['a_code'] ]] - [[ line['a_name'] ]]
+ |
+
+ [[ (line['ref'] or '') + ' ' + line['name'] ]]
|
[[ formatLang((line['debit'])) ]] [[ company.currency_id.symbol ]]
@@ -529,7 +524,7 @@
- [[ display_currency(data) == True or removeParentNode('blockTable') ]]
+ [[ display_currency(data) == True or removeParentNode('blockTable') ]]
|
Date
@@ -540,6 +535,9 @@
|
Ref.
|
+
+ A/c No.- Name
+ |
Entry Label
|
@@ -558,30 +556,9 @@
- [[ display_currency(data) == True or removeParentNode('blockTable') ]]
-
- |
- Balance Brought Forward
- |
-
- [[ formatLang((sum_debit())) ]] [[ company.currency_id.symbol ]]
- |
-
- [[ formatLang((sum_credit())) ]] [[ company.currency_id.symbol ]]
- |
-
- [[ formatLang((sum_debit() - sum_credit())) ]] [[ company.currency_id.symbol ]]
- |
-
-
-
-
- |
-
-
[[ repeatIn(objects, 'p') ]] [[ setLang(p.lang) ]]
- [[ display_currency(data) == True or removeParentNode('blockTable') ]]
+ [[ display_currency(data) == True or removeParentNode('blockTable') ]]
|
@@ -604,7 +581,7 @@
|
| [[ data['form']['initial_balance'] or removeParentNode('tr') ]]
- Initial Balance
+ Initial Balance
|
[[ formatLang(get_intial_balance(p)[0][0]) ]] [[ company.currency_id.symbol ]]
@@ -622,7 +599,7 @@
[[ repeatIn(lines(p), 'line') ]]
- [[ display_currency(data) == True or removeParentNode('blockTable') ]]
+ [[ display_currency(data) == True or removeParentNode('blockTable') ]]
|
[[ formatLang(line['date'],date=True) ]]
@@ -633,6 +610,9 @@
|
[[ line['move_name'] ]]
|
+
+ [[ line['a_code'] ]] - [[ line['a_name'] ]]
+ |
[[ (line['ref'] or '') + ' ' + line['name'] ]]
|
diff --git a/addons/account/report/invoice.rml b/addons/account/report/invoice.rml
index ea4eda3cb94..741e4544e7b 100644
--- a/addons/account/report/invoice.rml
+++ b/addons/account/report/invoice.rml
@@ -362,7 +362,7 @@
|
- Fiscal Position Remark :
+ Fiscal Mapping Remark :
|
[[ (o.fiscal_position.note and format(o.fiscal_position and o.fiscal_position.note)) or removeParentNode('blockTable') ]]
diff --git a/addons/account/security/account_security.xml b/addons/account/security/account_security.xml
index 7344c40754e..adf3571f406 100644
--- a/addons/account/security/account_security.xml
+++ b/addons/account/security/account_security.xml
@@ -223,7 +223,7 @@
- Account fiscal position company rule
+ Account fiscal Mapping company rule
[('company_id','=',user.company_id.id)]
diff --git a/addons/account/test/account_report.yml b/addons/account/test/account_report.yml
index 619d8f7771e..6db4efeedd8 100644
--- a/addons/account/test/account_report.yml
+++ b/addons/account/test/account_report.yml
@@ -109,7 +109,7 @@
(data, format) = netsvc.LocalService('report.account.central.journal').create(cr, uid, [], data_dict, {})
if tools.config['test_report_directory']:
- file(os.path.join(tools.config['test_report_directory'], 'account-central_journal.'+format), 'wb+').write(data)
+ file(os.path.join(tools.config['test_report_directory'], 'account-central_journal-menu.'+format), 'wb+').write(data)
-
Print the General Journal Report - From Journal
-
@@ -137,14 +137,14 @@
data_dict = {'model': 'account.account', 'form': {'initial_balance': 1,'initial_bal_query':' True ','chart_account_id':ref('account.chart0'),'display_account':'bal_all','filter': 'filter_no','sortby': 'sort_date','amount_currency': 0,'landscape':0,'period_manner': 'actual','fiscalyear_id': fy_id ,'query_line':'True ','target_move': 'all','periods': period_list,'journal_ids':journal_ids,'id':ref('account.bal') }}
(data, format) = netsvc.LocalService('report.account.general.ledger').create(cr, uid, acc_ids, data_dict, {})
if tools.config['test_report_directory']:
- file(os.path.join(tools.config['test_report_directory'], 'account-general_journal.'+format), 'wb+').write(data)
+ file(os.path.join(tools.config['test_report_directory'], 'account-general_ledger.'+format), 'wb+').write(data)
print "GL report from menu"
data_dict.update({'model': 'ir.ui.menu'})
data_dict['form'].update({'active_ids': acc_ids})
(data, format) = netsvc.LocalService('report.account.general.ledger').create(cr, uid, [], data_dict, {})
if tools.config['test_report_directory']:
- file(os.path.join(tools.config['test_report_directory'], 'account-general_journal-menu.'+format), 'wb+').write(data)
+ file(os.path.join(tools.config['test_report_directory'], 'account-general_ledger-menu.'+format), 'wb+').write(data)
-
Print the General Ledger Report in Landscape Mode
-
@@ -157,12 +157,45 @@
data_dict = {'model': 'account.account', 'form': {'initial_balance': 1,'initial_bal_query':' True ','chart_account_id':ref('account.chart0'),'display_account':'bal_all','filter': 'filter_no','sortby': 'sort_date','amount_currency': 0,'landscape':1,'period_manner': 'actual','fiscalyear_id': fy_id ,'query_line':'True ','target_move': 'all','periods': period_list,'journal_ids':journal_ids,'id':ref('account.bal') }}
(data, format) = netsvc.LocalService('report.account.general.ledger_landscape').create(cr, uid, acc_ids, data_dict, {})
if tools.config['test_report_directory']:
- file(os.path.join(tools.config['test_report_directory'], 'account-general_journal-landscape.'+format), 'wb+').write(data)
+ file(os.path.join(tools.config['test_report_directory'], 'account-general_ledger-landscape.'+format), 'wb+').write(data)
print "GL report landscape mode from menu"
data_dict.update({'model': 'ir.ui.menu'})
data_dict['form'].update({'active_ids': acc_ids})
(data, format) = netsvc.LocalService('report.account.general.ledger_landscape').create(cr, uid, [], data_dict, {})
if tools.config['test_report_directory']:
- file(os.path.join(tools.config['test_report_directory'], 'account-general_journal-landscape-menu.'+format), 'wb+').write(data)
+ file(os.path.join(tools.config['test_report_directory'], 'account-general_ledger-landscape-menu.'+format), 'wb+').write(data)
+-
+ Print Journal Report - From Model
+-
+ !python {model: account.journal.period}: |
+ import netsvc, tools, os, time
+ fy_id = ref('account.data_fiscalyear')
+ period_list = self.pool.get('account.period').search(cr, uid, [('fiscalyear_id', 'in', [fy_id])], context=context)
+ journal_ids = [ref('account.sales_journal'),ref('account.refund_sales_journal'),ref('account.expenses_journal'),ref('account.refund_expenses_journal'),ref('account.bank_journal'),ref('account.check_journal'),ref('account.cash_journal')]
+ journal_period_ids = self.pool.get('account.journal.period').search(cr, uid, [('journal_id', 'in', journal_ids), ('period_id', 'in', period_list)], context=context)
+
+ data_dict = {'model': 'account.journal.period', 'id':journal_period_ids[0], 'form': {'sort_selection': 'date','chart_account_id':ref('account.chart0'),'display_account':'bal_all','filter': 'filter_no','amount_currency': 0,'compare_pattern': 'none','account_choice': 'moves','landscape':0,'period_manner': 'actual','fiscalyear_id': fy_id ,'query_line':'True ','target_move': 'all','periods': period_list,'journal_ids':journal_ids,'id':ref('account.bal') }}
+ (data, format) = netsvc.LocalService('report.account.journal.period.print').create(cr, uid, journal_period_ids, data_dict, {})
+ if tools.config['test_report_directory']:
+ file(os.path.join(tools.config['test_report_directory'], 'account-print_journal.'+format), 'wb+').write(data)
+
+ print "Journal Report - From Menu"
+ data_dict.update({'model': 'ir.ui.menu'})
+ data_dict['form'].update({'active_ids':journal_period_ids})
+
+ (data, format) = netsvc.LocalService('report.account.journal.period.print').create(cr, uid, [], data_dict, {})
+ if tools.config['test_report_directory']:
+ file(os.path.join(tools.config['test_report_directory'], 'account-print_journal-menu.'+format), 'wb+').write(data)
+
+-
+ Print the Partner Balance Report
+-
+ !python {model: res.partner}: |
+ import netsvc, tools, os, time
+ journal_ids = [ref('account.sales_journal'),ref('account.refund_sales_journal'),ref('account.expenses_journal'),ref('account.refund_expenses_journal'),ref('account.bank_journal'),ref('account.check_journal'),ref('account.cash_journal')]
+ data_dict = {'model': 'ir.ui.menu', 'form': {'result_selection': 'customer','chart_account_id':ref('account.chart0'),'display_account':'bal_all','filter': 'filter_no','display_type': 0,'journal_ids':journal_ids,'display_partner': 'non-zero_balance','fiscalyear': ref('account.data_fiscalyear') ,'target_move': 'all','query_line':' True '}}
+ (data, format) = netsvc.LocalService('report.account.partner.balance').create(cr, uid, [], data_dict, {})
+ if tools.config['test_report_directory']:
+ file(os.path.join(tools.config['test_report_directory'], 'account-partner_balance.'+format), 'wb+').write(data)
diff --git a/addons/account/wizard/account_report_account_balance.py b/addons/account/wizard/account_report_account_balance.py
index 3869744bf96..ed37395acb5 100644
--- a/addons/account/wizard/account_report_account_balance.py
+++ b/addons/account/wizard/account_report_account_balance.py
@@ -26,7 +26,7 @@ from osv import osv, fields
class account_balance_report(osv.osv_memory):
_inherit = "account.common.account.report"
_name = 'account.balance.report'
- _description = 'Account Balance Report'
+ _description = 'Trial Balance Report'
_columns = {
'target_move': fields.selection([('all', 'All Entries'),
diff --git a/addons/account/wizard/account_report_account_balance_view.xml b/addons/account/wizard/account_report_account_balance_view.xml
index 8ffdf6ae02f..8c09e954dbf 100644
--- a/addons/account/wizard/account_report_account_balance_view.xml
+++ b/addons/account/wizard/account_report_account_balance_view.xml
@@ -4,21 +4,21 @@
- Account Balance
- account.balance.report
- form
-
-
-
-
-
-
-
-
+ Trial Balance
+ account.balance.report
+ form
+
+
+
+
+
+
+
+
-
account.voucher.sale.select
account.voucher
@@ -80,7 +79,6 @@
-
Sales Payment
account.voucher
@@ -98,7 +96,7 @@
@@ -206,7 +204,7 @@
diff --git a/addons/account_voucher/voucher_view.xml b/addons/account_voucher/voucher_view.xml
index 94f7f18c4a0..94b257775c1 100644
--- a/addons/account_voucher/voucher_view.xml
+++ b/addons/account_voucher/voucher_view.xml
@@ -28,8 +28,8 @@
| | | | | | |