Skip to content
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

[FIX] account, analytic: add analytic distribution, remove precompute #146549

Conversation

guva-odoo
Copy link
Contributor

Related to https://github.com/odoo/enterprise/pull/52648
we add the analytic distributino to the move vals for
the exchange diff move.
We also remove the precompute on the fields, manual backport
of b9047fe

opw-3603668

@robodoo
Copy link
Contributor

robodoo commented Dec 15, 2023

Pull request status dashboard.

@C3POdoo C3POdoo requested review from a team and clbr-odoo and removed request for a team December 15, 2023 17:23
@C3POdoo C3POdoo added the OE the report is linked to a support ticket (opw-...) label Dec 15, 2023
@guva-odoo guva-odoo requested review from h4818 and removed request for clbr-odoo December 19, 2023 09:19
@@ -2094,6 +2094,7 @@ def _prepare_exchange_difference_move_vals(self, amounts_list, company=None, exc
'name': _('Currency exchange rate difference'),
'debit': amount_residual if amount_residual > 0.0 else 0.0,
'credit': -amount_residual if amount_residual < 0.0 else 0.0,
'analytic_distribution': kwargs.get('exchange_analytic_distribution', False),
Copy link
Contributor

Choose a reason for hiding this comment

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

as discussed: False might prevent computations, so let's only add the key/value if the distribution is given

Related to odoo/enterprise#52648
we add the analytic distributino to the move vals for
the exchange diff move.
We also remove the precompute on the fields, manual backport
of odoo@b9047fe

opw-3603668
@guva-odoo guva-odoo force-pushed the 16.0-opw-3603668-analytic-distribution-exchange-diff-line-reco-widget-guva branch from 26f197a to ac26b63 Compare December 20, 2023 12:13
@h4818
Copy link
Contributor

h4818 commented Dec 20, 2023

@robodoo r+

robodoo pushed a commit that referenced this pull request Dec 20, 2023
Related to odoo/enterprise#52648
we add the analytic distributino to the move vals for
the exchange diff move.
We also remove the precompute on the fields, manual backport
of b9047fe

opw-3603668

closes #146549

Related: odoo/enterprise#52648
Signed-off-by: Habib Ayob (ayh) <[email protected]>
@robodoo robodoo closed this Dec 20, 2023
@fw-bot fw-bot deleted the 16.0-opw-3603668-analytic-distribution-exchange-diff-line-reco-widget-guva branch January 3, 2024 14:47
luanjubica pushed a commit to luanjubica/odoo-code that referenced this pull request Feb 14, 2024
Related to https://github.com/odoo/enterprise/pull/52648
we add the analytic distributino to the move vals for
the exchange diff move.
We also remove the precompute on the fields, manual backport
of odoo@b9047fe

opw-3603668

closes odoo#146549

Related: odoo/enterprise#52648
Signed-off-by: Habib Ayob (ayh) <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
OE the report is linked to a support ticket (opw-...)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants