Aged balance report: the only sensible filter is by end period
The filters by date or by start period are meaningless for an aged partner balance. Hide the choice of filters and let only the 'end period' available.pull/44/head
parent
27b87b5618
commit
8c9aa6d0b0
|
@ -1516,3 +1516,8 @@ msgstr ""
|
||||||
msgid "{'required': [('filter', '=', 'filter_opening')]}"
|
msgid "{'required': [('filter', '=', 'filter_opening')]}"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
#. module: account_financial_report_webkit
|
||||||
|
#: view:account.aged.trial.balance.webkit:account_financial_report_webkit.account_aged_trial_balance_webkit
|
||||||
|
msgid "At the end of"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
|
|
@ -1320,3 +1320,8 @@ msgstr ""
|
||||||
#: field:trial.balance.webkit,comp2_filter:0
|
#: field:trial.balance.webkit,comp2_filter:0
|
||||||
msgid "Compare By"
|
msgid "Compare By"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
#. module: account_financial_report_webkit
|
||||||
|
#: view:account.aged.trial.balance.webkit:account_financial_report_webkit.account_aged_trial_balance_webkit
|
||||||
|
msgid "At the end of"
|
||||||
|
msgstr ""
|
||||||
|
|
|
@ -1320,3 +1320,8 @@ msgstr ""
|
||||||
#: field:trial.balance.webkit,comp2_filter:0
|
#: field:trial.balance.webkit,comp2_filter:0
|
||||||
msgid "Compare By"
|
msgid "Compare By"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
#. module: account_financial_report_webkit
|
||||||
|
#: view:account.aged.trial.balance.webkit:account_financial_report_webkit.account_aged_trial_balance_webkit
|
||||||
|
msgid "At the end of"
|
||||||
|
msgstr ""
|
||||||
|
|
|
@ -1367,3 +1367,8 @@ msgstr "¡Valor haber o debe erróneo en el asiento contable!"
|
||||||
#: field:trial.balance.webkit,comp2_filter:0
|
#: field:trial.balance.webkit,comp2_filter:0
|
||||||
msgid "Compare By"
|
msgid "Compare By"
|
||||||
msgstr "Comparar por"
|
msgstr "Comparar por"
|
||||||
|
|
||||||
|
#. module: account_financial_report_webkit
|
||||||
|
#: view:account.aged.trial.balance.webkit:account_financial_report_webkit.account_aged_trial_balance_webkit
|
||||||
|
msgid "At the end of"
|
||||||
|
msgstr ""
|
||||||
|
|
|
@ -1580,3 +1580,8 @@ msgstr ""
|
||||||
#: view:trial.balance.webkit:account_financial_report_webkit.account_trial_balance_view_webkit
|
#: view:trial.balance.webkit:account_financial_report_webkit.account_trial_balance_view_webkit
|
||||||
msgid "{'required': [('filter', '=', 'filter_opening')]}"
|
msgid "{'required': [('filter', '=', 'filter_opening')]}"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
#. module: account_financial_report_webkit
|
||||||
|
#: view:account.aged.trial.balance.webkit:account_financial_report_webkit.account_aged_trial_balance_webkit
|
||||||
|
msgid "At the end of"
|
||||||
|
msgstr "À fin de"
|
||||||
|
|
|
@ -1366,3 +1366,8 @@ msgstr "Valore di credito o debito errato nella registrazione contabile!"
|
||||||
#: field:trial.balance.webkit,comp2_filter:0
|
#: field:trial.balance.webkit,comp2_filter:0
|
||||||
msgid "Compare By"
|
msgid "Compare By"
|
||||||
msgstr "Confronta per"
|
msgstr "Confronta per"
|
||||||
|
|
||||||
|
#. module: account_financial_report_webkit
|
||||||
|
#: view:account.aged.trial.balance.webkit:account_financial_report_webkit.account_aged_trial_balance_webkit
|
||||||
|
msgid "At the end of"
|
||||||
|
msgstr ""
|
||||||
|
|
|
@ -1320,3 +1320,8 @@ msgstr ""
|
||||||
#: field:trial.balance.webkit,comp2_filter:0
|
#: field:trial.balance.webkit,comp2_filter:0
|
||||||
msgid "Compare By"
|
msgid "Compare By"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
#. module: account_financial_report_webkit
|
||||||
|
#: view:account.aged.trial.balance.webkit:account_financial_report_webkit.account_aged_trial_balance_webkit
|
||||||
|
msgid "At the end of"
|
||||||
|
msgstr ""
|
||||||
|
|
|
@ -18,7 +18,7 @@
|
||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
#
|
#
|
||||||
##############################################################################
|
##############################################################################
|
||||||
from openerp.osv import orm
|
from openerp.osv import orm, fields
|
||||||
|
|
||||||
|
|
||||||
class AccountAgedTrialBalance(orm.TransientModel):
|
class AccountAgedTrialBalance(orm.TransientModel):
|
||||||
|
@ -31,6 +31,17 @@ class AccountAgedTrialBalance(orm.TransientModel):
|
||||||
_name = "account.aged.trial.balance.webkit"
|
_name = "account.aged.trial.balance.webkit"
|
||||||
_description = "Aged partner balanced"
|
_description = "Aged partner balanced"
|
||||||
|
|
||||||
|
_columns = {
|
||||||
|
'filter': fields.selection(
|
||||||
|
[('filter_period', 'Periods')],
|
||||||
|
"Filter by",
|
||||||
|
required=True),
|
||||||
|
}
|
||||||
|
|
||||||
|
_defaults = {
|
||||||
|
'filter': 'filter_period',
|
||||||
|
}
|
||||||
|
|
||||||
def _print_report(self, cr, uid, ids, data, context=None):
|
def _print_report(self, cr, uid, ids, data, context=None):
|
||||||
# we update form with display account value
|
# we update form with display account value
|
||||||
data = self.pre_print_report(cr, uid, ids, data, context=context)
|
data = self.pre_print_report(cr, uid, ids, data, context=context)
|
||||||
|
|
|
@ -42,14 +42,17 @@
|
||||||
<field name="fiscalyear_id" position="attributes">
|
<field name="fiscalyear_id" position="attributes">
|
||||||
<attribute name="on_change">onchange_fiscalyear(fiscalyear_id, period_to, date_to, until_date)</attribute>
|
<attribute name="on_change">onchange_fiscalyear(fiscalyear_id, period_to, date_to, until_date)</attribute>
|
||||||
</field>
|
</field>
|
||||||
<field name="date_to" position="attributes">
|
<field name="filter" position="attributes">
|
||||||
<attribute name="on_change">onchange_date_to(fiscalyear_id, period_to, date_to, until_date)</attribute>
|
<attribute name="invisible">True</attribute>
|
||||||
|
</field>
|
||||||
|
<field name="period_from" position="attributes">
|
||||||
|
<attribute name="invisible">True</attribute>
|
||||||
</field>
|
</field>
|
||||||
<field name="period_to" position="attributes">
|
<field name="period_to" position="attributes">
|
||||||
<attribute name="on_change">onchange_period_to(fiscalyear_id, period_to, date_to, until_date)</attribute>
|
<attribute name="on_change">onchange_period_to(fiscalyear_id, period_to, date_to, until_date)</attribute>
|
||||||
</field>
|
</field>
|
||||||
<field name="period_from" position="attributes">
|
<field name="period_to" position="attributes">
|
||||||
<attribute name="domain">[('fiscalyear_id', '=', fiscalyear_id), ('special', '=', False)]</attribute>
|
<attribute name="String">At the end of</attribute>
|
||||||
</field>
|
</field>
|
||||||
<field name="period_to" position="attributes">
|
<field name="period_to" position="attributes">
|
||||||
<attribute name="domain">[('fiscalyear_id', '=', fiscalyear_id), ('special', '=', False)]</attribute>
|
<attribute name="domain">[('fiscalyear_id', '=', fiscalyear_id), ('special', '=', False)]</attribute>
|
||||||
|
|
Loading…
Reference in New Issue