summaryrefslogtreecommitdiff
path: root/addons/analytic/models/analytic.py
diff options
context:
space:
mode:
authorqdp-odoo <qdp@odoo.com>2015-05-05 17:28:04 +0200
committerqdp-odoo <qdp@odoo.com>2015-05-05 17:28:04 +0200
commitc04065abd8f62c9a211c8fa824f5eecf68e61b73 (patch)
treeb7117fd5f7d4a02d4c89b97c65cc8c8c462de4c1 /addons/analytic/models/analytic.py
parentf09b118659c8bdd1c51000eab5ba3e9ef13724d4 (diff)
[IMP] accounting v9. Yeeeeaah
Diffstat (limited to 'addons/analytic/models/analytic.py')
-rw-r--r--addons/analytic/models/analytic.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/addons/analytic/models/analytic.py b/addons/analytic/models/analytic.py
index 88d4e4f56ec..157739da8a7 100644
--- a/addons/analytic/models/analytic.py
+++ b/addons/analytic/models/analytic.py
@@ -180,9 +180,9 @@ class account_analytic_account(osv.osv):
'child_ids': fields.one2many('account.analytic.account', 'parent_id', 'Child Accounts'),
'child_complete_ids': fields.function(_child_compute, relation='account.analytic.account', string="Account Hierarchy", type='many2many'),
'line_ids': fields.one2many('account.analytic.line', 'account_id', 'Analytic Entries'),
- 'balance': fields.function(_debit_credit_bal_qtty, type='float', string='Balance', multi='debit_credit_bal_qtty', digits_compute=dp.get_precision('Account')),
- 'debit': fields.function(_debit_credit_bal_qtty, type='float', string='Debit', multi='debit_credit_bal_qtty', digits_compute=dp.get_precision('Account')),
- 'credit': fields.function(_debit_credit_bal_qtty, type='float', string='Credit', multi='debit_credit_bal_qtty', digits_compute=dp.get_precision('Account')),
+ 'balance': fields.function(_debit_credit_bal_qtty, type='float', string='Balance', multi='debit_credit_bal_qtty', digits=0),
+ 'debit': fields.function(_debit_credit_bal_qtty, type='float', string='Debit', multi='debit_credit_bal_qtty', digits=0),
+ 'credit': fields.function(_debit_credit_bal_qtty, type='float', string='Credit', multi='debit_credit_bal_qtty', digits=0),
'quantity': fields.function(_debit_credit_bal_qtty, type='float', string='Quantity', multi='debit_credit_bal_qtty'),
'quantity_max': fields.float('Prepaid Service Units', help='Sets the higher limit of time to work on the contract, based on the timesheet. (for instance, number of hours in a limited support contract.)'),
'partner_id': fields.many2one('res.partner', 'Customer'),
@@ -339,7 +339,7 @@ class account_analytic_line(osv.osv):
_columns = {
'name': fields.char('Description', required=True),
'date': fields.date('Date', required=True, select=True),
- 'amount': fields.float('Amount', required=True, help='Calculated by multiplying the quantity and the price given in the Product\'s cost price. Always expressed in the company main currency.', digits_compute=dp.get_precision('Account')),
+ 'amount': fields.float('Amount', required=True, help='Calculated by multiplying the quantity and the price given in the Product\'s cost price. Always expressed in the company main currency.', digits=0),
'unit_amount': fields.float('Quantity', help='Specifies the amount of quantity to count.'),
'account_id': fields.many2one('account.analytic.account', 'Analytic Account', required=True, ondelete='restrict', select=True, domain=[('type','<>','view')]),
'user_id': fields.many2one('res.users', 'User'),