+++ /dev/null
-# -*- coding: utf-8 -*-
-
-from openerp.osv import osv
-from openerp.osv import fields
-import netsvc
-
-
-class Partner(osv.osv):
- _inherit = 'res.partner'
- _order = 'member_ident'
- _columns = {
- 'member_ident': fields.integer('Member identifier'),
- }
-
-Partner()
-
-class account_invoice(osv.osv):
- _inherit = 'account.invoice'
- def draft2open(self, cr, uid, ids):
- print ("DEV: [account_invoice] [draft2open]: %s" % str([uid, ids]))
- wf_service = netsvc.LocalService("workflow")
- wf_service.trg_validate(uid, 'account.invoice', ids[0], 'invoice_open', cr)
- return ids
-
-account_invoice()