[19.0][IMP] contract: optional Reference/Company columns + optional Payment Terms column - #1517
Open
bosd wants to merge 2 commits into
Open
[19.0][IMP] contract: optional Reference/Company columns + optional Payment Terms column#1517bosd wants to merge 2 commits into
bosd wants to merge 2 commits into
Conversation
pedrobaeza
requested changes
Sep 5, 2026
pedrobaeza
left a comment
Member
There was a problem hiding this comment.
The company is hidden if you don't have multi-company group, so that should be enough. Put them optional="show".
…ct list Neither column carried an `optional` attribute, so both sat outside Odoo's column selector and were rendered with no way to switch them off. Put them under the selector with `optional="show"`, so the list looks exactly as it does today and the only change is that a user who does not want Reference or Company can now drop them, with the choice remembered per user.
bosd
force-pushed
the
19.0-imp-contract-optional-list-columns
branch
from
September 5, 2026 12:20
c8eb843 to
91c7d69
Compare
Contributor
Author
|
Done, both are Fair point on Company - |
pedrobaeza
approved these changes
Sep 5, 2026
Add payment_term_id to the contract list as an optional column, hidden by default, so users who track payment terms can switch it on from the column selector without cluttering the list for everyone else.
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.
Spotted on the 19.0 runboat: the contract list has columns that cannot be toggled, and lacks a payment-terms column.
Change
code(Reference) andcompany_id(Company) getoptional="show"— they render exactly as today, but a user can now drop them from the column selector (remembered per user). Previously they sat outside the selector with no way off.payment_term_id(Payment Terms) is added as an optional column, hidden by default, so it is available from the selector without cluttering the list.payment_mode_idhas the same toggle problem but is added bycontract_payment_mode, so it is handled separately in #1518.