~unifield-team/unifield-wm/us-826

« back to all changes in this revision

Viewing changes to account_override/account_analytic_line.py

  • Committer: jf
  • Date: 2013-04-03 09:39:29 UTC
  • mfrom: (1453.22.18 UF_1719)
  • Revision ID: jfb@tempo-consulting.fr-20130403093929-sc7pf3okem9o57k9
UF-1719 [IMP] Journal items and Journal entries - Enhancements
lp:~unifield-team/unifield-wm/UF_1719

Show diffs side-by-side

added added

removed removed

Lines of Context:
58
58
        'date': fields.date('Posting Date', required=True, select=True, readonly=True),
59
59
        'document_date': fields.date('Document Date', readonly=True, required=True),
60
60
        'partner_txt': fields.related('move_id', 'partner_txt', string="Third Party", readonly=True, type="text"),
61
 
        'move_id': fields.many2one('account.move.line', 'Entry Sequence', ondelete='restrict', select=True, readonly=True),
 
61
        'move_id': fields.many2one('account.move.line', 'Entry Sequence', ondelete='restrict', select=True, readonly=True, domain="[('account_id.user_type.code', 'in', ['expense', 'income'])]"), # UF-1719: Domain added for search view
62
62
        'functional_currency_id': fields.related('company_id', 'currency_id', string="Func. Currency", type="many2one", relation="res.currency", readonly=True),
63
63
        'amount': fields.float('Func. Amount', required=True, digits_compute=dp.get_precision('Account'),
64
64
            help='Calculated by multiplying the quantity and the price given in the Product\'s cost price. Always expressed in the company main currency.', readonly=True),