1234567891011121314151617181920212223242526272829303132 |
- from openerp import models, fields, api
- class stock_picking(models.Model):
- _inherit = 'stock.picking'
- new_location_id = fields.Many2one('stock.location', 'Ubicacion de Origen', domain="[('usage','<>','view')]")
-
-
-
-
-
-
- new_location_dest_id = fields.Many2one('stock.location', 'Ubicacion de destino', domain="[('usage','<>','view')]")
-
-
-
-
-
-
- @api.one
- def update_locations(self):
- vals = {
- 'location_id': self.new_location_id.id,
- 'location_dest_id': self.new_location_dest_id.id
- }
- self.move_lines.write(vals)
|