Skip to content

Conversation

@daiduongnguyen-odoo
Copy link
Contributor

No description provided.

@pedrobaeza
Copy link
Member

pedrobaeza commented Jun 13, 2024

/ocabot migration hr_expense


@openupgrade.migrate()
def migrate(env, version):
openupgrade.load_data(env, "hr_expense", "17.0.2.0/noupdate_changes.xml")
Copy link
Contributor

Choose a reason for hiding this comment

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

delete template translations

# NOTHING TO DO: dead code https://github.com/odoo/odoo/pull/110518

hr_expense / hr.expense / price_unit (float) : NEW required, isfunction: function, stored
# DONE pre-migration: rename to unit_price
Copy link
Contributor

Choose a reason for hiding this comment

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

why?

# NOTHING TO DO: deprecated field https://github.com/odoo/odoo/pull/130244/commits/266b482264576903cf736ffe2bddfc71f7a7a4ec

hr_expense / hr.expense / state (selection) : selection_keys is now '['approved', 'done', 'draft', 'refused', 'reported', 'submitted']' ('['approved', 'done', 'draft', 'refused', 'reported']')
# DONE pre-migration: if any expense has expense sheet and the sheet is on draft state, then update state of expense to 'reported'
Copy link
Contributor

Choose a reason for hiding this comment

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

why? the change only adds new 'submitted' state

@MiquelRForgeFlow
Copy link
Contributor

Superseded by #4826.

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.

5 participants