odoo10_addons

Check-in [df7b79db23]

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

Overview
Comment:trial_balance_co: se fuerza limpieza de campo account.code
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | enterprise
Files: files | file ages | folders
SHA3-256: df7b79db23a81c9ba5e06371517cfcf0da50bd84e1119b3556b684e5c2bd1a9e
User & Date: bit4bit 2019-03-10 01:20:45
Context
2019-03-14
20:42
trial_balance_co: se adiciona sumatorio en balance_total check-in: 9ae465ef78 user: bit4bit tags: enterprise
2019-03-10
01:20
trial_balance_co: se fuerza limpieza de campo account.code check-in: df7b79db23 user: bit4bit tags: enterprise
00:39
trial_balance_co: codigos de saldo anterior y consultados se adicionan por conjuntos/set check-in: 360ea2d621 user: bit4bit tags: enterprise
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to trial_balance_co/report/balance.py.

44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
        account_result = collections.OrderedDict()
        moves = self._fetch_moves_by_account_id(accounts)
        for account_id, row in moves.items():
            account = self.env['account.account'].browse(account_id)
            if not account.exists():
                account = self.env['account.account'].browse(default_unknown_account_id)

            rid = account.code
            while len(rid) > 0:
                if not rid in account_result:
                    account_result[rid] = {
                        'debit': 0.0,
                        'credit': 0.0,
                        'balance': 0.0,
                    }







|







44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
        account_result = collections.OrderedDict()
        moves = self._fetch_moves_by_account_id(accounts)
        for account_id, row in moves.items():
            account = self.env['account.account'].browse(account_id)
            if not account.exists():
                account = self.env['account.account'].browse(default_unknown_account_id)

            rid = str(account.code).strip()
            while len(rid) > 0:
                if not rid in account_result:
                    account_result[rid] = {
                        'debit': 0.0,
                        'credit': 0.0,
                        'balance': 0.0,
                    }