Luc De Meyer
620aaf923a
performance improvement
2019-06-19 13:42:37 +00:00
Akim Juillerat
23c8e7dce8
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.
2019-06-19 13:42:37 +00:00
Maxence Groine
8507f43b1b
[FIX] account_asset_management: Fix lines computation in invoice with
...
multiple assets
2019-05-24 10:19:37 +02:00
Alexis de Lattre
fc09774f7b
[FIX] account_asset_management: bad domain for account_analytic_id
2019-04-10 18:46:04 +02:00
Luc De Meyer
90bceeaac2
[FIX] account_asset_management: fix stack while trying to log an error ( #782 )
2019-03-18 09:28:40 +01:00
Akim Juillerat
ce1d687a42
Fix use of Date vs Datetime for method_number_end
2018-10-19 10:40:07 +02:00
Luc De Meyer
07f695d303
fix local variable 'dlines' referenced before assignment
2018-10-15 20:43:55 +02:00
Akim Juillerat
b1d10d53ba
Second round of improvements
2018-10-15 15:43:10 +02:00
Akim Juillerat
af0f1333f3
Move from TransactionCase to SavepointCase
2018-10-12 09:40:37 +02:00
Akim Juillerat
19bc7b72f0
Improve calls to super with Python3
2018-10-12 09:40:37 +02:00
Akim Juillerat
e7c5370e6b
Improvements according to review
2018-10-12 09:40:37 +02:00
Akim Juillerat
d49097b1bb
Fix KeyError when invl_id does not exist
2018-10-02 12:01:50 +02:00
Luc De Meyer
74f9c21920
fix _compute_move_line_check
2018-10-02 11:54:39 +02:00
Akim Juillerat
3efba5334e
Do not use builtin type in function
2018-10-02 11:54:39 +02:00
Akim Juillerat
35df4ec6de
Fix tests
2018-10-02 11:54:39 +02:00
Akim Juillerat
fc03d22bf2
[MIG] account_asset_management: Migration to 11.0
2018-10-02 11:54:39 +02:00
Luc De Meyer
13317365e5
fix onchange
2018-10-01 11:43:02 +02:00
Akim Juillerat
a3d83b4d43
Fix compute methods dependencies and small optimizations
2018-10-01 11:43:02 +02:00
Luc De Meyer
2e7fe380c9
hide fields for type view assets
2018-10-01 11:43:02 +02:00
Luc De Meyer
088f12101f
fix init flag when computing depreciation board
2018-10-01 11:43:02 +02:00
Luc De Meyer
5bb98b33b1
bugfix in raise
2018-10-01 11:43:02 +02:00
Luc De Meyer
1d2c7910fd
[10.0][MIG]account_asset_management suite refactoring + 10.0 port
2018-10-01 11:43:02 +02:00