1 # -*- coding: utf-8 -*-
3 from openerp
.osv
import osv
4 from openerp
.osv
import fields
8 class Partner(osv
.osv
):
9 _inherit
= 'res.partner'
10 _order
= 'member_ident'
12 'member_ident': fields
.integer('Member identifier'),
17 class account_invoice(osv
.osv
):
18 _inherit
= 'account.invoice'
19 def draft2open(self
, cr
, uid
, ids
):
20 print ("DEV: [account_invoice] [draft2open]: %s" % str([uid
, ids
]))
21 wf_service
= netsvc
.LocalService("workflow")
22 wf_service
.trg_validate(uid
, 'account.invoice', ids
[0], 'invoice_open', cr
)