diff --git a/account_asset_transfer/README.rst b/account_asset_transfer/README.rst index da2257621..95d6af282 100644 --- a/account_asset_transfer/README.rst +++ b/account_asset_transfer/README.rst @@ -31,6 +31,10 @@ AUC is Asset under construction where some assets are in construction phase and cost needs to be captured for the time being. Once asset is fully completed then cost would be transferred to final asset +**Note:** + +* If the asset don't have journal entries, asset transfer will use account settings from the asset/asset profile instead. + **Table of contents** .. contents:: @@ -77,6 +81,7 @@ Contributors * `Ecosoft `__: * Kitti U. + * Pimolnat Suntian Maintainers ~~~~~~~~~~~ diff --git a/account_asset_transfer/models/account_asset.py b/account_asset_transfer/models/account_asset.py index 3a0667196..eed3f32b4 100644 --- a/account_asset_transfer/models/account_asset.py +++ b/account_asset_transfer/models/account_asset.py @@ -20,7 +20,6 @@ class AccountAsset(models.Model): not asset.method_number and asset.value_residual and asset.state == "open" - and asset.account_move_line_ids ) def _search_can_transfer(self, operator, value): @@ -29,7 +28,6 @@ class AccountAsset(models.Model): ("method_number", "=", 0), ("value_residual", ">", 0), ("state", "=", "open"), - ("account_move_line_ids", "!=", False), ] if operator == "!=": return [ @@ -39,7 +37,6 @@ class AccountAsset(models.Model): ("method_number", ">", 0), ("value_residual", "=", 0), ("state", "!=", "open"), - ("account_move_line_ids", "=", False), ] def _check_can_transfer(self): diff --git a/account_asset_transfer/readme/CONTRIBUTORS.rst b/account_asset_transfer/readme/CONTRIBUTORS.rst index 25763ec76..b64335f20 100644 --- a/account_asset_transfer/readme/CONTRIBUTORS.rst +++ b/account_asset_transfer/readme/CONTRIBUTORS.rst @@ -1,3 +1,4 @@ * `Ecosoft `__: * Kitti U. + * Pimolnat Suntian diff --git a/account_asset_transfer/readme/DESCRIPTION.rst b/account_asset_transfer/readme/DESCRIPTION.rst index 02c311f15..176f2cbd1 100644 --- a/account_asset_transfer/readme/DESCRIPTION.rst +++ b/account_asset_transfer/readme/DESCRIPTION.rst @@ -3,3 +3,7 @@ This module allow transferring assets under construction (AUC) to normal assets. AUC is Asset under construction where some assets are in construction phase and cost needs to be captured for the time being. Once asset is fully completed then cost would be transferred to final asset + +**Note:** + +* If the asset don't have journal entries, asset transfer will use account settings from the asset/asset profile instead. diff --git a/account_asset_transfer/static/description/index.html b/account_asset_transfer/static/description/index.html index 568382a6f..62227baf7 100644 --- a/account_asset_transfer/static/description/index.html +++ b/account_asset_transfer/static/description/index.html @@ -3,7 +3,7 @@ - + Asset Transfer from AUC to Asset