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

[15.0] [MIG] sale_elaboration: Migration to v15 #2204

Merged
merged 26 commits into from
Oct 24, 2022

Conversation

CarlosRoca13
Copy link
Contributor

cc @Tecnativa TT37689

please @carlosdauden @sergio-teruel review this

Copy link
Member

@victoralmau victoralmau left a comment

Choose a reason for hiding this comment

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

Code review OK, some suggestions to reduce code.

Comment on lines 36 to 37
if not args:
args = []
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
if not args:
args = []
args = args if args else []

Comment on lines 40 to 44
if limit:
limit_rest = limit - len(recs)
else: # pragma: no cover
# limit can be 0 or None representing infinite
limit_rest = limit
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
if limit:
limit_rest = limit - len(recs)
else: # pragma: no cover
# limit can be 0 or None representing infinite
limit_rest = limit
limit_rest = limit - len(recs) if limit else limit

<field name="arch" type="xml">
<form string="Elaborations">
<sheet>
<group>
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
<group>
<widget name="web_ribbon" title="Archived" bg_color="bg-danger" attrs="{'invisible': [('active', '=', True)]}"/>
<field name="active" invisible="1"/>
<group>

name="product_id"
context="{'default_is_elaboration': True, 'default_type': 'service'}"
/>
<field name="active" invisible="1" />
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
<field name="active" invisible="1" />

sale_elaboration/tests/test_sale_elaboration.py Outdated Show resolved Hide resolved
sale_elaboration/tests/test_sale_elaboration.py Outdated Show resolved Hide resolved
sale_elaboration/tests/test_sale_elaboration.py Outdated Show resolved Hide resolved
@rousseldenis
Copy link
Sponsor Contributor

@victoralmau Shouldn't reviews be done on 14 migration PR and then pushed here ?

@victoralmau
Copy link
Member

@victoralmau Shouldn't reviews be done on 14 migration PR and then pushed here ?

Ok, sorry, I didn't see the v14 migration PR.
@CarlosRoca13, can you apply these changes in v14?

Copy link
Member

@victoralmau victoralmau left a comment

Choose a reason for hiding this comment

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

Code review OK (It is probably better to merge v14 first, and then this one only with the necessary changes with respect to v15).

@victoralmau
Copy link
Member

Can you update the commit history? The module is already merged in 14.0.

@rousseldenis
Copy link
Sponsor Contributor

/ocabot migration sale_elaboration

@rousseldenis
Copy link
Sponsor Contributor

@CarlosRoca13

@sergio-teruel
Copy link
Contributor

@CarlosRoca13 You have already attended to @victoralmau comments, right?

@CarlosRoca13
Copy link
Contributor Author

All changes done

Copy link
Member

@victoralmau victoralmau left a comment

Choose a reason for hiding this comment

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

Code review OK

@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). 🤖

@pedrobaeza
Copy link
Member

/ocabot merge nobump

@OCA-git-bot
Copy link
Contributor

On my way to merge this fine PR!
Prepared branch 15.0-ocabot-merge-pr-2204-by-pedrobaeza-bump-nobump, awaiting test results.

@OCA-git-bot OCA-git-bot merged commit d0d7663 into OCA:15.0 Oct 24, 2022
@OCA-git-bot
Copy link
Contributor

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

pilarvargas-tecnativa pushed a commit to Tecnativa/sale-workflow that referenced this pull request Feb 7, 2023
Signed-off-by pedrobaeza
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.

None yet

9 participants