Allow to change the carrier until the shipment is done

issue4413
review5881002
This commit is contained in:
Guillem Barba
2014-12-16 21:26:16 +01:00
parent b1d95270bc
commit 252b4624a0
2 changed files with 4 additions and 1 deletions
+2
View File
@@ -1,3 +1,5 @@
* Allow to change the carrier until the shipment is done
Version 3.4.0 - 2014-10-20
* Bug fixes (see mercurial logs for details)
+2 -1
View File
@@ -12,7 +12,8 @@ __metaclass__ = PoolMeta
class ShipmentOut:
__name__ = 'stock.shipment.out'
carrier = fields.Many2One('carrier', 'Carrier', states={
'readonly': Eval('state') != 'draft',
'readonly': ~Eval('state').in_(['draft', 'waiting', 'assigned',
'packed']),
},
depends=['state'])
cost_currency = fields.Many2One('currency.currency',