parent
801cc36052
commit
96b596ec52
|
@ -34,7 +34,7 @@ class product_category(osv.osv):
|
|||
string="Income Account",
|
||||
method=True,
|
||||
view_load=True,
|
||||
help="This account will be used instead of the default one to value incoming stock for the current product category"),
|
||||
help="This account will be used to value incoming stock for the current product category"),
|
||||
'property_account_expense_categ': fields.property(
|
||||
'account.account',
|
||||
type='many2one',
|
||||
|
@ -42,7 +42,7 @@ class product_category(osv.osv):
|
|||
string="Expense Account",
|
||||
method=True,
|
||||
view_load=True,
|
||||
help="This account will be used instead of the default one to value outgoing stock for the current product category"),
|
||||
help="This account will be used to value outgoing stock for the current product category"),
|
||||
}
|
||||
product_category()
|
||||
|
||||
|
|
|
@ -432,7 +432,7 @@ class stock_picking(osv.osv):
|
|||
select=True, required=True, readonly=True, states={'draft':[('readonly',False)]}),
|
||||
}
|
||||
_defaults = {
|
||||
#'name': lambda self,cr,uid,context: self.pool.get('ir.sequence').get(cr, uid, 'stock.picking'),
|
||||
'name': lambda self,cr,uid,context: self.pool.get('ir.sequence').get(cr, uid, 'stock.picking'),
|
||||
'active': lambda *a: 1,
|
||||
'state': lambda *a: 'draft',
|
||||
'move_type': lambda *a: 'direct',
|
||||
|
@ -454,8 +454,7 @@ class stock_picking(osv.osv):
|
|||
return moves
|
||||
|
||||
def action_confirm(self, cr, uid, ids, context={}):
|
||||
val = self.pool.get('ir.sequence').get(cr, uid, 'stock.picking')
|
||||
self.write(cr, uid, ids, {'name': val, 'state': 'confirmed'})
|
||||
self.write(cr, uid, ids, {'state': 'confirmed'})
|
||||
todo = []
|
||||
for picking in self.browse(cr, uid, ids):
|
||||
for r in picking.move_lines:
|
||||
|
|
Loading…
Reference in New Issue