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

[16.0][MIG] company_default_partner_pricelist #1946

Open
wants to merge 9 commits into
base: 16.0
Choose a base branch
from

Conversation

geomer198
Copy link

Migration to 16.0

@geomer198 geomer198 force-pushed the 16.0-t4218-company_default_partner_pricelist-mig branch from a382afa to ffbfa74 Compare January 1, 2025 16:00

@openupgrade.migrate()
def migrate(env, version):
company = env["res.company"]

Choose a reason for hiding this comment

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

company_obj or ResCompany

@openupgrade.migrate()
def migrate(env, version):
company = env["res.company"]
ir_property = env["ir.property"]

Choose a reason for hiding this comment

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

ir_property_obj or IrProperty

company = env["res.company"]
ir_property = env["ir.property"]
field = env["ir.model.fields"]._get("res.partner", "property_product_pricelist")
for record in company.search([]):

Choose a reason for hiding this comment

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

Suggested change
for record in company.search([]):
for company in company.search([]):

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.

5 participants