File tree Expand file tree Collapse file tree 5 files changed +47
-2
lines changed
Expand file tree Collapse file tree 5 files changed +47
-2
lines changed Original file line number Diff line number Diff line change 1+ from . import models
Original file line number Diff line number Diff line change 33 'name' : "Estate" ,
44
55 'summary' : """
6- Starting module for "Discover the JS framework, chapter 1: Owl components"
6+ App module created specifically for the Server Framework 101 tutorial.
77 """ ,
88
99 'description' : """
10- Starting module for "Discover the JS framework, chapter 1: Owl components"
10+ App module created specifically for the Server Framework 101 tutorial.
1111 """ ,
1212
1313 'author' : "Odoo" ,
Original file line number Diff line number Diff line change 1+ from . import estate_property
Original file line number Diff line number Diff line change 1+ from odoo import fields , models
2+
3+ class EstatePropertyModel (models .Model ):
4+ _name = "estate_property"
5+ _description = "Real Estate property database"
6+
7+ name = fields .Char (required = True )
8+ description = fields .Text ()
9+ postcode = fields .Char ()
10+ date_availability = fields .Date ()
11+ expected_price = fields .Float (required = True )
12+ selling_price = fields .Float ()
13+ bedrooms = fields .Integer ()
14+ living_area = fields .Integer ()
15+ facades = fields .Integer ()
16+ garage = fields .Boolean ()
17+ garden = fields .Boolean ()
18+ garden_area = fields .Integer ()
19+ garden_orientation = fields .Selection (
20+ selection = [
21+ ('north' , 'North' ),
22+ ('east' , 'East' ),
23+ ('south' , 'South' ),
24+ ('west' , 'West' ),
25+ ],
26+ string = 'Garden Orientation' ,
27+ default = 'south' ,
28+ )
Original file line number Diff line number Diff line change 1+ <odoo >
2+ <data >
3+ <template id =" estate.example" name =" Awesome T-Shirt thank you" >
4+ <html >
5+ <head >
6+ <link type =" image/x-icon" rel =" shortcut icon" href =" /web/static/img/favicon.ico" />
7+ <t t-call-assets =" awesome_owl.assets_playground" />
8+ </head >
9+
10+ <body >
11+ </body >
12+ </html >
13+ </template >
14+ </data >
15+ </odoo >
You can’t perform that action at this time.
0 commit comments