[FIX] purchase_ux: initialize date_planned for new lines in confirmed POs#330
Closed
les-adhoc wants to merge 1 commit into
Closed
[FIX] purchase_ux: initialize date_planned for new lines in confirmed POs#330les-adhoc wants to merge 1 commit into
les-adhoc wants to merge 1 commit into
Conversation
Contributor
Contributor
|
@roboadhoc r+ nobump |
roboadhoc
pushed a commit
that referenced
this pull request
Jun 8, 2026
… POs closes #330 Signed-off-by: Matias Velazquez <mav@adhoc.com.ar>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Problema
_compute_price_unit_and_date_planned_and_nameexcluye líneas de OC confirmadas para no pisar precio/descripción, perodate_plannedvive en el mismo método. Una línea nueva agregada a una OC confirmada heredastate = "purchase"inmediatamente, queda excluida delsuper()y sudate_plannedqueda enFalse→AttributeError: 'bool' object has no attribute 'date'.Fix
Inicializa
date_plannedpara líneas sin fecha en OC confirmadas/done, usando_select_seller+_get_date_plannedsiguiendo el patrón del core Odoo 18, sin tocar precio ni descripción.