OCA-git-bot
63bec0c272
Merge PR #859 into 12.0
...
Signed-off-by pedrobaeza
2020-02-05 07:25:17 +00:00
sbejaoui
21d2328e0c
[IMP] - use model_create_multi for account move line creation
2020-02-04 10:20:05 +01:00
Ernesto Tejeda
0c4495b447
[IMP] account_asset_management: Remove asset name limit size
2020-01-31 10:46:00 -05:00
Saran
5810d7c9c3
[12.0][FIX] account_asset_management - Allow editing salvage value
2020-01-22 16:25:09 +07:00
Luc De Meyer
d9280245f6
change suggested by pedro
2020-01-10 08:55:31 +01:00
Luc De Meyer
20a6b7480e
[12.0][FIX]traceback when deviating FY
2020-01-09 21:43:01 +01:00
Iván Todorovich
ba76fbed2c
[12.0][FIX][account_asset_management] local variable 'asset' referenced before assignment
...
tools/account_asset_management/models/account_asset.py", line 970, in _compute_entries
% (asset.name, asset.code) or asset.name
UnboundLocalError: local variable 'asset' referenced before assignment
2019-10-28 15:38:58 +01:00
Joan Sisquella
ad1dbf479d
[ADD] allows setting a depreciation ending date
2019-10-23 13:05:26 +02:00
Saran
b7b3edbff3
[ADD] options 'use_leap_years'
2019-10-22 14:59:57 +07:00
Saran
bf44a96171
[12.0][IMP] account_asset_management
2019-10-22 09:30:05 +07:00
Pedro M. Baeza
738a4d1fcd
[MIG+FIX+IMP] account_asset_management: Rework migration scripts + make asset group m2m
2019-09-10 12:08:34 +02:00
Henrik Norlin
8486c9c0ce
[IMP] removed type, parent_id, parent_path, child_ids from account.asset & account.asset.profile
2019-08-31 19:57:54 +02:00
Pedro M. Baeza
583d7fdda2
[FIX] account_asset_management: Don't depend on account.fiscal.year created records
...
* There's no need of forcing to create such records if your fiscal years are regular ones.
* FY date range computation duplicates code that is already on core.
* DummyFY is a good idea, but was not used at all. Now it is.
2019-08-14 22:08:52 +00:00
Luc De Meyer
861a9d028d
[FIX][12.0]asset_management - fix date string compare
2019-08-14 22:34:05 +02:00
Pedro M. Baeza
85a305dfe0
[FIX] account_asset_management: Provide hook _compute_depreciation_amount_per_fiscal_year
...
This way, other method_time mechanism like localization ones is able to overwrite it.
You also got an error of variable `number` not set due to previous code. Although no
alternate implementation for a new method_time, now you don't have any error,
fallbacking to standard proportional repartition.
2019-08-12 11:51:16 +02:00
Henrik
197fa5ebef
[FIX] test_flake8 (2)
2019-06-30 13:45:21 +00:00
Henrik
fe5b835420
[FIX] test_flake8
2019-06-30 13:45:21 +00:00
Henrik
76d6b9b926
[12.0][FIX] account_asset_management: date_range -> account_fiscal_year, account_analytic_id without domain
2019-06-30 13:45:21 +00:00
Bejaoui Souheil
33f9d7f468
Finish 12.0 migration of account_asset_management
...
* account_asset: Do not loop on all the lines to search for one linked asset
Before this change, the use of `mapped` on self did loop on all the move
lines that are included in self to get the assets, what could be very
costly for a simple write on a lot of move lines. As the goal is to raise
an error only if at least one move is linked to an asset, we break the
loop if the condition is fulfilled.
* performance improvement
* [RMV] - Remove useless dependency
In 12.0 account_fiscal_year is a standard feature no need to depend on oca
module account_fiscal_year
2019-06-30 13:45:21 +00:00
Maxence Groine
4ee95948be
Included PR #828 Fix computation of depreciation lines when having multiple assets in invoice
2019-06-30 13:45:21 +00:00
Henrik Norlin
64122c028d
[MIG] account_asset_management: Migration to 12.0
2019-06-30 13:45:21 +00:00
Akim Juillerat
ce213eda7d
Fix use of Date vs Datetime for method_number_end
2019-06-30 13:45:20 +00:00
Luc De Meyer
6013d76b85
fix local variable 'dlines' referenced before assignment
2019-06-30 13:45:20 +00:00
Akim Juillerat
1740bf5cb3
Second round of improvements
2019-06-30 13:45:20 +00:00
Akim Juillerat
1a6cd81460
Move from TransactionCase to SavepointCase
2019-06-30 13:45:20 +00:00
Akim Juillerat
05a2b6aeb8
Improve calls to super with Python3
2019-06-30 13:45:20 +00:00
Akim Juillerat
264726c7f1
Improvements according to review
2019-06-30 13:45:20 +00:00
Akim Juillerat
f6f8344363
Fix KeyError when invl_id does not exist
2019-06-30 13:45:20 +00:00
Luc De Meyer
70e502d2ba
fix _compute_move_line_check
2019-06-30 13:45:20 +00:00
Akim Juillerat
dc816fee61
Do not use builtin type in function
2019-06-30 13:45:20 +00:00
Akim Juillerat
9f96ce6e20
Fix tests
2019-06-30 13:45:20 +00:00
Akim Juillerat
1ab818e42f
[MIG] account_asset_management: Migration to 11.0
2019-06-30 13:45:20 +00:00
Luc De Meyer
dda83904e5
fix onchange
2019-06-30 13:45:20 +00:00
Akim Juillerat
dbf9c07387
Fix compute methods dependencies and small optimizations
2019-06-30 13:45:20 +00:00
Luc De Meyer
2f31898471
hide fields for type view assets
2019-06-30 13:45:20 +00:00
Luc De Meyer
52b284d038
fix init flag when computing depreciation board
2019-06-30 13:45:20 +00:00
Luc De Meyer
b0da62b316
bugfix in raise
2019-06-30 13:45:20 +00:00
Luc De Meyer
532b079855
[10.0][MIG]account_asset_management suite refactoring + 10.0 port
2019-06-30 13:45:20 +00:00