odoo10_addons

Check-in [d72a82ca28]

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

Overview
Comment:se fuerza id de account a enteror
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | enterprise
Files: files | file ages | folders
SHA3-256: d72a82ca28614bcdd421cadd35e03f889b042e5355c7d64d0d814b1742d2bacc
User & Date: bit4bit 2019-03-08 00:34:19
Context
2019-03-09
23:21
se muestra desde clase en trial_balance_co check-in: 6ed9313c1c user: bit4bit tags: enterprise
2019-03-08
00:34
se fuerza id de account a enteror check-in: d72a82ca28 user: bit4bit tags: enterprise
2019-02-21
02:20
trial_balance_co: se permite generar agrupado por account.code, usando los niveles de la contabilidad colombiana check-in: fd559f3ab9 user: bit4bit tags: enterprise
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to trial_balance_co/report/balance.py.

32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
        filters = " AND ".join(wheres)
        # compute the balance, debit and credit for the provided accounts
        request = ("SELECT account_id AS id, SUM(debit) AS debit, SUM(credit) AS credit, (SUM(debit) - SUM(credit)) AS balance" +\
                   " FROM " + tables + " WHERE account_id IN %s " + filters + " GROUP BY account_id")
        params = (tuple(accounts.ids),) + tuple(where_params)
        self.env.cr.execute(request, params)
        for row in self.env.cr.dictfetchall():
            account_result[row.pop('id')] = row

        return account_result

    def _fetch_moves_by_account_code(self, accounts):
        account_result = collections.OrderedDict()
        moves = self._fetch_moves_by_account_id(accounts)
        for account_id, row in moves.items():







|







32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
        filters = " AND ".join(wheres)
        # compute the balance, debit and credit for the provided accounts
        request = ("SELECT account_id AS id, SUM(debit) AS debit, SUM(credit) AS credit, (SUM(debit) - SUM(credit)) AS balance" +\
                   " FROM " + tables + " WHERE account_id IN %s " + filters + " GROUP BY account_id")
        params = (tuple(accounts.ids),) + tuple(where_params)
        self.env.cr.execute(request, params)
        for row in self.env.cr.dictfetchall():
            account_result[int(row.pop('id'))] = row

        return account_result

    def _fetch_moves_by_account_code(self, accounts):
        account_result = collections.OrderedDict()
        moves = self._fetch_moves_by_account_id(accounts)
        for account_id, row in moves.items():