~openerp-commiter/openobject-addons/trunk-extra-addons

« back to all changes in this revision

Viewing changes to auction/wizard/wizard_payer.py

  • Committer: Husen Daudi
  • Date: 2007-12-03 12:46:31 UTC
  • Revision ID: hda@tinyerp.com-6aa6e597273351ab1aba092a0c5fd756e81e37e3
Module to make Account->Invoic->customer Invoice-> Invoice Line->Analytic account required. 

Show diffs side-by-side

added added

removed removed

Lines of Context:
32
32
import osv
33
33
import time
34
34
import pooler
35
 
 
36
35
pay_form = '''<?xml version="1.0"?>
37
 
<form string="Check payment for buyer">
 
36
<form string="Check payment of objects">
38
37
</form>'''
39
38
pay_fields = {
40
39
}
41
 
 
42
 
 
43
 
pay_form1 = '''<?xml version="1.0"?>
44
 
<form string="Check payment for seller">
45
 
</form>'''
46
 
pay_fields1 = {
47
 
}
48
40
def _payer(self, cr, uid, data, context):
49
41
        pool = pooler.get_pool(cr.dbname)
50
 
        pool.get('auction.lots').write(cr,uid,data['ids'],{'is_ok':True, 'state':'paid'})
 
42
        pool.get('auction.lots').write(cr,uid,data['ids'],{'is_ok':True})
51
43
        return {}
52
44
 
53
45
 
74
66
        states = {
75
67
                'init': {
76
68
                        'actions': [],
77
 
                        'result': {'type': 'form', 'arch':pay_form1, 'fields': pay_fields1, 'state':[('end','Cancel'),('pay2','Pay')]}
 
69
                        'result': {'type': 'form', 'arch':pay_form, 'fields': pay_fields, 'state':[('end','Cancel'),('pay','Pay')]}
78
70
                },
79
 
                'pay2': {
 
71
                'pay': {
80
72
                'actions': [_payer_sel],
81
73
                'result': {'type': 'state', 'state':'end'}
82
74
                }}