4 changed files with 78 additions and 0 deletions
@ -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, |
||||
|
} |
@ -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") |
@ -0,0 +1,48 @@ |
|||||
|
<odoo> |
||||
|
<record id="view_deal_eligible_tree" model="ir.ui.view"> |
||||
|
<field name="name">deal.eligible.tree</field> |
||||
|
<field name="model">deal.eligible</field> |
||||
|
<field name="arch" type="xml"> |
||||
|
<tree> |
||||
|
<field name="booking_date"/> |
||||
|
<field name="developer_commission"/> |
||||
|
<field name="buyer"/> |
||||
|
<field name="deal_id"/> |
||||
|
<field name="project"/> |
||||
|
<field name="sale_value"/> |
||||
|
<field name="unit"/> |
||||
|
</tree> |
||||
|
</field> |
||||
|
</record> |
||||
|
|
||||
|
<record id="view_deal_eligible_form" model="ir.ui.view"> |
||||
|
<field name="name">deal.eligible.form</field> |
||||
|
<field name="model">deal.eligible</field> |
||||
|
<field name="arch" type="xml"> |
||||
|
<form> |
||||
|
<sheet> |
||||
|
<group> |
||||
|
<field name="booking_date"/> |
||||
|
<field name="developer_commission"/> |
||||
|
<field name="buyer"/> |
||||
|
<field name="deal_id"/> |
||||
|
<field name="project"/> |
||||
|
<field name="sale_value"/> |
||||
|
<field name="unit"/> |
||||
|
</group> |
||||
|
</sheet> |
||||
|
</form> |
||||
|
</field> |
||||
|
</record> |
||||
|
|
||||
|
<menuitem id="menu_deal_eligible_root" name="Deal Management" sequence="10"/> |
||||
|
|
||||
|
<menuitem id="menu_deal_eligible" name="Deal Eligibles" parent="menu_deal_eligible_root" action="action_deal_eligible" sequence="10"/> |
||||
|
|
||||
|
<record id="action_deal_eligible" model="ir.actions.act_window"> |
||||
|
<field name="name">Deal Eligibles</field> |
||||
|
<field name="res_model">deal.eligible</field> |
||||
|
<field name="view_mode">tree,form</field> |
||||
|
</record> |
||||
|
</odoo> |
||||
|
|
Loading…
Reference in new issue