(cherry picked from commit 7fa1b0ac883914f3cdfcaaa1a00016a35cced368)
[IMP] Add some unitest and fix a bug with exceptions
(cherry picked from commit c2f34ecd06fa5ba093084cf32f35c722c5866ff5)
[FIX] Reindent line
(cherry picked from commit b643a48f86b20ed6496f2e08366a407095d1540b)
[IMP] Add some new unittests
(cherry picked from commit f118e2391de3b443558d26186fe44f55a7f0b9c4)
[IMP] Add encoding in each python files
(cherry picked from commit 9599a88303b921c8e73174db61318f6dc9f02017)
(cherry picked from commit 811310fd06ca8589fa8e87da6b8bdaea403bf660)
[MIG] Improve the code and fix some bugs
(cherry picked from commit 5bcdfe3f748884d650120f76d1642b820d0a800b)
[FIX] Change the parent for the menu Credit Control (the previous parent menu was not in the Odoo standard)
(cherry picked from commit 826257ce7b5248956d838cae9c94a012d550327e)
[FIX] Fix a lot of errors to respect pep8
(cherry picked from commit bed6cf35d665eea32122c91d33322af141053f29)
[FIX] Respect PEP8
(cherry picked from commit 6353eef0dce1bfe5db8a38d3410d1cc7f833fa10)