-
-
Notifications
You must be signed in to change notification settings - Fork 1k
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
[11.0][MIG] sale_exception #576
Conversation
missing dependency on OCA/server-tools#1025. @pedrobaeza I lost some OCA Transbot commits because of some bad conflicts on rebase cleanup. Can we rely on transbot to update them again when merged or should I try to recover all of them? |
As this is a new branch, it will be a new project, so you have to put the correct translations. The best option is: copy translation files from 10.0, make a commit, and squash it with latest "OCA Transbot commit". As a side note, these conflicts happened when dirty merge/pull operations have been done in the branch in the past. Fortunately, we can fix them here for the future. |
ok then, I'll drop all of them and get back from v10. Thanks |
a5cec45
to
d766a9d
Compare
@pedrobaeza translations recovered (no transbot commit to squash with tho). |
The problem is not about base_exception, but another. Please check Travis logs. |
@pedrobaeza ah sorry, I looked at an old build that was still failing for dependency issue :( |
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.
Tests are green, translations are salvaged! Perhaps squash your own commits @simahawk?
a6df178
to
57507fb
Compare
oca_dependencies.txt
Outdated
@@ -0,0 +1,2 @@ | |||
# base_exception v11 https://github.com/OCA/server-tools/pull/1025 | |||
server-tools https://github.com/akretion/server-tools 11.0-mig-base_exception |
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 do not forget to remove this.
Rule should only count available stock from selected warehouse from sale order. Without warehouse in context, it currently sums all stock available in all warehouses.
The previous parent menu has an action attached, and with these modules, it can't be clicked.
* [FIX] sale_exception confirm wizard * [FIX] add test of test_all_draft_orders & flake8 & readme.rst * [FIX] improve codecov test * [FIX] delete odl translation * [FIX] add Camptocamp to author * [FIX] readme.rst
Raise SingletonError when you have a recordset with multiple sale order. This restore the capability to write on multiple sale.order
57507fb
to
b433f80
Compare
Travis no like :-(
|
I know. I'll get back on this later. Anyway the error is related to base_exception that has been merged into server-tools w/out build issues (as far as I see). Ahh, I guess that it's because the test models are registered only w/ |
It's really strange because on runbot is not failing and the base module is installed as well w/out test enabled:
On travis I see:
Maybe is due to the fact that those models are inside |
I had a same problem with purchase exception OCA/purchase-workflow#467 |
@mourad-ehm I think is because of this OCA/server-tools#1025 (comment) |
@simahawk PR OCA/server-tools#1111 fixes the problem in base_exception |
761f790
to
7f50c72
Compare
cef2b0c
to
1acac57
Compare
@jbeficent test fixed, thank ;) |
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.
LGTM
micro remarks
sale_exception/__init__.py
Outdated
@@ -0,0 +1,3 @@ | |||
# -*- coding: utf-8 -*- |
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.
can be removed
sale_exception/__manifest__.py
Outdated
@@ -0,0 +1,19 @@ | |||
# -*- coding: utf-8 -*- |
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.
can be removed too
sale_exception/models/__init__.py
Outdated
@@ -0,0 +1,2 @@ | |||
# -*- coding: utf-8 -*- |
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.
can be removed
sale_exception/models/sale.py
Outdated
@@ -0,0 +1,72 @@ | |||
# -*- coding: utf-8 -*- |
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.
same
sale_exception/models/sale.py
Outdated
@@ -0,0 +1,72 @@ | |||
# -*- coding: utf-8 -*- | |||
# Copyright 2011 Akretion, Camptocamp, Sodexis | |||
# Copyright 2017 Akretion, Camptocamp |
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.
2018
@@ -0,0 +1,94 @@ | |||
# -*- coding: utf-8 -*- |
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.
same
@@ -0,0 +1,94 @@ | |||
# -*- coding: utf-8 -*- | |||
# Copyright 2011 Akretion, Camptocamp, Sodexis | |||
# Copyright 2017 Akretion, Camptocamp |
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.
2018
sale_exception/wizard/__init__.py
Outdated
@@ -0,0 +1,2 @@ | |||
# -*- coding: utf-8 -*- |
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.
can be removed
@@ -0,0 +1,19 @@ | |||
# -*- coding: utf-8 -*- |
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.
same
@@ -0,0 +1,19 @@ | |||
# -*- coding: utf-8 -*- | |||
# Copyright 2011 Akretion, Camptocamp, Sodexis | |||
# Copyright 2017 Akretion, Camptocamp |
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.
2018
1acac57
to
e747319
Compare
e747319
to
b032493
Compare
@OleksandrPaziuk tnx! all comments addressed. |
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.
Great work!
|
||
@api.multi | ||
def action_confirm(self): | ||
self.ensure_one() |
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.
Question, self.ensure_one()
in multi ? Do we want to be able to call the wizard on multiple SO ?
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.
It's a button on a wizard: you won't use it on multiple SO and in any case you can relate only one SO per wiz, so... :)
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.
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.
I have only one question before approval
@StefanRijnhart tnx for reviewing: can you hit the button? 😜 |
I hit that big and powerful button, and it worked. |
No description provided.