Comments (1)
My current workaround
-
Add a custom json field
previous
-
Add
before_rename
server script
doc.previous = None
frappe.db.set_value('Item', doc.name, 'previous', as_json({'name': doc.name}))
- Add
after_rename
server script
# Load previous
docDic = doc.as_dict()
docDic['previous'] = json.loads(doc.previous)
# Call Webhook
frappe.make_post_request('.../webhook/Item/after_rename', data=as_json(docDic))
# Cleanup
frappe.db.set_value('Item', doc.name, 'previous', None)
Point 1-2 are necessary due to #25457
A simple data field can be used too, I am using json for consistency with other parts of my code
from frappe.
Related Issues (20)
- Link Preview is not refreshed on change HOT 4
- Integrations -> Utils -> get_request - cover response 204 => "204 No Content" HOT 3
- frappe-bench installation issue HOT 1
- Underutilization of Replica Database in Frappe v15 AWS Setup with Load Balancer HOT 5
- Allow title_field option on Child Table
- Sign Up Link not working in latest frappe HOT 1
- Frappe bench doesn't start when using latest version15 HOT 2
- bug: sql error with a combination of virtual fields and `get_list` from `client` HOT 7
- Log all error snapshots
- Download Template : Field Sorting
- Display of Select Field with label and value differs when in Read Only
- Email sync rule should probably use `uidnext` instead of `max(uid) + 1` in `build_email_sync_rule`
- Unable to use api's without system manager role check HOT 1
- OpenTelemetry Log, Metric, Trace Integration
- Add option to set default report view for doctype HOT 3
- EMail status tracking not working HOT 6
- Clarification and Enhancement of User Permissions in Frappe
- Virtual Field Listview data
- Date picker gets translated, leading to non-sensical results HOT 1
- SessionBootFailed: changelog feed error. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from frappe.