Commit Graph

10 Commits

Author SHA1 Message Date
Pedro M. Baeza
e7cf803de0 [FIX] account_renumber: sudo for assigning next sequences
You don't need to have settings permission for running this wizard.
2018-08-15 17:23:31 +02:00
David Vidal
da8a923b86 [MIG] account_renumber: Migration to 10.0 2018-08-15 17:23:31 +02:00
Jairo Llopis
6e2ffbe037 [IMP] account_renumber:
* Increase coverage to 100%.
* Update data file tags, remove old-style "or" from wizard view.
* Skip renumber when no date range is found.
2018-08-15 17:23:31 +02:00
Jairo Llopis
87df3f8905 [9.0][MIG][account_renumber] Migrate to 9.0, refactor.
- In v9 `account.period` has disappeared, so now the wizard asks for start and end dates.
- `ir.sequence` has changed logic too, this module is now adapted.
- Old tests had to be run through the CLI. New tests work with standard test system.
- Old menu parent does not exist anymore, so it is now moved to other place.
- Old license & copyright headers are now updated, respecting old copyrights where found.
- `.pot` file removed.
- README added.

Related to https://github.com/OCA/account-financial-tools/issues/311#issuecomment-219378169.
2018-08-15 17:23:31 +02:00
Jordi Llinares
c34d9ae5b2 [MIG] Migration of account_renumber to 8.0. 2018-08-15 17:23:31 +02:00
Nicolas Bessi
5109a99bd7 [FIX] move all unported addons into __unported__ folder instead of adding _unported suffix 2018-08-15 17:23:31 +02:00
Pedro M. Baeza
cca2c660c3 [IMP] account_renumber: Full PEP8 in wizard_renumber.py 2018-08-15 17:23:31 +02:00
Pedro M. Baeza
9cb70feef3 [IMP] account_renumber: PEP8
[IMP] account_renumber: Restrict to account managers.
[IMP] account_renumber: Fix translations.
2018-08-15 17:23:31 +02:00
Pedro M. Baeza
a3644993ff [IMP] account_renumber: Spaces instead tabs on XML.
[FIX] account_renumber: Group restriction for the menu removed.
2018-08-15 17:23:31 +02:00
Joaquin Gutierrez
1c51d33814 [FIX+IMP] account_renumber: General Refactoring:
[FIX] Changed types to orm.Model, orm.TransientModel and orm.AbstractModel.
[FIX] Change renumbering assistants in renumbering, show results and cancellation to version 7.
[FIX] Remove legacy code calls.
[FIX] Contributions have been written in the standard format of the community.
[FIX] Changes in the form to work as a real wizard.
[FIX] Remove 'init_xml' keys, because it's no longer needed in v7.
[FIX] Rename 'demo_xml' key to the new standard 'demo'.
[FIX] Rename menu entry to "Renumber journal entries".
[FIX] Change imports calls.
[FIX] Remove __author__ variables in files, because authors are put on manifest file (__openerp__.py).
[FIX] Increased compatibility with standard PEP8.
[FIX] Delete test folder. On the next review I'll be able to create with YAML.
[IMP] In selecting these come peridos sorted correctly. I modified the code to renumber the entries from period to period with this order.
[FIX] Wizard in new windows.
[FIX] Add oe_link class to close botton.
[FIX] Remove import time, it's not required.
[FIX] Delete "_process" method, it's not requerired.
[FIX] Delete "_get_id", now use the method "next_by_id" of object ir.sequence.
[FIX] Refactoring get_sequence_id_for_fiscalyear_id. At the core there is no method to get the id of a sequence based on the fiscal year. Change sql querys for browser method.
[FIX] Change order "Renumber" and "Cancel" buttons.
[FIX] Identation for return sequence_id in method get_sequence_id_for_fiscalyear_id
[FIX] Change variable name seq_facade for sequences.
[FIX] Revision for PEP8
2018-08-15 17:23:31 +02:00