addons14/account_financial_report/wizard/general_ledger_wizard.py
def _init_date_from(self):
        """set start date to begin of current year if fiscal year running"""
        today = fields.Date.context_today(self)
        last_fsc_month = self.env.user.company_id.fiscalyear_last_month
        last_fsc_day = self.env.user.company_id.fiscalyear_last_day

        if (
            today.month < int(last_fsc_month)
            or today.month == int(last_fsc_month)
            and today.day <= last_fsc_day
        ):
            return time.strftime("%Y-01-01")
        else:
            return False
set start date to begin of current year if fiscal year running
set start date to begin of current year if fiscal year running
set start date to begin of current year if fiscal year running
def _init_date_from(self):
        today = fields.Date.context_today(self)
        last_fsc_month = self.env.user.company_id.fiscalyear_last_month
        last_fsc_day = self.env.user.company_id.fiscalyear_last_day
        if (
            today.month < int(last_fsc_month)
            or today.month == int(last_fsc_month)
            and today.day <= last_fsc_day
        ):
            return time.strftime("%Y-01-01")
        else:
            return False
def _init_date_from ( self ) : today = fields . Date . context_today ( self ) last_fsc_month = self . env . user . company_id . fiscalyear_last_month last_fsc_day = self . env . user . company_id . fiscalyear_last_day if ( today . month < int ( last_fsc_month ) or today . month == int ( last_fsc_month ) and today . day <= last_fsc_day ) : return time . strftime ( "%Y-01-01" ) else : return False
set start date to begin of current year if fiscal year running
set start date to begin of current year if fiscal year running
"""set start date to begin of current year if fiscal year running"""
self