New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[8.0][FIX] account_asset: Do not include inactive asset lines on asse… #600
Conversation
IMO the report should include all assets, but let's see what Odoo says |
Thanks @pedrobaeza |
9d5edb5
to
5227193
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agree with @pedrobaeza: if there are depreciation lines, they should be shown even for inactive assets.
Thanks for your reply @StefanRijnhart |
But then the bug is because canceling the invoice doesn't remove the asset. In version 9 it's done this way. |
But you can not remove the asset, it could have posted depreciation lines linked to the account moves. In this case the invoice should not be able to be cancelled. I have been reviewing v9 code as @pedrobaeza says, but I see a similar code only moved to another object:
Moreover, I just want to add an easy solution for the asset report, more than start changing the asset code and how it works. |
Sorry, you're right, assets become inactive, but then again your statement is not correct. You need to show depreciation lines already posted, even for inactive assets. With this, you're hiding them. |
As stated upstream, the bug is not correct, so I close. |
Hi @pedrobaeza, |
OK, I didn't see the change, but why don't you say this to Odoo also? They can accept this change. I reopen anyway. |
@StefanRijnhart, what do you think about the new code? |
Hi @pedrobaeza, |
dc113a0
to
63fc5d2
Compare
63fc5d2
to
27ae961
Compare
518dbaa
to
3bf6ccb
Compare
…t analysis report
3bf6ccb
to
35ebd54
Compare
Description of the issue/feature this PR addresses:
Not reported
Current behavior before PR:
Inactive asset lines are computed on asset analysis report
Desired behavior after PR is merged:
Do not include inactive asset lines on asset analysis report
odoo#16092
--
I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr