Last active
March 3, 2024 12:21
-
-
Save kerbrose/a3655d6307e00bbc5ad62131031d1e49 to your computer and use it in GitHub Desktop.
useful psql commands
This file contains 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
# used to delete a view that contains a removed field | |
delete from ir_ui_view where position('FIELD_NAME' in arch_db)>0; | |
# in odoo 16 ir_ui_view becomes a jsonb | |
delete from ir_ui_view where arch_db->>'en_US' ilike '%FIELD_NAME%' ; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment