X-Git-Url: http://git.cyclocoop.org/?p=burette%2Fcyclofficine_ivry.git;a=blobdiff_plain;f=cyclofficine_ivry.py;fp=cyclofficine_ivry.py;h=0000000000000000000000000000000000000000;hp=3b2022005b9c3ada7a313e599fae6390fa3f82c1;hb=d1985ea285fa2592e2474fed8af8dc1dd3158471;hpb=4dcf0c78ed2067617e2d0983b07d0dfb6b11d62f diff --git a/cyclofficine_ivry.py b/cyclofficine_ivry.py deleted file mode 100644 index 3b20220..0000000 --- a/cyclofficine_ivry.py +++ /dev/null @@ -1,25 +0,0 @@ -# -*- 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()