odoo10_addons

Check-in [27696fdefd]

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:correcion cuando ahi cuenta sin balance
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | enterprise
Files: files | file ages | folders
SHA3-256: 27696fdefd38711b18daab4570da88c4bf40a120b343f3a4bf3d13faac9b7a8a
User & Date: bit4bit 2019-02-20 21:44:37
Context
2019-02-20
21:57
se renombra anexo_al_balance a trial_balance_co check-in: fc597a82cd user: bit4bit tags: enterprise
21:44
correcion cuando ahi cuenta sin balance check-in: 27696fdefd user: bit4bit tags: enterprise
2019-02-14
14:57
se actualiza manifiesto check-in: 69474bf474 user: bit4bit tags: enterprise
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to anexo_al_balance/report/balance.py.

52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
        for row in self.env.cr.dictfetchall():
            rid = row.pop('id')
            partner_id = row.get('partner_id') or default_partner_id
            key = '%d.%d' % (rid, partner_id)
            if not rid in account_result:
                account_result[rid] = []
            account_result[rid].append(row)
            assert not key in indexes
            indexes[key] = len(account_result[rid]) - 1
        
        return (account_result, indexes)
        
    #tomado de: account/report/account_balance.py
    def _get_accounts(self, used_context, accounts, display_account, default_partner_id):
        """ compute the balance, debit and credit for the provided accounts







|







52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
        for row in self.env.cr.dictfetchall():
            rid = row.pop('id')
            partner_id = row.get('partner_id') or default_partner_id
            key = '%d.%d' % (rid, partner_id)
            if not rid in account_result:
                account_result[rid] = []
            account_result[rid].append(row)
            assert key not in indexes or (key in indexes and indexes[key] == 0 )
            indexes[key] = len(account_result[rid]) - 1
        
        return (account_result, indexes)
        
    #tomado de: account/report/account_balance.py
    def _get_accounts(self, used_context, accounts, display_account, default_partner_id):
        """ compute the balance, debit and credit for the provided accounts