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

[16.0][ADD] sale_order_country_allowed_product: Restrict products by country in sales #3599

Open
wants to merge 1 commit into
base: 16.0
Choose a base branch
from

Conversation

manuelregidor
Copy link
Contributor

@manuelregidor manuelregidor commented Feb 26, 2025

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

Copy link

@luis-ron luis-ron left a comment

Choose a reason for hiding this comment

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

Functional review: LGTM 👍🏻

@HaraldPanten
Copy link
Contributor

@manuelregidor you should checks tests

@manuelregidor
Copy link
Contributor Author

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

@HaraldPanten
Copy link
Contributor

Ok, let's wait few days until the related PRs are merged.

Copy link

@Tisho99 Tisho99 left a comment

Choose a reason for hiding this comment

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

Wrong module icon

@manuelregidor manuelregidor force-pushed the 16.0-add-sale_order_country_allowed_product branch from f07c99e to e1464e9 Compare February 28, 2025 09:28
@manuelregidor
Copy link
Contributor Author

@Tisho99 Changes applied

Copy link

@Tisho99 Tisho99 left a 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">
Copy link
Contributor

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>
Copy link
Contributor

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):
Copy link
Contributor

Choose a reason for hiding this comment

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

"@classmethod" is not necessary ?

Copy link
Contributor Author

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.

@manuelregidor manuelregidor force-pushed the 16.0-add-sale_order_country_allowed_product branch from e1464e9 to f1e0b89 Compare February 28, 2025 09:42
Copy link
Contributor

@ValentinVinagre ValentinVinagre left a comment

Choose a reason for hiding this comment

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

LGTM 👍🏻

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants