Commit Graph

46 Commits

Author SHA1 Message Date
Pedro M. Baeza
dcf1db3765 [FIX] account_chart_update: Fetch account code digits correctly 2017-11-02 17:34:58 +01:00
Sylvain Van Hoof
37bfb7e86e [MIG] account_chart_update: Migration to 10.0 2017-08-15 12:46:34 +02:00
Pedro M. Baeza
c8fb127770 [IMP] account_chart_update: Improve translations + Spanish 2017-08-15 12:38:17 +02:00
Pedro M. Baeza
f97668c362 [FIX] account_chart_update: Fix fiscal position mapping 2017-08-15 12:38:17 +02:00
Jairo Llopis
58980cacc5 [MIG][9.0][account_chart_update] Migrate.
- New-style license headers.
- Remove .pot file.
- Remove tax codes stuff, now removed from v9.
- Refactor methods for search, create, update, delete. Now they are smaller, fitter, happier, more productive.
- Only update fields that have any kind of change on any updated record.
- Place the wizard in the configuration page, instead of its own menu item.
- Display amount of disabled taxes at ending page.
2017-08-15 12:38:17 +02:00
Stéphane Bidoul
136fe1043c [FIX] account_chart_update:
* Process price_include field
* Detect change in price_include field
2017-08-15 12:38:17 +02:00
PabloCM
80730edc33 [FIX] Include acc templates from parent CoA templates 2017-08-15 12:38:17 +02:00
Pedro M. Baeza
edb3b066d3 [FIX] account_chart_update: Don't write code on account update
As there's a constraint that forbids to write the code of the account
if it has moves, we delete the corresponding entry on update only,
because the method that prepares the values is the same for new and
existing accounts.
2017-08-15 12:38:17 +02:00
Pedro M. Baeza
0b51096cfc Merge pull request #231 from Antiun/pr-account_chart_update_taxes_bugfix
Several bugfixes on taxes compares and updates
2015-06-24 15:51:02 +02:00
Antonio Espinosa
028811e2a8 Add Antonio Espinosa as contributor 2015-06-24 12:25:19 +02:00
Pedro M. Baeza
9e3067237e [FIX] account_chart_update: Call mapping function instead of removed cache. Closes #240 2015-06-19 20:06:46 +02:00
Antonio Espinosa
6d6bed33cf [FIX] Spanish translation 2015-06-08 12:24:17 +02:00
Antonio Espinosa
9a56ddbc66 [FIX] Remove _logger line 2015-06-05 22:17:18 +02:00
Antonio Espinosa
b6fad122f2 [FIX] Set updated taxes as active
[FIX] Check parent_id field in '_is_different_tax' method
[FIX] PEP8
2015-06-05 22:00:47 +02:00
Pedro M. Baeza
3f3f59c16c [IMP] account_chart_update: Re-enable local cache variables 2015-05-22 20:00:28 +02:00
Pedro M. Baeza
09cb584fdb [IMP] account_chart_update: Whole refactoring
* Migrated to new API.
* Provided hooks for detecting changes and for adding update/create values.
* Purge dead error detection code (not applying).
* Use global mapping dictionaries stored on class instead of passing arguments down to top and viceversa.
* Number fields computed by a function field instead of being computed by hand.
* Use recordsets as indexes instead of ids to avoid repetitive browses.
2015-04-24 02:06:09 +02:00
Guewen Baconnier
d673aca58c Fix W503 errors 2015-02-17 13:00:43 +01:00
Stéphane Bidoul
b0efd0a46a [FIX] account_chart_update: fix None context issue 2015-02-05 15:14:53 +01:00
Stéphane Bidoul
90c240fb1f [IMP] account_chart_update: avoid inserting duplicates in presence of inactive taxes or tax codes 2015-01-14 22:41:05 +01:00
Stéphane Bidoul
321010b16c [FIX] account_chart_update: multi-company criteria for taxes 2015-01-14 22:41:05 +01:00
Stéphane Bidoul
a5431bf3df [IMP] account_chart_update: deactivate taxes that are not in the template 2015-01-14 22:41:05 +01:00
Stéphane Bidoul
321a6b234f [IMP] account_chart_update: add active field on tax code
Deactivate tax codes which are not in the template.
2015-01-14 22:41:05 +01:00
Stéphane Bidoul
ef00131d12 [IMP] account_chart_update: compare more fields in taxes 2015-01-14 22:41:05 +01:00
Stéphane Bidoul
902b5ad108 [IMP] account_chart_update: depth-first search of tax codes
This helps creating parents before children.
2015-01-14 22:41:05 +01:00
Stéphane Bidoul
56045b4b29 [IMP] account_chart_update: update accounts on taxes even if an update of the account was not requested
Useful when the chart of taxes changes but the chart of account
need not be updated.
2015-01-14 22:41:05 +01:00
Stéphane Bidoul
64817c2eba [IMP] account_chart_update: deletion of tax codes removed from templates
For tax codes, it make sense to propose deletion, since tax codes
are normally defined by the tax authority and the user does not
customize them.
2015-01-14 22:41:05 +01:00
Stéphane Bidoul
1899ce1807 [IMP] account_chart_update: compare more fields in tax codes 2015-01-14 22:41:05 +01:00
Stéphane Bidoul
4061e117d2 [IMP] account_chart_update: search on code first to match tax codes
The tax code code should be more discriminant that the tax code name.
2015-01-14 22:41:05 +01:00
Adrien Peiffer
d2eef7d86c [DEL] product_obj isn't used 2014-11-28 09:16:01 +01:00
Adrien Peiffer
f0a6c9f559 [FIX] number digits is returned before assignment in case of property exist but account not 2014-11-28 09:09:32 +01:00
Adrien Peiffer
69dd10dea9 [IMP] Use get_by_record method of ir.property 2014-11-28 09:06:54 +01:00
Adrien Peiffer
89a1bc710a [PORT] value_reference of ir.property is a char 2014-11-27 10:40:33 +01:00
Adrien Peiffer
fe8457dced [PORT] Move account_chart_update out of unported 2014-11-27 10:18:59 +01:00
Nicolas Bessi
bba9718229 [FIX] move all unported addons into __unported__ folder instead of adding _unported suffix 2014-07-02 14:47:06 +02:00
Nicolas Bessi
880aec8363 Revert "Rename all addons to xxx_unported to be travis compliant"
This reverts commit 7eb182744f.
2014-07-02 14:44:45 +02:00
Nicolas Bessi
7eb182744f Rename all addons to xxx_unported to be travis compliant 2014-06-30 11:14:16 +02:00
Pedro M. Baeza
325b3dcf82 Last fixes from reviews 2014-05-20 02:03:02 +02:00
Pedro M. Baeza
47e6399933 Some comments from Yannick's review 2014-05-12 23:57:43 +02:00
Pedro M. Baeza
98b9c145e2 [FIX] account_chart_update: Selection of operations to do now is working.
[FIX] account_chart_update: Adapted to work with inherited account chart templates.
[FIX] account_chart_update: Remove required=True for chart_template_id on DB and put on screen to avoid error when removing chart templates.
[FIX] account_chart_update: Change method to compare taxes of fiscal positions to match with the one comparing taxes.
[FIX] account_chart_update: Change method to compare accounts of fiscal positions to match with the one comparing accounts.
[IMP] account_chart_update: Wizard now shows in tree view modification notes.
[IMP] account_chart_update: For new data to be created, it is marked on notes the reason for the creation (just for clarity).
[IMP] account_chart_update: Tabs for operations that are not going to be performed are hidden.
[IMP] account_chart_update: Some PEP8 here and there.
[IMP] account_chart_update: Enhance a little the mapping searches (there's more room to improve).
[IMP] account_chart_update: Now it takes into account name and description for mapping taxes.
2014-03-21 02:01:05 +01:00
Stéphane Bidoul
6886211430 [IMP] attempt to match tax code on code if no match on name was found 2014-01-07 12:48:24 +01:00
Yann Papouin
3779ee6314 FIX: wrong dict passed in _update_accounts 2013-11-27 15:36:05 +01:00
Invitu
8bd073f39a [IMP] small improvement : calling reopen method in action_init + indentation 2013-10-18 06:44:19 -10:00
Pedro M. Baeza
c5864b2bc0 [IMP] account_chart_update: Menu path to avoid needing multi-company permission. 2013-10-15 16:28:59 +02:00
Pedro M. Baeza
c56b64d0b2 [FIX] account_chart_update: Corrected description for RST parser and english faults in it.
[FIX] account_chart_update: Corrected some english terms.
[IMP] account_chart_update: Changed name of menu to avoid excessive length.
[IMP] account_chart_update: Removed three line comments style.
[IMP] account_chart_update: Remove class instantiation.
[IMP] account_chart_update: Put method descriptions according documentation standards.
[IMP] account_chart_update: Updated translations.
2013-10-15 16:19:18 +02:00
Joaquin Gutierrez
d736a8c184 [IMP]: User Invitu add the method call _reopen to keep open the wizard.
[MRG]: User Invitu add frech language.
2013-10-08 20:15:46 +02:00
Joaquin Gutierrez
69f0af6c0e [MRG]: Port account_char_update to version 7.0
[FIX]: Changed types to orm.Model, orm.TransientModel and orm.AbstractModel.
[FIX]: Fix deletion method for some fields of objects.
[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]: Change imports calls.
[FIX]: Remove __author__ variables in files, because authors are put on manifest file (__openerp__.py).
[FIX]: Update view definitions to version 7.0
[FIX]: Rename variables to OpenERP standard.
[FIX]: Increased compatibility with standard PEP8.
2013-10-01 18:28:19 +02:00