Skip to content

Syncing from upstream OCA/contract (16.0)#975

Merged
bt-admin merged 3 commits into
brain-tec:16.0from
OCA:16.0
Jun 5, 2026
Merged

Syncing from upstream OCA/contract (16.0)#975
bt-admin merged 3 commits into
brain-tec:16.0from
OCA:16.0

Conversation

@bt-admin
Copy link
Copy Markdown

@bt-admin bt-admin commented Jun 5, 2026

bt_gitbot

Honeyxilia and others added 3 commits May 20, 2026 11:34
…n res.config.settings

Opening the Configuration menu instanciates a new res.config.settings object, then applies the assigned values to revelant fields once we use the Save action.

The related field on these fields are intended to fetch the company values, then to apply the saved values to the related field afterwards.
However, the assignment of default values on these fields means that, when creating a new res.config.settings instance, these default values are used,
and then inversely applied to the related fields, meaning that if we are to use the Save action (which can happen if we quit the view), the default values
always override the company values, unless we always go out of our way to the Invoicing tab and set the contract_forecast values to the desired values.

As such, we remove these default attributes, so that the res.config.settings instance doesn't override the company values whenever we open the Configuration menu.
Signed-off-by gurneyalex
@bt-admin bt-admin added the 16.0 label Jun 5, 2026
@bt-admin bt-admin merged commit 46c2909 into brain-tec:16.0 Jun 5, 2026
4 checks passed
@codecov
Copy link
Copy Markdown

codecov Bot commented Jun 5, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 93.19%. Comparing base (5aedcb4) to head (03d1763).
⚠️ Report is 145 commits behind head on 16.0.

Additional details and impacted files
@@            Coverage Diff             @@
##             16.0     #975      +/-   ##
==========================================
+ Coverage   93.17%   93.19%   +0.01%     
==========================================
  Files         145      145              
  Lines        5086     5086              
  Branches      441      441              
==========================================
+ Hits         4739     4740       +1     
  Misses        277      277              
+ Partials       70       69       -1     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

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