diff --git a/ssi_revenue_recognition/models/revenue_recognition.py b/ssi_revenue_recognition/models/revenue_recognition.py index b5cd770..527aff8 100644 --- a/ssi_revenue_recognition/models/revenue_recognition.py +++ b/ssi_revenue_recognition/models/revenue_recognition.py @@ -304,7 +304,7 @@ def _get_policy_field(self): "quantity", "performance_obligation_acceptance_ids", "performance_obligation_acceptance_ids.state", - "performance_obligation_acceptance_ids.qty_fulfilled", + "performance_obligation_acceptance_ids.qty_accepted", ) def _compute_quantity_accepted(self): for record in self: @@ -312,7 +312,7 @@ def _compute_quantity_accepted(self): for acceptance in record.performance_obligation_acceptance_ids.filtered( lambda r: r.state == "done" ): - qty_accepted += acceptance.qty_fulfilled + qty_accepted += acceptance.qty_accepted qty_diff = record.quantity - qty_accepted try: diff --git a/ssi_revenue_recognition/views/performance_obligation_acceptance_views.xml b/ssi_revenue_recognition/views/performance_obligation_acceptance_views.xml index 5f28335..294b4c8 100644 --- a/ssi_revenue_recognition/views/performance_obligation_acceptance_views.xml +++ b/ssi_revenue_recognition/views/performance_obligation_acceptance_views.xml @@ -75,6 +75,7 @@ + diff --git a/ssi_revenue_recognition/views/revenue_recognition_views.xml b/ssi_revenue_recognition/views/revenue_recognition_views.xml index d522bfa..930e54c 100644 --- a/ssi_revenue_recognition/views/revenue_recognition_views.xml +++ b/ssi_revenue_recognition/views/revenue_recognition_views.xml @@ -186,9 +186,9 @@ - + - +