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] stock_production_lot_active: Migration to 17.0 #1487

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

Conversation

laszlokr
Copy link

Standard migration from 15.0 to 17.0.

@laszlokr laszlokr mentioned this pull request Jan 22, 2024
62 tasks
Copy link

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 Jul 14, 2024
@rousseldenis
Copy link
Contributor

/ocabot migration stock_production_lot_active

active = fields.Boolean(default=True)

@api.constrains("name", "product_id", "company_id")
def _check_unique_lot(self):
Copy link
Contributor

Choose a reason for hiding this comment

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

@laszlokr Why removing this?

Copy link
Author

Choose a reason for hiding this comment

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

@rousseldenis this check seems to be redundant, as by default it is not possible to have the same product with identical lot/serial number. I tested the module with and without this method, the behavior is exactly same

Copy link
Contributor

Choose a reason for hiding this comment

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

Have you tested with inactive lots ?

As in standard, it seems inactive lots are not tested:

image

Copy link
Author

Choose a reason for hiding this comment

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

@rousseldenis apologies for my delayed response. Indeed, it might still be needed, so I restored the method and also renamed the class according to the change of model name

@github-actions github-actions bot removed the stale PR/Issue without recent activity, it'll be soon closed automatically. label Jul 21, 2024
Copy link

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 Nov 24, 2024
Comment on lines +13 to +14
bg_color="bg-danger"
invisible="active == True"
Copy link
Member

Choose a reason for hiding this comment

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

Just a minor comment: on standard Odoo code, this is the way the ribbon is defined:

Suggested change
bg_color="bg-danger"
invisible="active == True"
bg_color="text-bg-danger"
invisible="active"

Not blocking for me, so I approved the PR.

@github-actions github-actions bot removed the stale PR/Issue without recent activity, it'll be soon closed automatically. label Dec 1, 2024
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.

10 participants