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

[13.0] [MIG+REF] mass_editing #94

Merged
merged 47 commits into from
Feb 24, 2020

Conversation

legalsylvain
Copy link
Contributor

@legalsylvain legalsylvain commented Sep 30, 2019

mass_editing improvment :

  • renaming mass.object to mass.editing for consistency
  • make options (set / add / remove) translatable
  • simplify mass.editing.wizard (V12: 300 lines ; V13: 160 lines)
  • make easier and add modularity in the mass.editing.wizard python code.
  • replace field_ids M2M fields by a new modelmass.editing.line to have the possibility to order fields in the wizard, by a sequence and to select the widget for each field.

image

  • migration Script.

Add abstraction (mass.operation.abstract)

  • Introducing a new abstract module mass_operation_abstract to provide mixin objects that allow to make mass operation on many items of any models
  • make mass_editing depending on mass_operation_abstract

@legalsylvain legalsylvain added this to the 13.0 milestone Sep 30, 2019
@oca-clabot
Copy link

Hey @legalsylvain, thank you for your Pull Request.

It looks like some users haven't signed our Contributor License Agreement, yet.
You can read and sign our full Contributor License Agreement here: http://odoo-community.org/page/cla
Here is a list of the users:

  • @AnuKPatel (login unknown in OCA database)
  • @dsabrinarg (login unknown in OCA database)
  • Unknown (no github login found)

Appreciation of efforts,
OCA CLAbot

@legalsylvain legalsylvain changed the title [WIP][13.0] mig mass editing [13.0] [MIG+REF] mass_editing Oct 3, 2019
@legalsylvain
Copy link
Contributor Author

ready for review. cc : @SerpentCS

@legalsylvain
Copy link
Contributor Author

legalsylvain commented Oct 3, 2019

For your information others module will come depending on the module mass_operation_abstract. like this one : mass_action to execute python code for many items.

ref : https://github.com/grap/grap-odoo-incubator/tree/8.0/mass_action

@OCA-git-bot OCA-git-bot mentioned this pull request Oct 3, 2019
12 tasks
@SerpentCS
Copy link
Contributor

Looks good (y). should not you make another PR for second module mass_operation_abstract?

@legalsylvain
Copy link
Contributor Author

legalsylvain commented Oct 26, 2019

Looks good (y).

Thanks ! Is it an approval ? ;-)

should not you make another PR for second module mass_operation_abstract?

Well, I split the module mass_editing in two modules, with a dependency. So it makes no sense to make two separate PR as one can not be merged without the other. And if spitted, it will be more complicated for reviewer to see what code moved in the abstract module.

@SerpentCS
Copy link
Contributor

Its an approval yes!

Copy link
Member

@tarteo tarteo left a comment

Choose a reason for hiding this comment

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

Is this module still relevant in 13.0 since there is multi_edit="1"?

@legalsylvain
Copy link
Contributor Author

Hi @tarteo : Thanks for your review. Regarding your question, did you read the description of the new module ? I think it answers to your question in the section "Difference between the Odoo 13.0 CE Feature"

https://github.com/legalsylvain/server-ux/blob/13.0-MIG-mass_editing/mass_editing/readme/DESCRIPTION.rst

Let me know if you still have questions.

@legalsylvain
Copy link
Contributor Author

hi @bealdav I took into account your remarks. Could you update your review ?

Thanks !

Copy link
Member

@bealdav bealdav left a comment

Choose a reason for hiding this comment

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

Thanks. Please merge all fixup commits

@OCA-git-bot
Copy link
Contributor

This PR has the approved label and has been created more than 5 days ago. It should therefore be ready to merge by a maintainer (or a PSC member if the concerned addon has no declared maintainer). 🤖

@legalsylvain
Copy link
Contributor Author

Oca bot merge fixup commit. Doesnt he?

@bealdav
Copy link
Member

bealdav commented Dec 21, 2019

No sorry

@MiquelRForgeFlow
Copy link
Contributor

@legalsylvain please squash fixup commits

Copy link
Contributor

@ivantodorovich ivantodorovich left a comment

Choose a reason for hiding this comment

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

code & functional test 👍

@legalsylvain
Copy link
Contributor Author

I squashed all the commits. Thanks for your reviews.

@legalsylvain
Copy link
Contributor Author

/ocabot merge

@OCA-git-bot
Copy link
Contributor

What a great day to merge this nice PR. Let's do it!
Prepared branch 13.0-ocabot-merge-pr-94-by-legalsylvain-bump-no, awaiting test results.

OCA-git-bot added a commit that referenced this pull request Feb 12, 2020
Signed-off-by legalsylvain
@OCA-git-bot
Copy link
Contributor

@legalsylvain your merge command was aborted due to failed check(s), which you can inspect on this commit of 13.0-ocabot-merge-pr-94-by-legalsylvain-bump-no.

After fixing the problem, you can re-issue a merge command. Please refrain from merging manually as it will most probably make the target branch red.

yajo and others added 21 commits February 24, 2020 13:37
Without this fix, it is impossible to uninstall an addon that removes a model for which we had a `mass.object`.
… translatable, as their translations were not removed. (OCA#12)
Execute tests at the end after the module loading for not failing with a
required field not filled by default defined in other modules.
Updated by Update PO files to match POT (msgmerge) hook in Weblate.
Currently translated at 100.0% (26 of 26 strings)

Translation: server-ux-12.0/server-ux-12.0-mass_editing
Translate-URL: https://translation.odoo-community.org/projects/server-ux-12-0/server-ux-12-0-mass_editing/it/
Currently translated at 100.0% (26 of 26 strings)

Translation: server-ux-12.0/server-ux-12.0-mass_editing
Translate-URL: https://translation.odoo-community.org/projects/server-ux-12-0/server-ux-12-0-mass_editing/it/
Currently translated at 100.0% (26 of 26 strings)

Translation: server-ux-12.0/server-ux-12.0-mass_editing
Translate-URL: https://translation.odoo-community.org/projects/server-ux-12-0/server-ux-12-0-mass_editing/pt/
Currently translated at 100.0% (26 of 26 strings)

Translation: server-ux-12.0/server-ux-12.0-mass_editing
Translate-URL: https://translation.odoo-community.org/projects/server-ux-12-0/server-ux-12-0-mass_editing/pt_BR/
Currently translated at 100.0% (26 of 26 strings)

Translation: server-ux-12.0/server-ux-12.0-mass_editing
Translate-URL: https://translation.odoo-community.org/projects/server-ux-12-0/server-ux-12-0-mass_editing/zh_CN/
[REF] Update mass_operation_abstract/wizard/mass_operation_wizard_mixin.py
Co-Authored-By: David Beal <david.beal@akretion.com>
@legalsylvain
Copy link
Contributor Author

/ocabot merge

@OCA-git-bot
Copy link
Contributor

Hey, thanks for contributing! Proceeding to merge this for you.
Prepared branch 13.0-ocabot-merge-pr-94-by-legalsylvain-bump-no, awaiting test results.

@OCA-git-bot OCA-git-bot merged commit 9f46a9c into OCA:13.0 Feb 24, 2020
@OCA-git-bot
Copy link
Contributor

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

@mowny
Copy link

mowny commented Aug 25, 2020

After upgrading from 12 to 13, installing mass_operation_abstract and updating mass_editing, odoo still complains about:

2020-08-25 13:11:23,009 6349 INFO live_20161130_v13_test5_20200824 odoo.modules.loading: Model mass.object is declared but cannot be loaded! (Perhaps a module was partially removed or renamed)

As this is only INFO (and the module seems to work) it's probably not that bad, but it is distracting and I'd like to get rid of it. I just don't know how, so any suggestions are welcome.

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.