-
Notifications
You must be signed in to change notification settings - Fork 2
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
[4346][ADD] mrp_mto_analytic, purchase_mto_analytic #110
Conversation
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.
@AungKoKoLin1997 Can you please update the OCA PR with the content of my commit?
bebaf50
to
aa76cb8
Compare
@AungKoKoLin1997 Can you please add a consideration in purchase_mto_analytic to split the procurement based on the analytic distribution? I suppose we should extend this https://github.com/OCA/OCB/blob/52bec03/addons/purchase_stock/models/stock_rule.py#L182-L191 to add analytic_distribution as a key. Haven't checked whether an equivalent consideration is needed in mrp_mto_analytic. I am guessing not. Please help check. |
I think we can't do like this because |
There is blocking issue when we want to split purchase order line depends on This is after create two PO lines depends on analytic_distribution. After that, when we create new document with the same analytic_distribution of existing second PO line, it checks whether it is create new PO line or use existing one. Then, it creates new PO line because the first line of existing PO doesn't have the same analytic_distribution with the coming PO line. So, we need to complete override above function. |
4346