hunk.code_window:         produce_a.do_produce()
           mnf_product_a.post_inventory()
           # Check state of manufacturing order product A.
           self.assertEqual(mnf_product_a.state, 'confirmed', 'Manufacturing order should still be in confirmed state.')
           # Check product A avaialble quantity should be 120.
           self.assertEqual(product_a.qty_available, 120, 'Wrong quantity available of product A.')
  
hunk.labels: keep keep keep keep replace keep keep keep
hunk.after_edit:         self.assertEqual(mnf_product_a.state, 'progress', 'Manufacturing order should still be in the progress state.')
  
hunk.file_path: addons/sale_mrp/tests/test_sale_mrp_flow.py
hunk.type: replace
file: <?xml version="1.0"?>
  <openerp>
      <data noupdate="1">
      <!--
          ((((((((((( Demo Cases )))))))))))
      -->
  
      <!--For Meetings -->
           <record id="cal_contact_1" model="calendar.contacts">
              <field eval="1" name="active"/>
              <field name="user_id" ref="base.user_root"/>
              <field name="partner_id" ref="base.res_partner_1"/>            
          </record>
          <record id="cal_contact_2" model="calendar.contacts">
              <field eval="1" name="active"/>
              <field name="user_id" ref="base.user_root"/>
              <field name="partner_id" ref="base.partner_demo"/>            
          </record>
  
          <record id="calendar_event_1" model="calendar.event">
              <field eval="1" name="active"/>
              <field name="user_id" ref="base.user_root"/>
              <field name="partner_ids" eval="[(6,0,[ref('base.res_partner_1')])]"/>
              <field name="name">Follow-up for Project proposal</field>
              <field name="description">Meeting to discuss project plan and hash out the details of implementation.</field>
              <field eval="time.strftime('%Y-%m-03 10:20:00')" name="start"/>
              <field name="categ_ids" eval="[(6,0,[ref('categ_meet1')])]"/>
              <field eval="time.strftime('%Y-%m-03 16:30:00')" name="stop"/>
              <field eval="6.3" name="duration"/>
              <field eval="0" name="allday"/>
              <field name="state">open</field>
          </record>
  
          <record id="calendar_event_2" model="calendar.event">
              <field eval="1" name="active"/>            
              <field name="user_id" ref="base.user_demo"/>
              <field name="partner_ids" eval="[(6,0,[ref('base.partner_root'),ref('base.res_partner_4'),ref('base.res_partner_3')])]"/>
              <field name="name">Initial discussion</field>
              <field name="description">Discussion with partner for product.</field>
              <field name="categ_ids" eval="[(6,0,[ref('categ_meet3')])]"/>
              <field eval="time.strftime('%Y-%m-05 12:00:00')" name="start"/>
              <field eval="time.strftime('%Y-%m-05 19:00:00')" name="stop"/>
              <field eval="0" name="allday"/>
              <field eval="7.0" name="duration"/>
              <field name="state">draft</field>
          </record>
  
          <record id="calendar_event_3" model="calendar.event">
              <field eval="1" name="active"/>
              <field name="partner_ids" eval="[(6,0,[ref('base.partner_root')])]"/>
              <field name="name">Pricing Discussion</field>
              <field name="description">Internal meeting for discussion for new pricing for product and services.</field>
              <field name="categ_ids" eval="[(6,0,[ref('categ_meet1'), ref('categ_meet2')])]"/>
              <field eval="time.strftime('%Y-%m-12 15:55:05')" name="start"/>
              <field eval="time.strftime('%Y-%m-12 18:55:05')" name="stop"/>
              <field eval="3.0" name="duration"/>
              <field eval="0" name="allday"/>
              <field name="state">open</field>
          </record>
  
          <record id="calendar_event_4" model="calendar.event">
              <field eval="1" name="active"/>
              <field name="user_id" ref="base.user_demo"/>
              <field name="partner_ids" eval="[(6,0,[ref('base.partner_demo'),ref('base.res_partner_1')])]"/>
              <field name="name">Requirements review</field>
              <field name="categ_ids" eval="[(6,0,[ref('categ_meet3')])]"/>
              <field eval="time.strftime('%Y-%m-20 8:00:00')" name="start"/>
              <field eval="time.strftime('%Y-%m-20 10:30:00')" name="stop"/>
              <field eval="2.5" name="duration"/>
              <field eval="0" name="allday"/>
              <field name="state">open</field>
          </record>
  
          <record id="calendar_event_5" model="calendar.event">
              <field eval="1" name="active"/>
              <field name="partner_ids" eval="[(6,0,[ref('base.partner_root'),ref('base.res_partner_12')])]"/>
              <field name="name">Changes in Designing</field>
              <field name="categ_ids" eval="[(6,0,[ref('categ_meet1')])]"/>
              <field eval="time.strftime('%Y-%m-22')" name="start"/>
              <field eval="time.strftime('%Y-%m-22')" name="stop"/>
              <field eval="1" name="allday"/>
              <field name="state">open</field>
          </record>
  
          <record id="calendar_event_6" model="calendar.event">
              <field eval="1" name="active"/>
              <field name="user_id" ref="base.user_demo"/>            
              <field name="partner_ids" eval="[(6,0,[ref('base.partner_root'),ref('base.res_partner_4'),ref('base.res_partner_1'),ref('base.res_partner_12')])]"/>
              <field name="name">Presentation for new Services</field>
              <field name="categ_ids" eval="[(6,0,[ref('categ_meet1'), ref('categ_meet2')])]"/>
              <field eval="time.strftime('%Y-%m-18 2:00:00')" name="start"/>
              <field eval="time.strftime('%Y-%m-18 10:30:00')" name="stop"/>
              <field eval="8.5" name="duration"/>
              <field eval="0" name="allday"/>
              <field name="state">draft</field>
          </record>
  
          <record id="calendar_event_7" model="calendar.event">
              <field eval="1" name="active"/>
              <field name="user_id" ref="base.user_demo"/>            
              <field name="partner_ids" eval="[(6,0,[ref('base.res_partner_4')])]"/>
              <field name="name">Presentation of the new Calendar</field>
              <field name="categ_ids" eval="[(6,0,[ref('categ_meet1'), ref('categ_meet2')])]"/>
              <field eval="time.strftime('%Y-%m-16')" name="start"/>
              <field eval="time.strftime('%Y-%m-16')" name="stop"/>
              <field eval="8.5" name="duration"/>
              <field eval="1" name="allday"/>
              <field name="state">draft</field>
          </record>
  
  
      </data>
  </openerp>
  