- Fix search clear button
- Refactor load_order and actions
This refactors load_data into two functions: load_order_data and load_order_from_data.
Also, when executing actions, instead of sending the order as an argument, only the order_data will be sent.
The action method is responsible for generating the order data (if that's what it needs)
All the refund logic has been extracted from the various methods, and it's now in action_return.
Now, returns have a specific 'Refund XXXX' name.
- IMP Allow to duplicate done orders from the POS
- IMP filter by customer name, too, when searching
When the PoS is using fiscal positions it can lead to errors when
computing the reprinted ticket value because the tax mapping function
computes them from the current order instead of from the one belonging
to the line. So we set our loaded order temporarily as the selected one
just to bring it back to the current one after it's printed.