diff --git a/custom_fields/__init__.py b/custom_fields/__init__.py new file mode 100644 index 000000000..e69de29bb diff --git a/custom_fields/__manifest__.py b/custom_fields/__manifest__.py new file mode 100644 index 000000000..6d0c83768 --- /dev/null +++ b/custom_fields/__manifest__.py @@ -0,0 +1,16 @@ +{ + 'name': 'Deal Eligible Management', + 'version': '1.0', + 'summary': 'Module to manage deal eligibles', + 'description': 'Custom module for managing deals and their details in Sales Management.', + 'author': 'Your Name', + 'website': 'https://yourwebsite.com', + 'category': 'Sales', + 'depends': ['base', 'sale', 'account'], + 'data': [ + 'security/ir.model.access.csv', + 'views/deal_eligible_views.xml', + ], + 'installable': True, + 'application': True, +} \ No newline at end of file diff --git a/custom_fields/models/custom_fields.py b/custom_fields/models/custom_fields.py new file mode 100644 index 000000000..2fb86e998 --- /dev/null +++ b/custom_fields/models/custom_fields.py @@ -0,0 +1,14 @@ +from odoo import models, fields, api + +class DealEligible(models.Model): + _name = 'deal.eligible' + _description = 'Deal Eligible' + + booking_date = fields.Date(string="Booking Date") + developer_commission = fields.Float(string="Broker Commission", tracking=True) + buyer = fields.Many2one('res.partner', string="Buyer Name", tracking=True) + deal_id = fields.Integer(string="Deal ID", tracking=True) + project = fields.Many2one('product.template', string="Project Name", tracking=True) + sale_value = fields.Monetary(string="Sale Value", tracking=True, currency_field='currency_id') + unit = fields.Many2one('product.product', string="Unit", tracking=True) + currency_id = fields.Many2one('res.currency', string="Currency") \ No newline at end of file diff --git a/custom_fields/views/property_sale_form_view.xml b/custom_fields/views/property_sale_form_view.xml new file mode 100644 index 000000000..776dc76ff --- /dev/null +++ b/custom_fields/views/property_sale_form_view.xml @@ -0,0 +1,48 @@ + + + deal.eligible.tree + deal.eligible + + + + + + + + + + + + + + + deal.eligible.form + deal.eligible + +
+ + + + + + + + + + + +
+
+
+ + + + + + + Deal Eligibles + deal.eligible + tree,form + +
+