-
Notifications
You must be signed in to change notification settings - Fork 15
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
base: 16.0
Are you sure you want to change the base?
[16.0][MIG] mrp_sale_grouped #376
Conversation
Hello ! Vu l'historique, j'ai l'impression que tu n'utilises pas odoo-tools-grap. Un soucis ? |
oupsi faut que je prenne l'habitude, j'ai utilisé odoo-module-migrate ! |
6b00afb
to
7ebe224
Compare
T'es so 2023. |
Codecov ReportAttention: Patch coverage is
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. |
tu peux rebase du coup. |
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.
nettoyage de printemps ? je sais pas si cette PR est en draft, mais y'a plein de code commenté. .. -;)
# "sale_mrp_link", | ||
# GRAP |
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.
# "sale_mrp_link", | |
# GRAP |
# 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", | ||
# ) |
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.
# 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", | |
# ) |
# production_state = fields.Selection( | ||
# selection=_PROD_STATE_SELECTION, | ||
# string="Production State", | ||
# default="prod_in_progress", | ||
# tracking=True, | ||
# compute="_compute_production_state", | ||
# ) |
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.
# production_state = fields.Selection( | |
# selection=_PROD_STATE_SELECTION, | |
# string="Production State", | |
# default="prod_in_progress", | |
# tracking=True, | |
# compute="_compute_production_state", | |
# ) |
# | ||
# @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" |
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.
# | |
# @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" |
# 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) |
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.
# 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) |
Ouais c'est ce que j'ai écris dans la ROADMAP
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 |
1be9a7f
to
58aa65f
Compare
No description provided.