Diana Rodríguez Martínez has proposed merging lp:~dr.clearcorp/openerp-ccorp-addons/6.1-sales_order_line into lp:openerp-ccorp-addons.
Requested reviews: CLEARCORP drivers (clearcorp-drivers) For more details, see: https://code.launchpad.net/~dr.clearcorp/openerp-ccorp-addons/6.1-sales_order_line/+merge/135004 [ADD] Add a new module sale_order_line_ccorp that add a manufacturing order to sales order line -- https://code.launchpad.net/~dr.clearcorp/openerp-ccorp-addons/6.1-sales_order_line/+merge/135004 Your team CLEARCORP development team is subscribed to branch lp:openerp-ccorp-addons.
=== added directory 'sale_order_line_ccorp' === added file 'sale_order_line_ccorp/__init__.py' --- sale_order_line_ccorp/__init__.py 1970-01-01 00:00:00 +0000 +++ sale_order_line_ccorp/__init__.py 2012-11-19 21:03:25 +0000 @@ -0,0 +1,25 @@ +# -*- coding: utf-8 -*- +############################################################################## +# +# OpenERP, Open Source Management Solution +# Addons modules by CLEARCORP S.A. +# Copyright (C) 2009-TODAY CLEARCORP S.A. (<http://clearcorp.co.cr>). +# +# 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/>. +# +############################################################################## + +import sale_order_line_ccorp + +# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: === added file 'sale_order_line_ccorp/__openerp__.py' --- sale_order_line_ccorp/__openerp__.py 1970-01-01 00:00:00 +0000 +++ sale_order_line_ccorp/__openerp__.py 2012-11-19 21:03:25 +0000 @@ -0,0 +1,40 @@ +# -*- 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/>. +# +############################################################################## + +{ + 'version': '1.0', + 'url': 'http://launchpad.net/openerp-ccorp-addons', + 'author': 'ClearCorp S.A.', + 'website': 'http://clearcorp.co.cr', + 'category': 'Sales Management', + 'complexity': 'normal', + 'description': """This module add a Manufacturing Order to a sale order line""", + 'depends': [ + 'sale', + ], + 'init_xml': [], + 'demo_xml': [], + 'update_xml': ['sale_order_line_ccorp.xml',], + 'license': 'AGPL-3', + 'installable': True, + 'active': False, +} +# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: === added file 'sale_order_line_ccorp/sale_order_line_ccorp.py' --- sale_order_line_ccorp/sale_order_line_ccorp.py 1970-01-01 00:00:00 +0000 +++ sale_order_line_ccorp/sale_order_line_ccorp.py 2012-11-19 21:03:25 +0000 @@ -0,0 +1,36 @@ +# -*- coding: utf-8 -*- +############################################################################## +# +# OpenERP, Open Source Management Solution +# Addons modules by CLEARCORP S.A. +# Copyright (C) 2009-TODAY CLEARCORP S.A. (<http://clearcorp.co.cr>). +# +# 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/>. +# +############################################################################## + +from osv import fields,osv + +class sale_order_line(osv.osv): + _name = 'sale.order.line' + _inherit = 'sale.order.line' + + _columns = { + 'mpr_production':fields.many2one('mrp.production', 'Manufacturing Order'), + + } +sale_order_line() + + + \ No newline at end of file === added file 'sale_order_line_ccorp/sale_order_line_ccorp.xml' --- sale_order_line_ccorp/sale_order_line_ccorp.xml 1970-01-01 00:00:00 +0000 +++ sale_order_line_ccorp/sale_order_line_ccorp.xml 2012-11-19 21:03:25 +0000 @@ -0,0 +1,34 @@ +<?xml version="1.0"?> +<openerp> + <data> + <record id="view_order_form_inherit" model="ir.ui.view"> + <field name="name">view.order.form.inherit</field> + <field name="model">sale.order</field> + <field name="type">form</field> + <field name="inherit_id" ref="sale.view_order_form"/> + <field name="arch" type="xml"> + <xpath expr="/form/notebook/page[@string='Sales Order']/field[@name='order_line']/form/notebook/page[@string='Order Line']/group/field[@name='name']" position="after"> + <field name="mpr_production" /> + </xpath> + <xpath expr="/form/notebook/page[@string='Sales Order']/field[@name='order_line']/tree/field[@name='name']" position="after"> + <field name="mpr_production" /> + </xpath> + </field> + </record> + + <record id="view_order_line_form2_inherit" model="ir.ui.view"> + <field name="name">view.order.line.form2.inherit</field> + <field name="model">sale.order.line</field> + <field name="type">form</field> + <field name="inherit_id" ref="sale.view_order_line_form2"/> + <field name="arch" type="xml"> + <data> + <field name="company_id" position="after"> + <field name="mpr_production"></field> + </field> + </data> + </field> + </record> + </data> +</openerp> +
_______________________________________________ Mailing list: https://launchpad.net/~clearcorp Post to : [email protected] Unsubscribe : https://launchpad.net/~clearcorp More help : https://help.launchpad.net/ListHelp

