Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- config = proteus_config.get_config()
- context = {'language': 'de'}
- with config.set_context(context):
- CustomerShipments = Model.get('stock.shipment.out')
- selection = CustomerShipments.fields_get({})['state']['selection']
- print(selection)
- # prints:
- # [['draft', 'Draft'], ['done', 'Done'], ['cancel', 'Canceled'], ['assigned', 'Assigned'], ['packed', 'Packed'], ['waiting', 'Waiting']]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement