------------------------------------------------------------ revno: 4 committer: dani-ds <[email protected]> branch nick: dos_product_additional_info timestamp: Wed 2014-06-25 16:33:42 +0200 message: [FIX] Minor changes added: dos_product_additional_info/models/__init__.py modified: dos_product_additional_info/__init__.py dos_product_additional_info/models/product.py
-- lp:~dani-ds/avanzosc/dos_product_additional_info https://code.launchpad.net/~dani-ds/avanzosc/dos_product_additional_info Your team Avanzosc_security is subscribed to branch lp:~dani-ds/avanzosc/dos_product_additional_info. To unsubscribe from this branch go to https://code.launchpad.net/~dani-ds/avanzosc/dos_product_additional_info/+edit-subscription
=== modified file 'dos_product_additional_info/__init__.py' --- dos_product_additional_info/__init__.py 2014-06-11 10:23:47 +0000 +++ dos_product_additional_info/__init__.py 2014-06-25 14:33:42 +0000 @@ -20,6 +20,6 @@ ############################################################################## -import product +from . import models # vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: === added file 'dos_product_additional_info/models/__init__.py' --- dos_product_additional_info/models/__init__.py 1970-01-01 00:00:00 +0000 +++ dos_product_additional_info/models/__init__.py 2014-06-25 14:33:42 +0000 @@ -0,0 +1,26 @@ + +# -*- encoding: utf-8 -*- +############################################################################## +# +# OpenERP, Open Source Management Solution +# Copyright (C) 2008-2014 AvanzOSC (Daniel). All Rights Reserved +# Date: 25/06/2014 +# +# 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 General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see http://www.gnu.org/licenses/. +# +############################################################################## + +from . import product + +# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: === modified file 'dos_product_additional_info/models/product.py' --- dos_product_additional_info/models/product.py 2014-06-17 10:57:17 +0000 +++ dos_product_additional_info/models/product.py 2014-06-25 14:33:42 +0000 @@ -21,7 +21,6 @@ from openerp.osv import orm, fields from openerp.tools.translate import _ -import openerp.addons.re class ProductProduct(orm.Model): @@ -107,15 +106,15 @@ help="For the current product, this stock location will be used, " "instead of the default one, as the source location for " "consumption of the product"), - 'unitary_prod_order': fields.boolean('Unitary production order', - help="If the unitary production " - "order field is set to True, it " - "will generate production orders " - "from unit to unit."), - 'discount': fields.float('Discount', digits=(2, 2), - help="Discount applies if the product is " - "rented."), + 'unitary_prod_order': fields.boolean( + 'Unitary production order', help="If the unitary production order " + "field is set to True, it will generate production orders from " + "unit to unit."), + 'discount': fields.float( + 'Discount', digits=(2, 2), help="Discount applies if the product " + "is rented."), } + _defaults = { 'unitary_prod_order': False, 'discount': 0,
-- Mailing list: https://launchpad.net/~avanzosc Post to : [email protected] Unsubscribe : https://launchpad.net/~avanzosc More help : https://help.launchpad.net/ListHelp

