Skip to content

[FIX 10.0] readonly company on account.move.line#33

Open
richard-willdooit wants to merge 1 commit intoForgeFlow:10.0from
richard-willdooit:10.0-accountmoveline-readonly-co
Open

[FIX 10.0] readonly company on account.move.line#33
richard-willdooit wants to merge 1 commit intoForgeFlow:10.0from
richard-willdooit:10.0-accountmoveline-readonly-co

Conversation

@richard-willdooit
Copy link

Account move line link to company_id (related from account.account)
is not readonly in the base. Some writes are causing an unnecessary
write to account.account on company_id (even though company_id is
not changing), which causes the constraint validation - which is
quite resource hungry given the large number of searches.
Besides being an unnecessary overhead, it fails when this module
has been installed on an existing database and there is history
that was not aligned.

Account move line link to company_id (related from account.account)
is not readonly in the base.  Some writes are causing an unnecessary
write to account.account on company_id (even though company_id is
not changing), which causes the constraint validation - which is
quite resource hungry given the large number of searches.
Besides being an unnecessary overhead, it fails when this module
has been installed on an existing database and there is history
that was not aligned.
@codecov-io
Copy link

Codecov Report

Merging #33 into 10.0 will increase coverage by <.01%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##             10.0      #33      +/-   ##
==========================================
+ Coverage   52.58%   52.59%   +<.01%     
==========================================
  Files         118      118              
  Lines        4931     4932       +1     
==========================================
+ Hits         2593     2594       +1     
  Misses       2338     2338
Impacted Files Coverage Δ
mcfix_account/models/account_move.py 23.4% <100%> (+0.4%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update f787c95...d424f49. Read the comment docs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants