~julie-w/unifield-wm/UTP-925

« back to all changes in this revision

Viewing changes to account_hq_entries/hq_entries.py

  • Committer: Olivier DOSSMANN
  • Date: 2012-04-27 08:04:19 UTC
  • mto: This revision was merged to the branch mainline in revision 887.
  • Revision ID: olivier@tempo-laptop-20120427080419-yhq3rxzephzphnsh
UF-679 [ADD] Implement new elements in HQ Entries

  * Delete changes on account
  * Add an empty import wizard (to developed)
  * Change HQ Entries search and tree

Show diffs side-by-side

added added

removed removed

Lines of Context:
47
47
        return res
48
48
 
49
49
hq_entries_validation_wizard()
 
50
 
 
51
class hq_entries(osv.osv):
 
52
    _name = 'hq.entries'
 
53
    _description = 'HQ Entries'
 
54
 
 
55
    _columns = {
 
56
        'account_id': fields.many2one('account.account', "Account", required=True),
 
57
        'cost_center_id': fields.many2one('account.analytic.account', "Cost Center", required=True),
 
58
        'analytic_id': fields.many2one('account.analytic.account', "Funding Pool", required=True),
 
59
        'free_1_id': fields.many2one('account.analytic.account', "Free 1"),
 
60
        'free_2_id': fields.many2one('account.analytic.account', "Free 2"),
 
61
        'user_validated': fields.boolean("User validated?", help="Is this line validated by a user in a OpenERP field instance?", readonly=True),
 
62
        'date': fields.date("Posting Date"),
 
63
        'partner_id': fields.many2one("res.partner", "Third Party"),
 
64
        'period_id': fields.many2one("account.period", "Period"),
 
65
    }
 
66
 
 
67
    _defaults = {
 
68
        'user_validated': lambda *a: False,
 
69
    }
 
70
 
 
71
hq_entries()
50
72
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: