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

[MIG][13.0] stock_picking_completion_info #808

Merged
merged 8 commits into from
Jul 17, 2020

Conversation

guewen
Copy link
Member

@guewen guewen commented Dec 19, 2019

Port #693
Depends on #861

@max3903 max3903 added this to the 13.0 milestone Dec 31, 2019
@guewen guewen force-pushed the 13.0-mig-stock_picking_completion_info branch from 1da0a07 to 60dbca0 Compare January 7, 2020 06:29
@grindtildeath
Copy link
Contributor

We should probably rework this module to depend on #861

@simahawk
Copy link
Contributor

@guewen any feedback?

@guewen
Copy link
Member Author

guewen commented Mar 17, 2020

@simahawk well, @grindtildeath knows better, he wrote this module :)

@guewen guewen force-pushed the 13.0-mig-stock_picking_completion_info branch from 60dbca0 to 88fd2e8 Compare March 17, 2020 11:04

@api.depends(
"picking_type_id.display_completion_info",
"move_lines.move_dest_ids.move_orig_ids.state",
Copy link
Contributor

Choose a reason for hiding this comment

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

Wrong dependency (cf line 53)

@grindtildeath
Copy link
Contributor

@guewen Can you please merge guewen#8 ?

Maybe also add module dependency #861 in the PR description?

@Tonow-c2c
Copy link
Contributor

@guewen did you enough right to restart travis ?

@simahawk
Copy link
Contributor

@grindtildeath if you have time and you want to finish this, please take it over because Guewen is on holidays for 1 week 😉

@grindtildeath
Copy link
Contributor

@simahawk @guewen Seems we only need a rebase here, and it should be fine...

@guewen guewen force-pushed the 13.0-mig-stock_picking_completion_info branch from a8245a7 to de4dcfd Compare April 24, 2020 09:09
@guewen
Copy link
Member Author

guewen commented Apr 24, 2020

Rebased

@simahawk
Copy link
Contributor

@guewen is 🔴

if "state" in vals:
# invalidate cache, the api.depends do not allow to find all
# the conditions to invalidate the field
self.env["stock.picking"].invalidate_cache(fnames=["completion_info"])
Copy link
Contributor

Choose a reason for hiding this comment

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

Is it real or is it the behaviour you have in tests ? If it is just in tests, do the invalidate_cache() there and not here.

Copy link
Contributor

Choose a reason for hiding this comment

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

I don't have an issue running the tests without this override, @guewen might know better.

Copy link
Member Author

Choose a reason for hiding this comment

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

I think it was not only in tests, IIRC the dependencies in @api.depends() of the computed field could not be triggered in every case in chained moves. But maybe now that we have "move_lines.common_dest_move_ids.state", in the dependencies it's no longer the case and this could be removed?

@guewen
Copy link
Member Author

guewen commented Apr 24, 2020

@grindtildeath tests fail after de4dcfd, can you have a look?

@grindtildeath
Copy link
Contributor

@guewen should be fixed with guewen#10

@guewen guewen force-pushed the 13.0-mig-stock_picking_completion_info branch from 2bc27e0 to ac9a241 Compare April 27, 2020 09:32
guewen added a commit to guewen/stock-logistics-warehouse that referenced this pull request Apr 27, 2020
In this module: OCA#808
A computed field uses "common_dest_move_ids" as dependency:

    @api.depends(
        "picking_type_id.display_completion_info",
        "move_lines.common_dest_move_ids.state",
    )
    def _compute_completion_info(self):

Which has the following effect when the ORM triggers changes:

odoo.osv.expression: Non-stored field stock.move.common_dest_move_ids cannot be searched.

Implement a search method to prevent this.
In this module: OCA#808
A computed field uses "common_dest_move_ids" as dependency:

    @api.depends(
        "picking_type_id.display_completion_info",
        "move_lines.common_dest_move_ids.state",
    )
    def _compute_completion_info(self):

Which has the following effect when the ORM triggers changes:

odoo.osv.expression: Non-stored field stock.move.common_dest_move_ids cannot be searched.

Implement a search method to prevent this.
guewen added a commit to camptocamp/wms that referenced this pull request May 6, 2020
The version of stock_move_common_dest installed by pip misses
a correction done in OCA/stock-logistics-warehouse#808
Copy link
Member

@jgrandguillaume jgrandguillaume left a comment

Choose a reason for hiding this comment

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

LGTM

@jgrandguillaume
Copy link
Member

/ocabot merge

@OCA-git-bot
Copy link
Contributor

Hi @jgrandguillaume. Your command failed:

Required option bumpversion_mode for command merge. Possible values : major, minor, patch, nobump.

Ocabot commands

  • ocabot merge major|minor|patch|nobump

More information

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

@guewen
Copy link
Member Author

guewen commented Jul 17, 2020

/ocabot merge minor

@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-808-by-guewen-bump-minor, awaiting test results.

@OCA-git-bot OCA-git-bot merged commit 3ca206c into OCA:13.0 Jul 17, 2020
@OCA-git-bot
Copy link
Contributor

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

simahawk pushed a commit to simahawk/wms that referenced this pull request Oct 12, 2020
The version of stock_move_common_dest installed by pip misses
a correction done in OCA/stock-logistics-warehouse#808
sebastienbeau pushed a commit to akretion/stock-logistics-warehouse that referenced this pull request Jan 6, 2021
In this module: OCA#808
A computed field uses "common_dest_move_ids" as dependency:

    @api.depends(
        "picking_type_id.display_completion_info",
        "move_lines.common_dest_move_ids.state",
    )
    def _compute_completion_info(self):

Which has the following effect when the ORM triggers changes:

odoo.osv.expression: Non-stored field stock.move.common_dest_move_ids cannot be searched.

Implement a search method to prevent this.
phuctranfxvn pushed a commit to phuctranfxvn/stock-logistics-warehouse that referenced this pull request Feb 12, 2021
In this module: OCA#808
A computed field uses "common_dest_move_ids" as dependency:

    @api.depends(
        "picking_type_id.display_completion_info",
        "move_lines.common_dest_move_ids.state",
    )
    def _compute_completion_info(self):

Which has the following effect when the ORM triggers changes:

odoo.osv.expression: Non-stored field stock.move.common_dest_move_ids cannot be searched.

Implement a search method to prevent this.
lmignon pushed a commit to acsone/stock-logistics-warehouse that referenced this pull request Apr 2, 2021
In this module: OCA#808
A computed field uses "common_dest_move_ids" as dependency:

    @api.depends(
        "picking_type_id.display_completion_info",
        "move_lines.common_dest_move_ids.state",
    )
    def _compute_completion_info(self):

Which has the following effect when the ORM triggers changes:

odoo.osv.expression: Non-stored field stock.move.common_dest_move_ids cannot be searched.

Implement a search method to prevent this.
RLeeOSI pushed a commit to ursais/stock-logistics-warehouse that referenced this pull request Jun 29, 2021
In this module: OCA#808
A computed field uses "common_dest_move_ids" as dependency:

    @api.depends(
        "picking_type_id.display_completion_info",
        "move_lines.common_dest_move_ids.state",
    )
    def _compute_completion_info(self):

Which has the following effect when the ORM triggers changes:

odoo.osv.expression: Non-stored field stock.move.common_dest_move_ids cannot be searched.

Implement a search method to prevent this.
CarlosRoca13 pushed a commit to Tecnativa/stock-logistics-warehouse that referenced this pull request Aug 16, 2021
In this module: OCA#808
A computed field uses "common_dest_move_ids" as dependency:

    @api.depends(
        "picking_type_id.display_completion_info",
        "move_lines.common_dest_move_ids.state",
    )
    def _compute_completion_info(self):

Which has the following effect when the ORM triggers changes:

odoo.osv.expression: Non-stored field stock.move.common_dest_move_ids cannot be searched.

Implement a search method to prevent this.
CarlosRoca13 pushed a commit to Tecnativa/stock-logistics-warehouse that referenced this pull request Aug 16, 2021
Signed-off-by guewen
CarlosRoca13 pushed a commit to Tecnativa/stock-logistics-warehouse that referenced this pull request Aug 16, 2021
In this module: OCA#808
A computed field uses "common_dest_move_ids" as dependency:

    @api.depends(
        "picking_type_id.display_completion_info",
        "move_lines.common_dest_move_ids.state",
    )
    def _compute_completion_info(self):

Which has the following effect when the ORM triggers changes:

odoo.osv.expression: Non-stored field stock.move.common_dest_move_ids cannot be searched.

Implement a search method to prevent this.
CarlosRoca13 pushed a commit to Tecnativa/stock-logistics-warehouse that referenced this pull request Aug 16, 2021
Signed-off-by guewen
flachica pushed a commit to flachica/stock-logistics-warehouse that referenced this pull request Sep 29, 2022
In this module: OCA#808
A computed field uses "common_dest_move_ids" as dependency:

    @api.depends(
        "picking_type_id.display_completion_info",
        "move_lines.common_dest_move_ids.state",
    )
    def _compute_completion_info(self):

Which has the following effect when the ORM triggers changes:

odoo.osv.expression: Non-stored field stock.move.common_dest_move_ids cannot be searched.

Implement a search method to prevent this.
flachica pushed a commit to flachica/stock-logistics-warehouse that referenced this pull request Oct 10, 2022
In this module: OCA#808
A computed field uses "common_dest_move_ids" as dependency:

    @api.depends(
        "picking_type_id.display_completion_info",
        "move_lines.common_dest_move_ids.state",
    )
    def _compute_completion_info(self):

Which has the following effect when the ORM triggers changes:

odoo.osv.expression: Non-stored field stock.move.common_dest_move_ids cannot be searched.

Implement a search method to prevent this.
glitchov pushed a commit to acsone/stock-logistics-warehouse that referenced this pull request Dec 1, 2022
In this module: OCA#808
A computed field uses "common_dest_move_ids" as dependency:

    @api.depends(
        "picking_type_id.display_completion_info",
        "move_lines.common_dest_move_ids.state",
    )
    def _compute_completion_info(self):

Which has the following effect when the ORM triggers changes:

odoo.osv.expression: Non-stored field stock.move.common_dest_move_ids cannot be searched.

Implement a search method to prevent this.
flachica pushed a commit to flachica/stock-logistics-warehouse that referenced this pull request Jan 31, 2023
In this module: OCA#808
A computed field uses "common_dest_move_ids" as dependency:

    @api.depends(
        "picking_type_id.display_completion_info",
        "move_lines.common_dest_move_ids.state",
    )
    def _compute_completion_info(self):

Which has the following effect when the ORM triggers changes:

odoo.osv.expression: Non-stored field stock.move.common_dest_move_ids cannot be searched.

Implement a search method to prevent this.
atsumi000105 added a commit to atsumi000105/stock-logistics-warehouse that referenced this pull request Dec 8, 2023
In this module: OCA/stock-logistics-warehouse#808
A computed field uses "common_dest_move_ids" as dependency:

    @api.depends(
        "picking_type_id.display_completion_info",
        "move_lines.common_dest_move_ids.state",
    )
    def _compute_completion_info(self):

Which has the following effect when the ORM triggers changes:

odoo.osv.expression: Non-stored field stock.move.common_dest_move_ids cannot be searched.

Implement a search method to prevent this.
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.

8 participants