~openerp-venezuela/openerp-venezuela-localization/trunk

« back to all changes in this revision

Viewing changes to l10n_ve_withholding/model/account.py

[MERGE] OVL is getting Documented

Show diffs side-by-side

added added

removed removed

Lines of Context:
73
73
    _inherit = "account.period"
74
74
 
75
75
    def find_fortnight(self, cr, uid, dt=None, context=None):
76
 
        '''
77
 
        This Function returns a tuple composed of 
 
76
        """ This Function returns a tuple composed of 
78
77
            *) period for the asked dt (int)
79
78
            *) fortnight for the asked dt (boolean):
80
79
                -) False: for the 1st. fortnight
81
80
                -) True: for the 2nd. fortnight.
82
81
            Example:
83
82
            (3,True) => a period whose id is 3 in the second fortnight
84
 
        '''
 
83
        """
85
84
        if context is None: context = {}
86
85
        if not dt:
87
86
            dt = time.strftime('%Y-%m-%d')