Skip to content

Commit 6a5bc12

Browse files
FlorianGilbertpvag-odoo
authored andcommitted
[FIX] README.md: Fixing typos
There are 2 typos in the README.md that lead to broken links. closes odoo#196 X-original-commit: 460af3f Signed-off-by: Antoine Vandevenne (anv) <[email protected]>
1 parent 4f1d255 commit 6a5bc12

8 files changed

+87
-2
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
# Odoo tutorials
22

33
This repository hosts the code for the bases of the modules used in the
4-
[official Odoo tutorials](https://www.odoo.com/documentation/lastest/developer/tutorials.html).
4+
[official Odoo tutorials](https://www.odoo.com/documentation/latest/developer/tutorials.html).
55

66
It has 3 branches for each Odoo version: one for the bases, one for the
77
[Discover the JS framework](https://www.odoo.com/documentation/latest/developer/tutorials/discover_js_framework.html)
88
tutorial's solutions, and one for the
9-
[Master the Odoo web framework](https://www.odoo.com/documentation/lastest/developer/tutorials/master_odoo_web_framework.html)
9+
[Master the Odoo web framework](https://www.odoo.com/documentation/latest/developer/tutorials/master_odoo_web_framework.html)
1010
tutorial's solutions. For example, `17.0`, `17.0-discover-js-framework-solutions` and
1111
`17.0-master-odoo-web-framework-solutions`.

estate/Security/ir.model.access.csv

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
id,name,model_id/id,group_id/id,perm_read,perm_write,perm_create,perm_unlink
2+
access_estate_property,estate.property,model_estate_property,base.group_user,1,1,1,1

estate/__init__.py

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
from . import models

estate/__manifest__.py

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"name": "estate",
3+
"application" : True,
4+
'data' : ["Security/ir.model.access.csv",
5+
"views/estate_property_views.xml",
6+
"views/estate_menus.xml"
7+
],
8+
"depends" : [ 'base_setup']
9+
}

estate/models/__init__.py

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
from . import estate_property

estate/models/estate_property.py

+52
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
from datetime import timedelta
2+
from odoo import models,fields
3+
4+
class EstateProperty(models.Model):
5+
_name = "estate.property"
6+
_description = "Estate Property"
7+
8+
name = fields.Char(required=True)
9+
description = fields.Text()
10+
postcode = fields.Char()
11+
date_availability = fields.Date(default= lambda self: fields.Datetime.today() + timedelta(days=90), copy= False)
12+
expected_price = fields.Float(required=True)
13+
selling_price = fields.Float(readonly=True, copy = False)
14+
bedrooms = fields.Integer(default=2)
15+
living_area = fields.Integer()
16+
facades = fields.Integer()
17+
garage = fields.Boolean()
18+
garden = fields.Boolean()
19+
garden_area = fields.Integer()
20+
21+
garden_orientation = fields.Selection(
22+
string="Garden Orientation",
23+
selection=[
24+
('north', 'North'),
25+
('south','South'),
26+
('east','East'),
27+
('west','West')
28+
29+
],
30+
)
31+
32+
state = fields.Selection(
33+
string="state",
34+
selection=[
35+
('new', 'New',),
36+
('offer','Offer'),
37+
('received','Received'),
38+
('offer accepted','Offer Accepted'),
39+
('sold','Sold'),
40+
('cancelled','Cancelled')
41+
42+
],
43+
default = 'new',
44+
required = True,
45+
copy = False,
46+
)
47+
48+
active = fields.Boolean(default= False)
49+
50+
51+
52+

estate/views/estate_menus.xml

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<odoo>
3+
4+
<menuitem id="test_menu_root" name="Estate">
5+
<menuitem id="test_first_level_menu" name="First Level">
6+
<menuitem id="test_model_menu_action" action="estate_property_actions"/>
7+
</menuitem>
8+
</menuitem>
9+
10+
</odoo>
+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
3+
<odoo>
4+
5+
<record id="estate_property_actions" model="ir.actions.act_window">
6+
<field name="name">Property </field>
7+
<field name="res_model">estate.property</field>
8+
<field name="view_mode">list,form</field>
9+
</record>
10+
</odoo>

0 commit comments

Comments
 (0)