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),