diff --git a/contract/models/abstract_contract_line.py b/contract/models/abstract_contract_line.py
index 72421f63cf..11d5524142 100644
--- a/contract/models/abstract_contract_line.py
+++ b/contract/models/abstract_contract_line.py
@@ -17,8 +17,10 @@ class ContractAbstractContractLine(models.AbstractModel):
_description = "Abstract Recurring Contract Line"
product_id = fields.Many2one("product.product", string="Product")
-
name = fields.Text(string="Description", required=True)
+ partner_id = fields.Many2one(
+ comodel_name="res.partner", related="contract_id.partner_id"
+ )
quantity = fields.Float(default=1.0, required=True)
product_uom_category_id = fields.Many2one( # Used for domain of field uom_id
comodel_name="uom.category",
diff --git a/contract/views/contract.xml b/contract/views/contract.xml
index 30d51f58c7..c9d894094c 100644
--- a/contract/views/contract.xml
+++ b/contract/views/contract.xml
@@ -660,4 +660,11 @@
action="action_supplier_contract"
sequence="99"
/>
+
+
+
diff --git a/contract/views/contract_line.xml b/contract/views/contract_line.xml
index acedf3e7e9..17ac3c1777 100644
--- a/contract/views/contract_line.xml
+++ b/contract/views/contract_line.xml
@@ -188,4 +188,104 @@
+
+
+
+ contract.line report tree view (in contract)
+ contract.line
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ contract.line search view (in contract)
+ contract.line
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Supplier Contract Lines
+ contract.line
+ tree,form
+ [('contract_id.contract_type', '=', 'purchase')]
+
+ {'search_default_group_by_contract': 1}
+
+
+
+
+
+
+ Customer Contract Lines
+ contract.line
+ tree,form
+ [('contract_id.contract_type', '=', 'sale')]
+
+ {'search_default_group_by_contract': 1}
+
+
+
+
+
+
+
+