fix: sync authotp and weighbridge custom fields via json fixtures (backport of #136, #137) - #138
Merged
av-dev2 merged 6 commits intoAug 31, 2026
Conversation
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.
Summary
Manual backport of #136 and #137, since both branches' automatic backport attempts failed with cherry-pick conflicts.
Customer.authotp_validated,Sales Invoice.authotp*) were only created viaafter_install, so any site where av_tools was already installed before these fields were added never got them.Vehicle.default_tare_weightfield, and theweighbridge_ticketLink field on six Item child doctypes (Sales Invoice Item,Delivery Note Item,Sales Order Item,Purchase Order Item,Purchase Invoice Item,Purchase Receipt Item) into JSON fixtures underpatches/custom_fields/custom_fields_json/, which the existing genericav_tools.utils.create_custom_fields.executeloader already runs on bothafter_installandafter_migrate.after_migrate.py.Test plan
av_tools.utils.create_custom_fields.executeagainst an existing site with av_tools already installed; confirmed all authotp, Vehicle and weighbridge_ticket item fields are created/synced correctly.pre-commit run --all-fileson this branch currently fails on pre-existing eslint errors in unrelated JS files this PR does not touch — this branch is behindversion-15-hotfixon those lint fixes.