Commit Graph
4 Commits
Author SHA1 Message Date
Yannick Tivisse 42b891700e [FIX] report: allow 'get_action' to receive id, ids or browse records as 'docids'
1/ If no docids are passed in get_action (empty list) do not put in context

2/ The method should accept ids or browse records as docids for retrocompatibility.
- The api.v7 method took ids as docids
- The api.v8 method took a browse records 'records' to call the api.v7 method with
  'records.ids' as docids
In python, we cannot write 2 functions with the same name that takes differents types
for the same argument. The function 'guess' in api.py will lead to a crash if we expect
a browse record and we send a list
The only way to allow the method to receive different types for the same argument is
to decorate it with '@api.noguess' to prevent any effect from guess method.
That way, we check directly if 'docids' is an id, ids or a browserecord and we always set
a list instead.
2016-07-29 12:20:41 +02:00
Thibault Delavallée 8f1e11ab52 [CLN] stock_picking_wave: cleaning and linting 2016-07-12 17:52:29 +02:00
Virbhadrasinh Gohil 9205a143ed [MIG] stock_picking_wave: new API
New API yey ! Otherwise, no change. Only migration.
2016-04-19 16:01:39 +02:00
Virbhadrasinh Gohil 030d25f0de [MOV] stock_picking_wave: rearrange files
Files are renamed and moved according to the guidelines. No change has been
performed in this commit. No bug has been harmed.
2016-04-19 16:01:06 +02:00