diff --git a/Playbook Upgrade Odoo XX.0.md b/Playbook Upgrade Odoo XX.0.md
index ae8b10fa..17a8f2f1 100644
--- a/Playbook Upgrade Odoo XX.0.md
+++ b/Playbook Upgrade Odoo XX.0.md
@@ -49,7 +49,7 @@ ssh "$SERVER" docker stop "$ODOO_CONTAINER"
Drop the target database.
```bash
-ssh -p "$PORT" "$SERVER" docker-postgres-drop -c "$POSTGRES_CONTAINER" -d "$TARGET_DATABASE"
+ssh -p "$PORT" "$SERVER" docker-postgres-drop -c "$TARGET_POSTGRES_CONTAINER" -d "$TARGET_DATABASE"
```
Run upgrade script in **test** mode.
diff --git a/Prozesse Odoo - Migration Module.md b/Prozesse Odoo - Migration Module.md
index 8e218fff..8fa2f1dd 100644
--- a/Prozesse Odoo - Migration Module.md
+++ b/Prozesse Odoo - Migration Module.md
@@ -179,24 +179,26 @@ task update-with-llm addons/$REPO/$MODULE/views/*.xml $task
```bash
task=$(cat << EOF
-Migrate model fields state definitions:
-For example:
- READONLY_STATES = {
- "draft": [("readonly", False)],
- "initialized": [("readonly", True)],
- "connected": [("readonly", True)],
- "deleted": [("readonly", False)],
- }
- name = fields.Char(required=True, states=READONLY_STATES)
- key = fields.Char(
- states={"draft": [("readonly", False)], "assigned": [("deleted", False)]},
- tracking=True,
- )
+Migrate model fields state definitions.
+Replace this kind of conditions:
+
+READONLY_STATES = {
+ "draft": [("readonly", False)],
+ "initialized": [("readonly", True)],
+ "connected": [("readonly", True)],
+ "deleted": [("readonly", False)],
+}
+name = fields.Char(states=READONLY_STATES)
+key = fields.Char(
+ readonly=True
+ states={"draft": [("readonly", False)], "assigned": [("deleted", False)]},
+)
+
+With a form view definitions of the respective model:
+
+
+
-To a single function:
- def _is_readonly(self):
- self.ensure_one()
- return self.state in ['initialized', 'connected']
EOF
)