[19.0][IMP] contract: show the contract name in bold in the list view - #1519
Closed
bosd wants to merge 1 commit into
Closed
[19.0][IMP] contract: show the contract name in bold in the list view#1519bosd wants to merge 1 commit into
bosd wants to merge 1 commit into
Conversation
Odoo puts the identifying column of a document list in bold, so a row can
be scanned by its name before anything else. `sale.order` does it:
<field name="name" string="Number" readonly="1" decoration-bf="1"/>
and so does `account.move`:
<field name="name" decoration-bf="1" .../>
The contract list is the odd one out. Its name column carries no
`decoration-bf`, so contracts render flat next to the sale orders and bills
they sit beside in the same menus.
Add `decoration-bf="1"` to match.
Contributor
Author
|
Folding this into #1427 instead. The revamp commit there already promotes the same field from Superseded by #1427; no separate branch needed. |
bosd
pushed a commit
to bosd/contract
that referenced
this pull request
Sep 5, 2026
Add decoration-bf="1" to the name field in contract_contract_tree_view so the contract name renders bold, matching sale.order / account.move. Bump 19.0.1.1.7 -> 19.0.1.1.8.
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: contracts look flat next to the sale orders and bills they sit beside in the same menus.
Problem
Odoo puts the identifying column of a document list in bold, so a row can be scanned by its name before anything else.
sale.order:account.move:It is a broad convention -
decoration-bfappears 61 times across core views.contract_contract_tree_viewis the odd one out:no
decoration-bf, so the contract name renders in normal weight.Change
Add
decoration-bf="1"to that one field.Not touched
The contract template and contract tag lists also have a plain
namecolumn, but those are configuration models rather than documents sitting next to invoices, so they are left alone. The contract line list is left alone too: therenameis the line description, and core does not bold the description column of a document's lines either.Independent of #1517, which touches other columns of the same list.