diff -pruN 7.0.3-1/CHANGELOG 7.0.4-1/CHANGELOG
--- 7.0.3-1/CHANGELOG	2025-02-01 17:12:54.000000000 +0000
+++ 7.0.4-1/CHANGELOG	2025-06-04 21:51:04.000000000 +0000
@@ -1,4 +1,9 @@
 
+Version 7.0.4 - 2025-06-04
+--------------------------
+* Bug fixes (see mercurial logs for details)
+
+
 Version 7.0.3 - 2025-02-01
 --------------------------
 * Bug fixes (see mercurial logs for details)
diff -pruN 7.0.3-1/PKG-INFO 7.0.4-1/PKG-INFO
--- 7.0.3-1/PKG-INFO	2025-02-01 17:12:57.529372700 +0000
+++ 7.0.4-1/PKG-INFO	2025-06-04 21:51:07.493785900 +0000
@@ -1,6 +1,6 @@
-Metadata-Version: 2.2
+Metadata-Version: 2.4
 Name: trytond_document_incoming
-Version: 7.0.3
+Version: 7.0.4
 Summary: Tryton module to manage incoming document
 Home-page: http://www.tryton.org/
 Download-URL: http://downloads.tryton.org/7.0/
@@ -65,6 +65,7 @@ Dynamic: download-url
 Dynamic: home-page
 Dynamic: keywords
 Dynamic: license
+Dynamic: license-file
 Dynamic: project-url
 Dynamic: provides-extra
 Dynamic: requires-dist
diff -pruN 7.0.3-1/debian/changelog 7.0.4-1/debian/changelog
--- 7.0.3-1/debian/changelog	2025-03-21 10:08:52.000000000 +0000
+++ 7.0.4-1/debian/changelog	2025-07-19 17:11:08.000000000 +0000
@@ -1,3 +1,9 @@
+tryton-modules-document-incoming (7.0.4-1) unstable; urgency=medium
+
+  * Merging upstream version 7.0.4.
+
+ -- Mathias Behrle <mathiasb@m9s.biz>  Sat, 19 Jul 2025 19:11:08 +0200
+
 tryton-modules-document-incoming (7.0.3-1) unstable; urgency=medium
 
   * Merging upstream version 7.0.3.
diff -pruN 7.0.3-1/document.py 7.0.4-1/document.py
--- 7.0.3-1/document.py	2025-01-29 20:41:38.000000000 +0000
+++ 7.0.4-1/document.py	2025-05-29 15:04:05.000000000 +0000
@@ -54,7 +54,7 @@ class Incoming(DeactivableMixin, Workflo
             ('document_incoming', "Unknown"),
             ], "Type",
         states={
-            'required': Eval('state') == 'done',
+            'required': Eval('active', True) & (Eval('state') == 'done'),
             'readonly': _states['readonly'],
             })
     source = fields.Char("Source", states=_states)
@@ -74,7 +74,7 @@ class Incoming(DeactivableMixin, Workflo
     result = fields.Reference(
         "Result", selection='get_results', readonly=True,
         states={
-            'required': Eval('state') == 'done',
+            'required': Eval('active', True) & (Eval('state') == 'done'),
             'invisible': ~Eval('result'),
             })
     state = fields.Selection([
diff -pruN 7.0.3-1/tests/scenario_document_incoming_split.rst 7.0.4-1/tests/scenario_document_incoming_split.rst
--- 7.0.3-1/tests/scenario_document_incoming_split.rst	2023-10-30 17:06:38.000000000 +0000
+++ 7.0.4-1/tests/scenario_document_incoming_split.rst	2025-05-29 15:04:05.000000000 +0000
@@ -37,3 +37,11 @@ Split in 2::
 
     >>> len(document.children)
     2
+
+Process parent document::
+
+    >>> document.click('process')
+    >>> document.state
+    'done'
+    >>> bool(document.result)
+    False
diff -pruN 7.0.3-1/tryton.cfg 7.0.4-1/tryton.cfg
--- 7.0.3-1/tryton.cfg	2024-11-06 20:44:39.000000000 +0000
+++ 7.0.4-1/tryton.cfg	2025-05-05 08:54:28.000000000 +0000
@@ -1,5 +1,5 @@
 [tryton]
-version=7.0.3
+version=7.0.4
 depends:
     company
     ir
diff -pruN 7.0.3-1/trytond_document_incoming.egg-info/PKG-INFO 7.0.4-1/trytond_document_incoming.egg-info/PKG-INFO
--- 7.0.3-1/trytond_document_incoming.egg-info/PKG-INFO	2025-02-01 17:12:56.000000000 +0000
+++ 7.0.4-1/trytond_document_incoming.egg-info/PKG-INFO	2025-06-04 21:51:06.000000000 +0000
@@ -1,6 +1,6 @@
-Metadata-Version: 2.2
+Metadata-Version: 2.4
 Name: trytond_document_incoming
-Version: 7.0.3
+Version: 7.0.4
 Summary: Tryton module to manage incoming document
 Home-page: http://www.tryton.org/
 Download-URL: http://downloads.tryton.org/7.0/
@@ -65,6 +65,7 @@ Dynamic: download-url
 Dynamic: home-page
 Dynamic: keywords
 Dynamic: license
+Dynamic: license-file
 Dynamic: project-url
 Dynamic: provides-extra
 Dynamic: requires-dist
