-
-
Notifications
You must be signed in to change notification settings - Fork 1.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
[16.0][ADD] sale_order_country_allowed_product: Restrict products by country in sales #3599
base: 16.0
Are you sure you want to change the base?
[16.0][ADD] sale_order_country_allowed_product: Restrict products by country in sales #3599
Conversation
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.
Functional review: LGTM 👍🏻
@manuelregidor you should checks tests |
@HaraldPanten There's an incompatibility related to OCA/account-invoicing#1840 that has not been solver yet. There's a PR to solve it which I'm following (#3598). |
Ok, let's wait few days until the related PRs are 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.
Wrong module icon
f07c99e
to
e1464e9
Compare
@Tisho99 Changes applied |
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. Technical review
@@ -0,0 +1,6 @@ | |||
<?xml version="1.0" encoding="utf-8" ?> | |||
<odoo> | |||
<record id="ignore_country_sale" model="res.groups"> |
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.
add admin by default
@@ -0,0 +1,6 @@ | |||
<?xml version="1.0" encoding="utf-8" ?> | |||
<odoo> |
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.
add no update
|
||
|
||
class TestSaleOrderCountryAllowedProduct(TransactionCase): | ||
def setUp(self): |
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.
"@classmethod" is not necessary ?
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 is not, as we are using setUp and not setUpClass. There's only one test, so I think that it is the same using setUp and setUpClass.
e1464e9
to
f1e0b89
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.
LGTM 👍🏻
This module allows to restrict the selection of products in sale order lines based on the shipping address country.
@HaraldPanten @ValentinVinagre @luis-ron
T-6187