-
-
Notifications
You must be signed in to change notification settings - Fork 404
[18.0][ADD] purchase_request_analytic_tag #775
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
base: 18.0
Are you sure you want to change the base?
[18.0][ADD] purchase_request_analytic_tag #775
Conversation
ab223d8
to
16a95d6
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.
Not blocking, but my preferred approach would be to use out-of-the-box Analytic Distributions.
4d85258
to
a7c3e03
Compare
@dreispt Thank you for your review. But Analytic distribution is not enough for own project. |
My personal POV is that Analytic Tags is a deprecated feature, replaced by Analytic Distribution, and the future direction should be to rather focus on Analytic Dist. support. |
Hi @dreispt , as far as I understand, analytic distribution models are used with the intention of automatically applying an analytic account to an accounting entry (and subsequently generating an analytic line for that account). However, the purpose of analytic tags is to tag the analytic lines based on the analytic account set on the accounting entry. Therefore, the distribution model determines the analytic account used in the accounting entry, and the tags determine the categorization of the analytic lines based on the analytic account used. From my point of view, these are not interchangeable features; however, one might question the usefulness of analytic tags — but if they are used, they are necessary, IMHO. |
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.
Tested on runboat and LGTM. Look at my comment!
from odoo import fields, models | ||
|
||
|
||
class PurchaseOrderLine(models.Model): |
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.
class name must be PurchaseRequestLine?
This module add analytic tags in purchase request line and send it to purchase order line
Depend On: