11from odoo import fields , models
22
3+
34class EstateProperty (models .Model ):
45 _name = "estate.property"
5- _description = "ici je mets une phrase "
6+ _description = "Estate Property "
67
78 name = fields .Char (required = True )
89 description = fields .Text ()
@@ -21,8 +22,11 @@ class EstateProperty(models.Model):
2122 selection = [('North' , 'N' ), ('South' , 'S' ),('East' , 'E' ),('West' , 'W' )],
2223 help = "Specify the orientation of the garden to know when you're gonna enjoy the sun" )
2324 state = fields .Selection (
24- selection = [('New' ,'New' ), ('Offer Received' , 'Offer Received' ),('Offer Accepted' , 'Offer Accepted' ),('Sold' , 'Sold' ),('Cancelled' , 'Cancelled' )],
25+ selection = [('New' , 'New' ), ('Offer Received' , 'Offer Received' ), ('Offer Accepted' , 'Offer Accepted' ), ('Sold' , 'Sold' ), ('Cancelled' , 'Cancelled' )],
2526 default = 'New'
2627 )
2728 active = fields .Boolean (default = True )
28-
29+ salesman = fields .Many2one ("res.users" )
30+ buyer = fields .Many2one ("res.partner" , copy = False )
31+ tag_ids = fields .Many2many ("estate.property.tag" , string = "Tags" )
32+ offer_ids = fields .One2many ("estate.property.offer" ,"property_id" )
0 commit comments