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

[18.0][MOV] product_set_sell_only_by_packaging: Migration to 18.0 #3494

Open
wants to merge 247 commits into
base: 18.0
Choose a base branch
from

Conversation

trisdoan
Copy link
Contributor

@trisdoan trisdoan commented Dec 16, 2024

Note

Changes in 18.0

  • Rename sale_product_set_sale_by_packaging to product_set_sell_only_by_packaging
  • can_be_sold is now replaced by standard Odoo field: sales, which was introduced from 15.0 in odoo/odoo@a2b207c
  • group_discount_per_so_line was moved to module sale in here odoo/odoo@82eb2b5
  • Make sell_only_by_packaging writable in object ProductSetLine to bypass oca-ci test
    • Without this, CI is sad due to this warning
    • The field is solely used in constraint, and nowhere in view, which should be fine to make it writable
  • sale_by_packaging was stopped to migrate since 15.0, sell_only_by_packaging was introduced to replace, in https://github.com/OCA/sale-workflow/pull/2623, which is migrated to 18.0 in

rousseldenis and others added 30 commits October 17, 2024 13:29
FIX case of tests

DEL refund journal field on sale order type, now same invoice journal should be used for refunds

FIX case of test

FIX sale order test
Conflicts:
	sale_order_type/models/sale_order.py
	sale_order_type/models/stock_picking.py
	sale_order_type/tests/test_sale_order_type.py

ADD Payment Term, Pricelist and Incoterm to sale order type

Conflicts:
	sale_order_type/models/sale_order.py
	sale_order_type/tests/test_sale_order_type.py
	sale_order_type/views/sale_order_type_view.xml

ADD sale type for invoices

Conflicts:
	sale_order_type/README.rst
	sale_order_type/models/account_invoice.py
	sale_order_type/tests/test_sale_order_type.py

IMP description
ADD multicompany rule for sale.order.type and company in sale.order.type (OCA#292)

[IMP] sale_order_type: multicompany handle
Conflicts:
	sale_order_type/models/sale_order_type.py
[UPD] Update sale_order_type.pot
@trisdoan trisdoan force-pushed the 18.0-mig-sale_product_set_sale_by_packaging branch from 9d43c74 to e5f87ca Compare December 16, 2024 02:29
Copy link
Contributor

@jbaudoux jbaudoux left a comment

Choose a reason for hiding this comment

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

Shouldn't this module be renamed to sale_product_set_sell_only_by_packaging ?

And in regards of my comment #3474 (review) maybe it should just be product_set_sell_only_by_packaging as I don't see any sales feature in this module

""",
"version": "18.0.1.0.0",
"development_status": "Alpha",
"category": "Warehouse Management",
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
"category": "Warehouse Management",
"category": "Sales",

{
"name": "Sale Product Set Sale by packaging",
"summary": """
Glue module between `sale_by_packaging` and `sale_product_set_packaging_qty`.
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
Glue module between `sale_by_packaging` and `sale_product_set_packaging_qty`.
Glue module between `sell_only_by_packaging` and `sale_product_set_packaging_qty`.

# @author Simone Orsi <simone.orsi@camptocamp.com>
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl)
{
"name": "Sale Product Set Sale by packaging",
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
"name": "Sale Product Set Sale by packaging",
"name": "Sales Product set Sell only by packaging",

@trisdoan trisdoan force-pushed the 18.0-mig-sale_product_set_sale_by_packaging branch from e5f87ca to bb61de7 Compare December 31, 2024 03:28
@trisdoan
Copy link
Contributor Author

Shouldn't this module be renamed to sale_product_set_sell_only_by_packaging ?

And in regards of my comment #3474 (review) maybe it should just be product_set_sell_only_by_packaging as I don't see any sales feature in this module

Hello @jbaudoux, agreed, I renamed the module, thank you so much

@trisdoan trisdoan requested a review from jbaudoux December 31, 2024 03:30
@trisdoan trisdoan marked this pull request as draft December 31, 2024 03:37
@trisdoan
Copy link
Contributor Author

trisdoan commented Dec 31, 2024

DRAFT: impact filenames + translation

@trisdoan trisdoan force-pushed the 18.0-mig-sale_product_set_sale_by_packaging branch from bb61de7 to 5b57ad5 Compare December 31, 2024 03:55
@trisdoan trisdoan marked this pull request as ready for review December 31, 2024 03:56
@trisdoan trisdoan changed the title [18.0][MIG] sale_product_set_sale_by_packaging: Migration to 18.0 [18.0][MOV] product_set_sell_only_by_packaging: Migration to 18.0 Dec 31, 2024
Renamed from sale_product_set_sale_by_packaging to
product_set_sell_only_by_packaging
@trisdoan trisdoan force-pushed the 18.0-mig-sale_product_set_sale_by_packaging branch from 5b57ad5 to 3ada4e2 Compare December 31, 2024 04:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.