Skip to content
Open

y80 #141

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Empty file added 78
Empty file.
1 change: 0 additions & 1 deletion oca_dependencies.txt
Original file line number Diff line number Diff line change
@@ -1 +0,0 @@
instance git@github.com:Vauxoo/forecast.git
2 changes: 1 addition & 1 deletion openacademy/i18n/es.po
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ msgid "Contacts"
msgstr "Contactos"

#. module: openacademy
#: view:openacademy.course:openacademy.course_tree_view
#: view:openacademy.course:openacademy.course_tree
#: field:openacademy.session,course_id:0
msgid "Course"
msgstr "Curso"
Expand Down
2 changes: 1 addition & 1 deletion openacademy/i18n/es_MX.po
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ msgid "Contacts"
msgstr "Contacts"

#. module: openacademy
#: view:openacademy.course:openacademy.course_tree_view
#: view:openacademy.course:openacademy.course_tree
#: field:openacademy.session,course_id:0
msgid "Course"
msgstr "Course"
Expand Down
2 changes: 1 addition & 1 deletion openacademy/i18n/openacademy.pot
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ msgid "Contacts"
msgstr ""

#. module: openacademy
#: view:openacademy.course:openacademy.course_tree_view
#: view:openacademy.course:openacademy.course_tree
#: field:openacademy.session,course_id:0
msgid "Course"
msgstr ""
Expand Down
4 changes: 2 additions & 2 deletions openacademy/model/openacademy_course.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ class for the openacademy course model

_name = 'openacademy.course' # Model name
# Field reserved to identify name rec
name = fields.Char(string='Title', required=True)
description = fields.Text(string='Description')
course_name = fields.Char(string='Title', required=True)
description = fields.Char(string='Description')
responsible_id = fields.Many2one('res.users',
ondelete='set null',
string="Responsible",
Expand Down
3 changes: 1 addition & 2 deletions openacademy/view/openacademy_course_view.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
<sheet>
<group>
<field name = "name"/>
<field name = "responsible_id"/>
</group>
<notebook>
<page string="description">
Expand All @@ -32,7 +31,7 @@
</field>
</record>

<record model = "ir.ui.view" id = "course_tree_view">
<record model = "ir.ui.view" id = "course_tree">
<field name = "name">course.tree.view</field>
<field name = "model">openacademy.course</field>
<field name = "arch" type = "xml">
Expand Down
6 changes: 3 additions & 3 deletions openacademy/view/partner_view.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,15 @@
</notebook>
</field>
</record>

<record model="ir.actions.act_window" id="contact_list_action">
<field name="name">Contacts</field>
<field name="res_model">res.partner</field>
<field name="view_mode">kanban,tree,form</field>
</record>
<menuitem id="configuration_menu" name="Configuration"
<menuitem id="configuration_menu_new" name="Configuration"
parent="main_openacademy_menu"/>
<menuitem id="contact_menu" name="Contacts"
<menuitem id="contact_menu" name="Contacts-second"
parent="configuration_menu"
action="contact_list_action"/>
</data>
Expand Down