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][MIG] mrp_sale_grouped #376

Draft
wants to merge 5 commits into
base: 16.0
Choose a base branch
from

Conversation

quentinDupont
Copy link
Member

No description provided.

@legalsylvain
Copy link
Member

Hello ! Vu l'historique, j'ai l'impression que tu n'utilises pas odoo-tools-grap. Un soucis ?
Bise !

@quentinDupont
Copy link
Member Author

Hello ! Vu l'historique, j'ai l'impression que tu n'utilises pas odoo-tools-grap. Un soucis ? Bise !

oupsi faut que je prenne l'habitude, j'ai utilisé odoo-module-migrate !

@quentinDupont quentinDupont force-pushed the 16.0-MIG-mrp_sale_grouped-LAITEUX-QD branch from 6b00afb to 7ebe224 Compare June 20, 2024 12:31
@legalsylvain
Copy link
Member

oupsi faut que je prenne l'habitude, j'ai utilisé odoo-module-migrate !

T'es so 2023.

Copy link

codecov bot commented Jun 20, 2024

Codecov Report

Attention: Patch coverage is 72.97297% with 70 lines in your changes missing coverage. Please review.

Project coverage is 72.97%. Comparing base (743d452) to head (1be9a7f).
Report is 36 commits behind head on 16.0.

Current head 1be9a7f differs from pull request most recent head 7d25032

Please upload reports for the commit 7d25032 to get more accurate results.

Files Patch % Lines
mrp_sale_grouped/report/report_sale_grouped.py 22.72% 34 Missing ⚠️
...e_grouped/wizard/bom_print_purchase_list_wizard.py 74.24% 9 Missing and 8 partials ⚠️
mrp_sale_grouped/models/mrp_sale_grouped.py 83.67% 8 Missing ⚠️
...rp_sale_grouped/wizard/x2m_matrix_grouped_sales.py 54.54% 4 Missing and 1 partial ⚠️
mrp_sale_grouped/models/sale_order_line.py 71.42% 2 Missing ⚠️
mrp_sale_grouped/wizard/sale_grouped_wizard.py 91.30% 1 Missing and 1 partial ⚠️
...rp_sale_grouped/wizard/sale_grouped_wizard_line.py 81.81% 2 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##             16.0     #376       +/-   ##
===========================================
- Coverage   90.07%   72.97%   -17.11%     
===========================================
  Files          10       14        +4     
  Lines         262      259        -3     
  Branches       43       37        -6     
===========================================
- Hits          236      189       -47     
- Misses         17       60       +43     
- Partials        9       10        +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@legalsylvain
Copy link
Member

tu peux rebase du coup.

Copy link
Member

@legalsylvain legalsylvain left a comment

Choose a reason for hiding this comment

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

nettoyage de printemps ? je sais pas si cette PR est en draft, mais y'a plein de code commenté. .. -;)

Comment on lines +20 to +21
# "sale_mrp_link",
# GRAP
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
# "sale_mrp_link",
# GRAP

Comment on lines +65 to +72
# Quick access to MRP Production Orders
# mrp_production_ids = fields.One2many(
# comodel_name="mrp.production", compute="_compute_mrp_production_ids"
# )
#
# mrp_production_qty = fields.Integer(
# compute="_compute_production_qty",
# )
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
# Quick access to MRP Production Orders
# mrp_production_ids = fields.One2many(
# comodel_name="mrp.production", compute="_compute_mrp_production_ids"
# )
#
# mrp_production_qty = fields.Integer(
# compute="_compute_production_qty",
# )

Comment on lines +45 to +51
# production_state = fields.Selection(
# selection=_PROD_STATE_SELECTION,
# string="Production State",
# default="prod_in_progress",
# tracking=True,
# compute="_compute_production_state",
# )
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
# production_state = fields.Selection(
# selection=_PROD_STATE_SELECTION,
# string="Production State",
# default="prod_in_progress",
# tracking=True,
# compute="_compute_production_state",
# )

Comment on lines +100 to +110
#
# @api.depends("mrp_production_ids")
# def _compute_production_state(self):
# for mrp_sale_grouped in self:
# if any(
# prods.state not in ["done", "cancel"]
# for prods in mrp_sale_grouped.mapped("mrp_production_ids")
# ):
# mrp_sale_grouped.production_state = "prod_in_progress"
# else:
# mrp_sale_grouped.production_state = "all_production_done"
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
#
# @api.depends("mrp_production_ids")
# def _compute_production_state(self):
# for mrp_sale_grouped in self:
# if any(
# prods.state not in ["done", "cancel"]
# for prods in mrp_sale_grouped.mapped("mrp_production_ids")
# ):
# mrp_sale_grouped.production_state = "prod_in_progress"
# else:
# mrp_sale_grouped.production_state = "all_production_done"

Comment on lines +117 to +129
# MRP Production
# @api.depends("order_ids")
# def _compute_mrp_production_ids(self):
# for grouped_prod in self:
# # production_ids is a sale_mrp_link field
# grouped_prod.mrp_production_ids = grouped_prod.order_ids.mapped(
# "production_ids"
# )
#
# @api.depends("mrp_production_ids")
# def _compute_production_qty(self):
# for grouped_prod in self:
# grouped_prod.mrp_production_qty = len(grouped_prod.mrp_production_ids)
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
# MRP Production
# @api.depends("order_ids")
# def _compute_mrp_production_ids(self):
# for grouped_prod in self:
# # production_ids is a sale_mrp_link field
# grouped_prod.mrp_production_ids = grouped_prod.order_ids.mapped(
# "production_ids"
# )
#
# @api.depends("mrp_production_ids")
# def _compute_production_qty(self):
# for grouped_prod in self:
# grouped_prod.mrp_production_qty = len(grouped_prod.mrp_production_ids)

@quentinDupont quentinDupont marked this pull request as draft June 21, 2024 09:47
@quentinDupont
Copy link
Member Author

quentinDupont commented Jun 21, 2024

nettoyage de printemps ? je sais pas si cette PR est en draft, mais y'a plein de code commenté. .. -;)

Ouais c'est ce que j'ai écris dans la ROADMAP

I had to comment all fields related to module sale_mrp_link that has been deprecated and replace by mrp_sale_info

Faut que je me plonge dans comment ça marche ce mrp_sale_info, mais en attendant, le reste marchait, donc je me suis concentré là dessus. Mais yes, draft

@quentinDupont quentinDupont force-pushed the 16.0-MIG-mrp_sale_grouped-LAITEUX-QD branch from 1be9a7f to 58aa65f Compare June 21, 2024 10:02
@legalsylvain legalsylvain added this to the 16.0 milestone Nov 15, 2024
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.

2 participants