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

[17.0][MIG] mrp_stock_analytic #644

Open
wants to merge 57 commits into
base: 17.0
Choose a base branch
from

Conversation

aisopuro
Copy link

Depends on

Notes

  • Includes an additional [IMP] commit since it wasn't strictly related to the migration. It can be squashed if the maintainers feel it is better that way

Hanane ELKHAL and others added 30 commits December 21, 2023 13:20
… Stock analytic XML part is now migrated

Add logo for generic modules
- migration point, put all the modules to not installable
This module allows the user to generate analytic information from stock
moves.

- Fixed flake8 and pylint errors.
Remove sale and purchase dependency. Add test

Only assign analytic account if account != valuation acc

Changing field name account_analytic_id

Adjust to OCA latest guidelines. Add some usahe info on README
Remove remaining encoding hints.
Correct lint in test
Correct flake8 in test
Fix documentation and test_flake8
Currently translated at 100.0% (2 of 2 strings)

Translation: account-analytic-11.0/account-analytic-11.0-stock_analytic
Translate-URL: https://translation.odoo-community.org/projects/account-analytic-11-0/account-analytic-11-0-stock_analytic/de/
Currently translated at 100.0% (2 of 2 strings)

Translation: account-analytic-12.0/account-analytic-12.0-stock_analytic
Translate-URL: https://translation.odoo-community.org/projects/account-analytic-12-0/account-analytic-12-0-stock_analytic/pt_BR/
Currently translated at 100.0% (2 of 2 strings)

Translation: account-analytic-12.0/account-analytic-12.0-stock_analytic
Translate-URL: https://translation.odoo-community.org/projects/account-analytic-12-0/account-analytic-12-0-stock_analytic/ca/
Currently translated at 100.0% (3 of 3 strings)

Translation: account-analytic-12.0/account-analytic-12.0-stock_analytic
Translate-URL: https://translation.odoo-community.org/projects/account-analytic-12-0/account-analytic-12-0-stock_analytic/hr/
Currently translated at 100.0% (4 of 4 strings)

Translation: account-analytic-12.0/account-analytic-12.0-stock_analytic
Translate-URL: https://translation.odoo-community.org/projects/account-analytic-12-0/account-analytic-12-0-stock_analytic/de/
Currently translated at 100.0% (4 of 4 strings)

Translation: account-analytic-12.0/account-analytic-12.0-stock_analytic
Translate-URL: https://translation.odoo-community.org/projects/account-analytic-12-0/account-analytic-12-0-stock_analytic/pt/
Currently translated at 100.0% (4 of 4 strings)

Translation: account-analytic-12.0/account-analytic-12.0-stock_analytic
Translate-URL: https://translation.odoo-community.org/projects/account-analytic-12-0/account-analytic-12-0-stock_analytic/es/
(cherry picked from commit 9255622)
jimhoefnagels and others added 27 commits December 21, 2023 13:22
Currently translated at 100.0% (5 of 5 strings)

Translation: account-analytic-13.0/account-analytic-13.0-stock_analytic
Translate-URL: https://translation.odoo-community.org/projects/account-analytic-13-0/account-analytic-13-0-stock_analytic/pt_BR/
Currently translated at 100.0% (6 of 6 strings)

Translation: account-analytic-14.0/account-analytic-14.0-stock_analytic
Translate-URL: https://translation.odoo-community.org/projects/account-analytic-14-0/account-analytic-14-0-stock_analytic/pt_BR/
Currently translated at 100.0% (6 of 6 strings)

Translation: account-analytic-14.0/account-analytic-14.0-stock_analytic
Translate-URL: https://translation.odoo-community.org/projects/account-analytic-14-0/account-analytic-14-0-stock_analytic/ca/
If we add extra move lines in stock pickings and wanted to set the
analytic account on it, as the related move is not yet created, the
behaviour of the related field is not wanted.

So, store the analytic account on move line level too and add it in
the values preparation hooks.
- Add validation on analytic distribution according to how it is done
  in other models (account.move.line, sale.order.line, etc.).
- Update readme to reflect the current design.
- Other cosmetic adjustments.
Currently translated at 88.8% (8 of 9 strings)

Translation: account-analytic-16.0/account-analytic-16.0-stock_analytic
Translate-URL: https://translation.odoo-community.org/projects/account-analytic-16-0/account-analytic-16-0-stock_analytic/nl/
Currently translated at 100.0% (9 of 9 strings)

Translation: account-analytic-16.0/account-analytic-16.0-stock_analytic
Translate-URL: https://translation.odoo-community.org/projects/account-analytic-16-0/account-analytic-16-0-stock_analytic/es/
Currently translated at 100.0% (9 of 9 strings)

Translation: account-analytic-16.0/account-analytic-16.0-stock_analytic
Translate-URL: https://translation.odoo-community.org/projects/account-analytic-16-0/account-analytic-16-0-stock_analytic/pt_BR/
Currently translated at 100.0% (4 of 4 strings)

Translation: account-analytic-16.0/account-analytic-16.0-mrp_stock_analytic
Translate-URL: https://translation.odoo-community.org/projects/account-analytic-16-0/account-analytic-16-0-mrp_stock_analytic/it/
* analytic_distribution is constrained to be valid on the MO, so we don't need to validate
  on confirmation
* The `states`-attribute on ORM-fields is deprecated, and should be moved to views
* mrp_account adds the distribution to the views we want, so we can just add attributes instead of re-adding the field
@aisopuro aisopuro force-pushed the 17.0-mig-mrp_stock_analytic branch from 348f636 to 6dc15b4 Compare April 16, 2024 08:38
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.

None yet