Skip to content

Conversation

kaycross
Copy link

No description provided.

alfredo and others added 30 commits October 18, 2024 11:19
[DEL mrp_bom_version, NEW mrp_bom_state]
[IMP] mrp_bom_version: fix flake8

[IMP]mrp_bom_version: fix travis
Updated to follow OCA conventions

Explained in
https://github.com/OCA/maintainer-tools/tree/master/template/module

Update README.rst

Update README.rst
…ion, and historical. Create _copy_bom, _update_bom_state_after_copy functions.

[ADD] mrp_bom_new_version_when_component_change: Create a new version of BoM when are you going to change a component.
[IMP] mrp_bom_component_change: Include folder "tests", and programming improvements.
* When passing back to draft mantain active according to company definition
* SQL sentence for state update in post-init-hook.
* _bom_find with context state so that only those in state=active are taken
  into account
* Tests
* api.one deprecated

[IMP] <mrp_bom_version> Little required changes

[IMP] <mrp_bom_version> from api.one to api.multi

[IMP] <mrp_bom_version> New tests added
* mrp_bom_reference_selection : Changed view id to enable use in other modules
* mrp_bom_version : View copied to match the one in other modules
oca-travis and others added 5 commits October 18, 2024 11:24
Currently translated at 100.0% (23 of 23 strings)

Translation: manufacture-8.0/manufacture-8.0-mrp_bom_version
Translate-URL: https://translation.odoo-community.org/projects/manufacture-8-0/manufacture-8-0-mrp_bom_version/gl/
Currently translated at 100.0% (23 of 23 strings)

Translation: manufacture-8.0/manufacture-8.0-mrp_bom_version
Translate-URL: https://translation.odoo-community.org/projects/manufacture-8-0/manufacture-8-0-mrp_bom_version/it/
@kaycross kaycross force-pushed the 16.0-mig-mrp_bom_version branch 2 times, most recently from ca5f3f1 to 0f09bc9 Compare October 21, 2024 08:37
@kaycross kaycross force-pushed the 16.0-mig-mrp_bom_version branch from 0f09bc9 to a90ab95 Compare October 21, 2024 08:52
version = fields.Integer(
states={"historical": [("readonly", True)]}, copy=False, default=1
)
parent_bom = fields.Many2one(
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggestion: rename field parent_bom to previous_bom. The name parent_bom seems confusing, given the hierarchical nature of a bill of materials.

Copy link
Author

Choose a reason for hiding this comment

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

Thanks for the suggestion, change done

Copy link

@anajuaristi anajuaristi Oct 22, 2024

Choose a reason for hiding this comment

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

@matt454357 @kaycross : is it ok for you to aprove? I would like to merge it but I would need more aprovals.
Thank you!!!

Copy link
Contributor

@matt454357 matt454357 left a comment

Choose a reason for hiding this comment

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

Looks good

@pedrobaeza
Copy link
Member

/ocabot migration mrp_bom_version
/ocabot merge nobump

@OCA-git-bot OCA-git-bot added this to the 16.0 milestone Oct 22, 2024
@OCA-git-bot
Copy link
Contributor

Hey, thanks for contributing! Proceeding to merge this for you.
Prepared branch 16.0-ocabot-merge-pr-1368-by-pedrobaeza-bump-nobump, awaiting test results.

@OCA-git-bot OCA-git-bot mentioned this pull request Oct 22, 2024
28 tasks
@OCA-git-bot OCA-git-bot merged commit afa216f into OCA:16.0 Oct 22, 2024
9 checks passed
@OCA-git-bot
Copy link
Contributor

Congratulations, your PR was merged at 1368b61. Thanks a lot for contributing to OCA. ❤️

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

Successfully merging this pull request may close these issues.