-
Notifications
You must be signed in to change notification settings - Fork 114
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[IMP] t9n: add tab in the menu to list available projects.
This commit adds a tab in the menu bar that lists the available projects. Also, the form view of the project is configured to have two tabs: one for resources and the other one for the description of the project. Also, some security permissions have been included in the manifest file.
- Loading branch information
1 parent
84c8850
commit 94c93c0
Showing
9 changed files
with
78 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,6 @@ | ||
id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink | ||
access_t9n_project_system,t9n.project.system,t9n.model_t9n_project,base.group_system,1,1,1,1 | ||
access_t9n_language_system,t9n.language.system,t9n.model_t9n_language,base.group_system,1,1,1,1 | ||
access_t9n_message_system,t9n.message.system,t9n.model_t9n_message,base.group_system,1,1,1,1 | ||
access_t9n_resource_system,t9n.resource.system,t9n.model_t9n_resource,base.group_system,1,1,1,1 | ||
access_t9n_translation_system,t9n.translation.system,t9n.model_t9n_translation,base.group_system,1,1,1,1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<?xml version="1.0"?> | ||
<odoo> | ||
<record id="t9n.open_app" model="ir.actions.client"> | ||
<field name="name">Translate</field> | ||
<field name="tag">t9n.open_app</field> | ||
<field name="target">main</field> | ||
</record> | ||
<menuitem id="t9n.menu_root" name="Translations" action="t9n.open_app"/> | ||
<menuitem id="t9n.project_menu" name="Projects" action="t9n.project_action" parent="t9n.menu_root"/> | ||
</odoo> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
<?xml version="1.0"?> | ||
<odoo> | ||
<record id="t9n.project_action" model="ir.actions.act_window"> | ||
<field name="name">Projects</field> | ||
<field name="res_model">t9n.project</field> | ||
<field name="view_mode">tree,form</field> | ||
</record> | ||
|
||
<record id="t9n.project_view_form" model="ir.ui.view"> | ||
<field name="name">t9n.project.form</field> | ||
<field name="model">t9n.project</field> | ||
<field name="arch" type="xml"> | ||
<form> | ||
<sheet> | ||
<h1> | ||
<field name="name"/> | ||
</h1> | ||
<notebook> | ||
<page string="Resources"> | ||
<field name="resource_ids"/> | ||
</page> | ||
<page string="Description"> | ||
<group> | ||
<group> | ||
<field name="src_lang_id" domain="[('id', 'not in', target_lang_ids)]"/> | ||
<field name="target_lang_ids" domain="[('id', '!=', src_lang_id)]"/> | ||
</group> | ||
</group> | ||
</page> | ||
</notebook> | ||
</sheet> | ||
</form> | ||
</field> | ||
</record> | ||
</odoo> |
This file was deleted.
Oops, something went wrong.