~mga/openobject-addons/account_india

« back to all changes in this revision

Viewing changes to dm/offer_step.py

  • Committer: Fabien Pinckaers
  • Date: 2008-11-12 05:43:45 UTC
  • mfrom: (3335.1.27 trunk-extra-addons)
  • Revision ID: fp@tinyerp.com-20081112054345-8b58ct265u3cuo7o
improvement

Show diffs side-by-side

added added

removed removed

Lines of Context:
112
112
        'document_ids' : fields.one2many('dm.offer.document', 'step_id', 'DTP Documents'),
113
113
        'flow_start' : fields.boolean('Flow Start'),
114
114
        'history_ids' : fields.one2many('dm.offer.step.history', 'step_id', 'History'),
115
 
        'product_ids' : fields.one2many('dm.step.product', 'offer_step_id', 'Products'),
 
115
        'item_ids' : fields.one2many('dm.offer.step.item', 'offer_step_id', 'Items'),
116
116
        'state' : fields.selection(AVAILABLE_STATES, 'Status', size=16, readonly=True),
117
117
        'incoming_transition_ids' : fields.one2many('dm.offer.step.transition','step_to', 'Incoming Transition',readonly=True),
118
118
        'outgoing_transition_ids' : fields.one2many('dm.offer.step.transition','step_from', 'Outgoing Transition'),
299
299
dm_offer_step_workitem()
300
300
 
301
301
 
302
 
class dm_step_product(osv.osv):
303
 
    _name = "dm.step.product"
 
302
class dm_offer_step_item(osv.osv):
 
303
    _name = "dm.offer.step.item"
304
304
 
305
305
    def _step_type(self, cr, uid, ids, name, args, context={}):
306
306
        result={}
318
318
        'notes' : fields.text('Notes'),
319
319
        'purchase_constraints' : fields.text('Purchase Constraints'),
320
320
    }
321
 
dm_step_product()
322
 
 
323
 
 
324
 
class dm_product(osv.osv):
325
 
    _name = "dm.product"
 
321
dm_offer_step_item()
 
322
 
 
323
 
 
324
class dm_campaign_proposition_item(osv.osv):
 
325
    _name = "dm.campaign.proposition.item"
326
326
    _rec_name = 'product_id'
327
327
    _columns = {
328
328
        'product_id' : fields.many2one('product.product', 'Product', required=True, context={'flag':True}),
334
334
        'offer_step_type': fields.char(string='Offer Step Type',type="char",size=64), 
335
335
        'notes' : fields.text('Notes'),
336
336
    }
337
 
dm_product()
 
337
dm_campaign_proposition_item()
338
338
 
339
 
class dm_offer_step_manufacturing_constaint(osv.osv):
 
339
class dm_offer_step_manufacturing_constraint(osv.osv):
340
340
    _name = "dm.offer.step.manufacturing_constraint"
341
341
    _columns = {
342
342
        'name': fields.char('Description', size=64, required=True),
344
344
        'constraint': fields.text('Manufacturing Description'),
345
345
        'offer_step_id': fields.many2one('dm.offer.step', 'Offer Step'),
346
346
    }
347
 
dm_offer_step_manufacturing_constaint()
 
347
dm_offer_step_manufacturing_constraint()
348
348
 
349
349
 
350
350
class product_product(osv.osv):