Repository navigation
Conversation
…out website Settings take the website of the active company. When that company has no website, the option came empty and, being required in Settings, the form refused to save the whole page, the settings of other apps included. The option is now required only when there is a website, with required="website_id" on the field, as Odoo does with its own website settings, and it is hidden when there is none, so it is not offered where the choice would go nowhere. The website keeps its own required and default, so no website can end up empty.
Contributor
Contributor
|
@roboadhoc r+ nobump |
This branch was previously deployed
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.

Ticket: https://www.adhoc.inc/odoo/helpdesk.ticket/133229
Qué pasaba: en Ajustes > Sitio web, si la empresa activa no tiene sitio web, la opción «Productos sin stock» aparecía sin ninguna opción marcada y, por ser obligatoria, no dejaba guardar la página de Ajustes. Eso trababa también los ajustes de las otras apps.
Qué cambia:
required="website_id"en el campo, como hace Odoo con sus propios ajustes del sitio) y se oculta cuando no hay sitio.website, así que ningún sitio puede quedar vacío.20.0.1.0.1, para que el cambio de vista llegue a las bases existentes.Validación:
test_settings_option_is_only_required_with_a_website: falla con el código de20.0y pasa con el arreglo (29 tests del módulo en verde, en local).