Skip to content

Conversation

Saran440
Copy link
Member

@Saran440 Saran440 commented Apr 24, 2025

This module add analytic tags in purchase request line and send it to purchase order line

Depend On:

Copy link
Member

@dreispt dreispt left a 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.

@Saran440 Saran440 force-pushed the 18.0-add-purchase_request_analytic_tag branch from 4d85258 to a7c3e03 Compare June 19, 2025 09:17
@Saran440
Copy link
Member Author

@dreispt Thank you for your review.

But Analytic distribution is not enough for own project.
and when we use purchase_request and purchase_analytic_tag
it should send analytic_tag (if any) from purchase_request to purchase_order too

@dreispt dreispt self-requested a review June 19, 2025 14:23
@dreispt
Copy link
Member

dreispt commented Jun 19, 2025

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.
I don't mean to block any work on Analytic Tags, but I don't thing it is he best place to spend effort on, sorry.

@luisDIXMIT
Copy link

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. I don't mean to block any work on Analytic Tags, but I don't thing it is he best place to spend effort on, sorry.

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.
What do you think about this? Could I be missing something?

Copy link

@luisDIXMIT luisDIXMIT left a 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):

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants