Skip to content

[FIX] purchase_ux: initialize date_planned for new lines in confirmed POs#331

Open
fw-bot-adhoc wants to merge 1 commit into
ingadhoc:19.0from
adhoc-dev:19.0-18.0-h-120003-les-6356-fw
Open

[FIX] purchase_ux: initialize date_planned for new lines in confirmed POs#331
fw-bot-adhoc wants to merge 1 commit into
ingadhoc:19.0from
adhoc-dev:19.0-18.0-h-120003-les-6356-fw

Conversation

@fw-bot-adhoc

Copy link
Copy Markdown

Problema

_compute_price_unit_and_date_planned_and_name excluye líneas de OC confirmadas para no pisar precio/descripción, pero date_planned vive en el mismo método. Una línea nueva agregada a una OC confirmada hereda state = "purchase" inmediatamente, queda excluida del super() y su date_planned queda en FalseAttributeError: 'bool' object has no attribute 'date'.

Fix

Inicializa date_planned para líneas sin fecha en OC confirmadas/done, usando _select_seller + _get_date_planned siguiendo el patrón del core Odoo 18, sin tocar precio ni descripción.

Forward-Port-Of: #330

@roboadhoc

Copy link
Copy Markdown
Contributor

Pull request status dashboard

@fw-bot-adhoc

Copy link
Copy Markdown
Author

@les-adhoc @mav-adhoc this PR targets 19.0 and is the last of the forward-port chain.

To merge the full chain, use

@roboadhoc r+

More info at https://github.com/odoo/odoo/wiki/Mergebot#forward-port

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants