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

[14.0][MIG] stock_move_backdating #1494

Merged
merged 63 commits into from
Apr 3, 2024

Conversation

toita86
Copy link

@toita86 toita86 commented Jan 30, 2024

No description provided.

tafaRU and others added 30 commits January 30, 2024 15:23
use sudo: false to enable container build
use cache: pip to cache pip packages
… method _create_account_move_line [FIX] upgrade quant_ids date in a single call
Copy link
Contributor

@francesco-ooops francesco-ooops left a comment

Choose a reason for hiding this comment

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

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

@francesco-ooops
Copy link
Contributor

@rousseldenis good to go? thanks!

Copy link
Sponsor Contributor

@rousseldenis rousseldenis 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

@@ -21,7 +21,7 @@ def onchange_date_backdating(self):
check_date(self.date_backdating)

def post_inventory(self):
no_backdate_inventories = self.env["stock.inventory"].browse()
no_backdate_inventories = self.env["stock.inventory"]
Copy link
Sponsor Contributor

Choose a reason for hiding this comment

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

@toita86 The former writing was the good one.

Copy link

Choose a reason for hiding this comment

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

Why is it? We get the same result

Copy link
Sponsor Contributor

Choose a reason for hiding this comment

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

Yes, but formally this is better as instance is not really the same as a browse record set. Nevertheless, this one is not blocking

Copy link
Author

Choose a reason for hiding this comment

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

Thank you for the review, I implemented almost all the changes you suggested.

stock_move_backdating/models/stock_move.py Show resolved Hide resolved
@@ -0,0 +1,2 @@
id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink
access_fill_date_backdating,access_fill_date_backdating,model_fill_date_backdating,base.group_user,1,0,0,0
Copy link
Sponsor Contributor

Choose a reason for hiding this comment

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

Shouldn't it be stock.group_stock_user instead ?

Comment on lines 57 to 58
# Disable pylint to match the exact signature in super
# pylint: disable=dangerous-default-value

Choose a reason for hiding this comment

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

chore: these two lines can be removed, it's no longer necessary to disable pylint

stock_move_backdating/models/stock_move.py Show resolved Hide resolved
@francesco-ooops
Copy link
Contributor

@newtratip could you take a look? thanks!

Copy link

@aleuffre aleuffre 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, LGTM

@francesco-ooops
Copy link
Contributor

@rousseldenis ready for your review, thanks!

@francesco-ooops
Copy link
Contributor

@rousseldenis good for merge?

@rousseldenis
Copy link
Sponsor Contributor

/ocabot merge patch

@OCA-git-bot
Copy link
Contributor

On my way to merge this fine PR!
Prepared branch 14.0-ocabot-merge-pr-1494-by-rousseldenis-bump-patch, awaiting test results.

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

@OCA-git-bot OCA-git-bot merged commit b09741e into OCA:14.0 Apr 3, 2024
11 checks passed
@OCA-git-bot
Copy link
Contributor

@rousseldenis The merge process could not be finalized, because command twine upload --repository-url https://upload.pypi.org/legacy/ -u __token__ odoo14_addon_stock_move_backdating-14.0.1.0.1-py3-none-any.whl failed with output:

Uploading distributions to https://upload.pypi.org/legacy/
Uploading odoo14_addon_stock_move_backdating-14.0.1.0.1-py3-none-any.whl
�[?25l
�[2K�[35m  0%�[0m �[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━�[0m �[32m0.0/67.5 kB�[0m • �[36m--:--�[0m • �[31m?�[0m
�[2K�[35m  0%�[0m �[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━�[0m �[32m0.0/67.5 kB�[0m • �[36m--:--�[0m • �[31m?�[0m
�[2K�[35m  0%�[0m �[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━�[0m �[32m0.0/67.5 kB�[0m • �[36m--:--�[0m • �[31m?�[0m
�[2K�[35m100%�[0m �[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━�[0m �[32m67.5/67.5 kB�[0m • �[33m00:00�[0m • �[31m35.7 MB/s�[0m
�[2K�[35m100%�[0m �[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━�[0m �[32m67.5/67.5 kB�[0m • �[33m00:00�[0m • �[31m35.7 MB/s�[0m
�[2K�[35m100%�[0m �[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━�[0m �[32m67.5/67.5 kB�[0m • �[33m00:00�[0m • �[31m35.7 MB/s�[0m
�[2K�[35m100%�[0m �[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━�[0m �[32m67.5/67.5 kB�[0m • �[33m00:00�[0m • �[31m35.7 MB/s�[0m
�[2K�[35m100%�[0m �[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━�[0m �[32m67.5/67.5 kB�[0m • �[33m00:00�[0m • �[31m35.7 MB/s�[0m
�[?25h�[33mWARNING �[0m Error during upload. Retry with the --verbose option for more details. 
�[31mERROR   �[0m HTTPError: 403 Forbidden from https://upload.pypi.org/legacy/          
         The user 'OCA' isn't allowed to upload to project                      
         'odoo14-addon-stock-move-backdating'. See                              
         https://pypi.org/help/#project-name for more information.              

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