hunk.code_window:         if result['model'] == 'res.users' and result['res_id'] == uid:
               result['model'] = 'res.partner'
               result['res_id'] = self.pool.get('res.users').browse(cr, uid, uid).partner_id.id
           return result
       def _get_composition_mode_selection(self, cr, uid, context=None):
           return [('comment', 'Post on a document'),
  
hunk.labels: keep keep add keep keep keep keep
hunk.after_edit:         if fields is not None:
               [result.pop(field, None) for field in result.keys() if field not in fields]
  
hunk.file_path: addons/mail/wizard/mail_compose_message.py
hunk.type: add
file: # -*- coding: utf-8 -*-
  ##############################################################################
  #
  #    OpenERP, Open Source Management Solution
  #    Copyright (C) 2004-2010 Tiny SPRL (<http://tiny.be>).
  #
  #    This program is free software: you can redistribute it and/or modify
  #    it under the terms of the GNU Affero General Public License as
  #    published by the Free Software Foundation, either version 3 of the
  #    License, or (at your option) any later version.
  #
  #    This program is distributed in the hope that it will be useful,
  #    but WITHOUT ANY WARRANTY; without even the implied warranty of
  #    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  #    GNU Affero General Public License for more details.
  #
  #    You should have received a copy of the GNU Affero General Public License
  #    along with this program.  If not, see <http://www.gnu.org/licenses/>.
  #
  ##############################################################################
  
  
  {
      'name': 'MRP Byproducts',
      'version': '1.0',
      'category': 'Manufacturing',
      'description': """
  This module allows you to produce several products from one production order.
  =============================================================================
  
  You can configure by-products in the bill of material.
  
  Without this module:
  --------------------
      A + B + C -> D
  
  With this module:
  -----------------
      A + B + C -> D + E
      """,
      'author': 'OpenERP SA',
      'website': 'http://www.openerp.com',
      'images': ['images/bom_byproduct.jpeg'],
      'depends': ['base', 'mrp'],
      'data': [
         'security/ir.model.access.csv',
         'mrp_byproduct_view.xml'
      ],
      'demo': [],
      'test': ['test/mrp_byproduct.yml'],
      'installable': True,
      'auto_install': False,
  }
  # vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
  