[18.0][IMP] contract: Adding optional fields on tree view#1386
Open
noah-lemarinel wants to merge 3 commits intoOCA:18.0from
Open
[18.0][IMP] contract: Adding optional fields on tree view#1386noah-lemarinel wants to merge 3 commits intoOCA:18.0from
noah-lemarinel wants to merge 3 commits intoOCA:18.0from
Conversation
- code - date_start - date_end - recurring_next_date - invoice_partner_id - commercial_partner_id - invoice_count refs OCA#1385
Member
|
At least |
- code - date_start - date_end - invoice_partner_id - commercial_partner_id refs OCA#1385
carlosdauden
suggested changes
Feb 3, 2026
contract/views/contract.xml
Outdated
| options="{'color_field': 'color'}" | ||
| /> | ||
| <field name="company_id" groups="base.group_multi_company" /> | ||
| <field name="code" optional="hide" /> |
Contributor
There was a problem hiding this comment.
This field is showed in:
https://github.com/OCA/contract/pull/1386/changes#diff-824d27cca50c885b1fb2a66f39e66227a4ea197d6be188550c503be3c1e9e75dR419
Add optional="show" in existing field if you want hide:
contract/views/contract.xml
Outdated
Comment on lines
431
to
432
| <field name="invoice_partner_id" optional="hide" /> | ||
| <field name="commercial_partner_id" optional="hide" /> |
Contributor
There was a problem hiding this comment.
It is best to add these fields after partner_id to keep all related fields together.
- code - user_id - date_start - date_end refs OCA#1385
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.
refs #1385