-
-
Notifications
You must be signed in to change notification settings - Fork 723
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] stock_reserve_sale 15.0 #1486
Conversation
…_reserve and stock_reserve_sale.
before running the tests. This fixes the failure experienced when running the test in --init mode rather than --update mode.
bfc3a0b
to
4c5172f
Compare
Please, cherry-pick #1489 |
@victoralmau Forgive my ignorance, how do I apply the cherry-pick? |
@victoralmau I think that I included your #1489 correctly |
4c5172f
to
8500c07
Compare
Hey @flachica, thank you for your Pull Request. It looks like some users haven't signed our Contributor License Agreement, yet.
Appreciation of efforts, |
Ok, it's well done. |
@flachica FYI, you can, if you want to tests succeed, add a line in test-requirements.txt file with the addon this PR depends on. Like :
That commit should be then removed after the other PR merging. |
Bad news. Tests was failing |
test-requirements.txt
Outdated
@@ -0,0 +1 @@ | |||
odoo-addon-stock-reserve @ git+https://github.com/OCA/stock-logistics-warehouse.git@refs/pull/1484/head#subdirectory=setup/stock_reserve |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
odoo-addon-stock-reserve @ git+https://github.com/OCA/stock-logistics-warehouse.git@refs/pull/1484/head#subdirectory=setup/stock_reserve | |
odoo-addon-stock-reserve @ git+https://github.com/OCA/stock-logistics-warehouse.git@refs/pull/1485/head#subdirectory=setup/stock_reserve |
Link to good PR should work 😃
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Still failling. I tried your suggestion and other change but I can't solve this.
Thanks
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please use suggested syntax. Yours is not correct
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for your response but, as I commented before, I tryied your suggestion but still failing
I don't find any example. Sorry. Where I can find documentation to read about this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@flachica Not the same error.
Here this is about your module tests. Not not found module.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The error about unreleased dependencies is normal. It should be solved before merging this (as the base module is merged).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The difference here is you have a runboat running that allows to do functional tests
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wow, impressive. I love the functionality. Thanks so much for the help
a97f4bc
to
569a2a7
Compare
b4d4547
to
6d90f69
Compare
This commit must be ignored in Odoo Bot merge action
6d90f69
to
363b6e4
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Initial functional review
has_stock_reservation = fields.Boolean( | ||
compute="_compute_stock_reservation", | ||
readonly=True, | ||
multi="stock_reservation", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Field sale.order.has_stock_reservation: unknown parameter 'multi', if this is an actual parameter you may want to override the method _valid_field_parameter on the relevant model in order to allow it
is_stock_reservable = fields.Boolean( | ||
compute="_compute_stock_reservation", | ||
readonly=True, | ||
multi="stock_reservation", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Field sale.order.is_stock_reservable: unknown parameter 'multi', if this is an actual parameter you may want to override the method _valid_field_parameter on the relevant model in order to allow it
|
||
|
||
class SaleStockReserve(models.TransientModel): | ||
_name = "sale.stock.reserve" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You are not allowed to access 'Sale Stock Reserve' (sale.stock.reserve) records.
Missing access rights
help="Pre-book products from stock" | ||
attrs="{'invisible': [('is_stock_reservable', '=', False)]}" | ||
/> | ||
</button> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A smartbutton to view reservations would be a nice addition
lines = model.browse(self.env.context["active_ids"]) | ||
|
||
try: | ||
owners = {line.stock_owner_id for line in lines} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fetching owner from order is not working
return rule.procure_method | ||
return False | ||
|
||
@api.depends("state", "product_id.route_ids", "product_id.type") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
type = detailed_type
<div class="text-right"> | ||
<button | ||
name="release_all_stock_reservation" | ||
string="Cancell all" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cancel all
@flachica The code quality is low, I am going to pause my review. |
There hasn't been any activity on this pull request in the past 4 months, so it has been marked as stale and it will be closed automatically if no further activity occurs in the next 30 days. |
Hello, you might consider rebuilding the migration from this v14 migration PR as it bring more bugfix that is not present here #1696 |
There hasn't been any activity on this pull request in the past 4 months, so it has been marked as stale and it will be closed automatically if no further activity occurs in the next 30 days. |
Dependencies:
#1485