-
-
Notifications
You must be signed in to change notification settings - Fork 161
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
account_invoice_margin: does not populate purchase_price on install #182
Comments
Hi @dreispt. Thanks for your comment. I've already thought about this, and I haven't found a better solution yet. Here's my train of thought:
-> my current conclusion on that topic : let's put 0 for existing invoices. it's better to have no margin than to have a false margin and base bad decisions on it. What do you think ? |
Help me understand why |
no. because of this hook : https://github.com/OCA/margin-analysis/blob/12.0/account_invoice_margin/hooks.py
|
There hasn't been any activity on this issue in the past 6 months, so it has been marked as stale and it will be closed automatically if no further activity occurs in the next 30 days. |
@legalsylvain Hello, can you please have a look at #202? |
Module
account_invoice_margin
Describe the bug
When installing
account_invoice_margin
, thepurchase_price
field is expected to be populated with the product'sstandard_price
, but it stays as zero.Manually running
_compute_purchase_price
fixes it, but I can't see why this is not already being done on install - I could be missing something.To Reproduce
Affected versions: 14.0
Steps to reproduce the behavior:
Expected behavior
the cost invoice line column: is is zero while it should be the product cost
The text was updated successfully, but these errors were encountered: