Sale: issues with the wizard setup your invoicing method

bzr revid: ara@tinyerp.com-20111010065931-1i04vpjl4p0q4nx3
This commit is contained in:
ARA (OpenERP) 2011-10-10 12:29:31 +05:30
parent 0e25ade104
commit 463c79a59c
1 changed files with 2 additions and 0 deletions

View File

@ -1205,6 +1205,7 @@ sale_order_line()
class sale_config_picking_policy(osv.osv_memory):
_name = 'sale.config.picking_policy'
_inherit = 'res.config'
_columns = {
'name': fields.char('Name', size=64),
'sale_orders': fields.boolean('Based on Sales Orders',),
@ -1220,6 +1221,7 @@ class sale_config_picking_policy(osv.osv_memory):
}
_defaults = {
'order_policy': 'manual',
'time_unit': lambda self, cr, uid, c: self.pool.get('product.uom').search(cr, uid, [('name', '=', _('Hour'))], context=c)[0],
}
def onchange_order(self, cr, uid, ids, sale, deli, context=None):