Skip to content

[19.0][IMP] contract: optional Reference/Company columns + optional Payment Terms column - #1517

Open
bosd wants to merge 2 commits into
OCA:19.0from
bosd:19.0-imp-contract-optional-list-columns
Open

[19.0][IMP] contract: optional Reference/Company columns + optional Payment Terms column#1517
bosd wants to merge 2 commits into
OCA:19.0from
bosd:19.0-imp-contract-optional-list-columns

Conversation

@bosd

@bosd bosd commented Sep 5, 2026

Copy link
Copy Markdown
Contributor

Spotted on the 19.0 runboat: the contract list has columns that cannot be toggled, and lacks a payment-terms column.

Change

  • code (Reference) and company_id (Company) get optional="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_id has the same toggle problem but is added by contract_payment_mode, so it is handled separately in #1518.

@pedrobaeza pedrobaeza left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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
bosd force-pushed the 19.0-imp-contract-optional-list-columns branch from c8eb843 to 91c7d69 Compare September 5, 2026 12:20
@bosd

bosd commented Sep 5, 2026

Copy link
Copy Markdown
Contributor Author

Done, both are optional="show" now, so the list is unchanged and the columns just become droppable. Rewrote the commit message, which argued for the old default.

Fair point on Company - base.group_multi_company already keeps it away from everyone who does not need it, so there was no case for hiding it a second time.

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.
@bosd bosd changed the title [19.0][IMP] contract: hide Reference and Company by default in the contract list [19.0][IMP] contract: optional Reference/Company columns + optional Payment Terms column Sep 5, 2026
bosd pushed a commit to bosd/contract that referenced this pull request Sep 5, 2026
…CA#1517)

Add payment_term_id to the contract list as an optional column (hidden by
default), matching OCA OCA#1517. Keeps the payment-terms column available at FLC
after retiring the Studio customization. Bump 19.0.1.1.6 -> 19.0.1.1.7.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants