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',
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()
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',
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: