Skip to content

[16.0][MIG]sale_stock_analytic - #616

Closed
moitabenfdz wants to merge 7 commits into
OCA:16.0from
DynAppsNV:16.0-mig-sale_stock_analytic
Closed

[16.0][MIG]sale_stock_analytic#616
moitabenfdz wants to merge 7 commits into
OCA:16.0from
DynAppsNV:16.0-mig-sale_stock_analytic

Conversation

@moitabenfdz

Copy link
Copy Markdown
Contributor

No description provided.

sol_id = move_values.get("sale_line_id", False)
if sol_id:
sol_model = self.env["sale.order.line"]
sol = sol_model.browse(sol_id)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should consider the case where the analytic account is at the sale order level. In that case, we have to take the sale order analytic account on every line of the stock move

@cvinh cvinh Feb 9, 2024

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I did a PR on your branch
DynAppsNV#2

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think we have to do this. Passing analytic_distribution to stock move is enough.

cls.sale_order_line_model = cls.env["sale.order.line"]
cls.product_model = cls.env["product.product"]
cls.res_partner_model = cls.env["res.partner"]

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Try to avoid whitespaces in-between methods

@github-actions

github-actions Bot commented Dec 8, 2024

Copy link
Copy Markdown

There hasn't been any activity on this pull request in the past 4 months, so it has been marked as stale and it will be closed automatically if no further activity occurs in the next 30 days.
If you want this PR to never become stale, please ask a PSC member to apply the "no stale" label.

@github-actions github-actions Bot added the stale PR/Issue without recent activity, it'll be soon closed automatically. label Dec 8, 2024
@github-actions github-actions Bot closed this Jan 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

stale PR/Issue without recent activity, it'll be soon closed automatically.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants