Skip to content

Commit f903a14

Browse files
committed
file templates , run configrations and framework integration plus new project template
1 parent bf7165d commit f903a14

29 files changed

+686
-88
lines changed

CHANGELOG.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
1-
v1.0.1 First Implementation
2-
3-
Odoo Live Templates
1+
v1.0.1 Odoo Live Templates
2+
v1.1.1 Create New Odoo Files (Model - View - Manifest)

FireOdoo.jar

13.4 KB
Binary file not shown.

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ Odoo is a suite of open source business apps that cover all your company needs:
6565
<h4>Current Features</h4>
6666
<ul>
6767
<li>Collection of code snippets for Odoo</li>
68+
<li>Create New Odoo Files in New Menu (Model - View - Manifest)</li>
6869
<li>Create new projects from the IDE Welcome screen using Odoo CLI or built-in template for Odoo</li>
6970
</ul>
7071
<h4>Coming Soon Features (In Progress)</h4>

gen/icons/OdooIcons.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,6 @@ private static Icon load(String path) {
1010
}
1111

1212
public static final Icon Odoo = load("/icons/odoo.png");
13+
public static final Icon OdooIcon = load("/icons/odoo_small.png");
1314
public static final Icon FireBits = load("/icons/firebits.png");
1415
}

out/production/FireOdoo/META-INF/plugin.xml

Lines changed: 88 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -5,43 +5,73 @@
55
<vendor email="[email protected]" url="http://www.firebits.net">FireBits</vendor>
66
<description>
77
<![CDATA[
8-
<p>Support for developing <a href="https://www.odoo.com">Odoo</a> applications and modules with IntelliJ IDEA and PyCharm.</p>
8+
<p>
9+
This <a href="https://plugins.jetbrains.com/plugin/12952-odoo/">Odoo-Intellij Plugin</a> Adds Support for developing
10+
<a href="https://www.odoo.com">Odoo</a> applications and modules with <a href="https://www.jetbrains.com/idea/">IntelliJ IDEA </a>
11+
and <a href="https://www.jetbrains.com/pycharm/">PyCharm</a> IDEs.
12+
</p>
13+
14+
<p></p>
15+
<h3>Plugin Dependencies</h3>
16+
<p>
17+
Installing this plugin will also install the <a href="https://plugins.jetbrains.com/plugin/631-python"> Python plugin </a> if it is not already installed in your IDE.
18+
</p>
19+
20+
<p></p>
21+
<h3>Download plugin</h3>
22+
23+
<p><a href="https://github.com/firebitsnetwork/odoo-intellij/releases/download/master/FireOdoo.jar">Download Plugin JAR</a></p>
24+
<p><a href="https://plugins.jetbrains.com/plugin/12952-odoo/">Download Plugin From JetBrains's Store</a></p>
925
1026
<p></p>
1127
28+
<h2>What is Odoo?</h2>
29+
1230
<p>
13-
Odoo is an all-in-one business software including CRM, website/e-commerce, billing, accounting, manufacturing,
14-
warehouse - and project management, and inventory .. etc.
15-
Installing this plugin will also install the Python plugin if it does not exist.
31+
Odoo is a suite of open source business apps that cover all your company needs:
1632
</p>
1733
34+
<ul>
35+
<li>CRM</li>
36+
<li>Website / eCommerce</li>
37+
<li>Accounting</li>
38+
<li>Inventory</li>
39+
<li>Manufacturing</li>
40+
<li>Point of sale</li>
41+
<li>Project management</li>
42+
<li>etc</li>
43+
</ul>
44+
45+
<p></p>
46+
1847
<h3>Supported Odoo Versions</h3>
1948
<p>Download Odoo from <a href="https://www.odoo.com/page/download">here</a></p>
2049
21-
<ul>
22-
<li><a href="https://www.odoo.com/documentation/12.0/">Odoo 12</a></li>
23-
<li><a href="https://www.odoo.com/documentation/11.0/">Odoo 11</a></li>
24-
</ul>
50+
[![Hex.pm](https://img.shields.io/badge/Odoo-v12-blue)](https://www.odoo.com/documentation/12.0/)
51+
[![Hex.pm](https://img.shields.io/badge/Odoo-v11-blue)](https://www.odoo.com/documentation/11.0/)
2552
2653
<h2>Getting started</h2>
2754
<ul>
2855
<li>Open your Odoo project.</li>
2956
<li>Make sure that you have Python files in your project (for example, in the __manifest__.py and __init__.py files) – this is required for the IDE to enable Odoo support for this project.</li>
3057
<li>Now, you will get Odoo-specific code completion, navigation, and many other features.</li>
3158
</ul>
32-
<h2>Current Features</h2>
59+
<h2>Plugin Features</h2>
60+
<h4>Current Features</h4>
3361
<ul>
3462
<li>Collection of code snippets for Odoo</li>
3563
<li>Create new projects from the IDE Welcome screen using Odoo CLI or built-in template for Odoo</li>
3664
</ul>
37-
<h3>Coming Soon Features (In Progress)</h3>
65+
<h4>Coming Soon Features (In Progress)</h4>
3866
<ul>
3967
<li>Code completion for Odoo in Python files (Soon)</li>
4068
<li>Completion for components, built-in and custom directives, and methods in templates (Soon)</li>
4169
<li>Navigation from the component, custom directives and event handlers to their definition (Soon)</li>
4270
</ul>
4371
44-
<h3>Documentation</h3>
72+
<h2>Documentation & Tutorials</h2>
73+
74+
<h4>Odoo Documentation</h4>
4575
<p>Here you can find more information on using Odoo 12.</p>
4676
4777
<ul>
@@ -53,6 +83,13 @@
5383
<p>Ask Questions On The Official Odoo <a href="https://www.odoo.com/forum/help-1">Forum</a></p>
5484
<p></p>
5585
86+
<h4>Plugin Documentation</h4>
87+
<ul>
88+
<li>Plugin <a href="https://github.com/firebitsnetwork/odoo-intellij/wiki">Wiki</a></li>
89+
</ul>
90+
91+
<p></p>
92+
5693
<h2>Help & Feedback</h2>
5794
<p>
5895
Please follow <a href="https://www.twitter.com/firebitsnetwork">@firebitsnetwork</a> for plugin updates and to share
@@ -66,9 +103,23 @@
66103
67104
<p></p>
68105
69-
<h3>Developed by</h3>
106+
<h3>Special Thanks For Contributors</h3>
107+
<ul>
108+
<li>Mohamed Magdy (<a href="https://github.com/mohamedmagdy/odoo-pycharm-templates">Live Templates</a> Feature)</li>
109+
<li>Robin Keunen (<a href="https://github.com/robinkeunen/odoo-pycharm-templates/tree/template-variables">Live Templates Variables</a> Feature)</li>
110+
</ul>
111+
112+
<p></p>
113+
114+
<h2>Developed & Maintained by</h2>
115+
![GitHub search hit counter](https://img.shields.io/github/search/firebitsnetwork/odoo-intellij/goto)
116+
![GitHub (Pre-)Release Date](https://img.shields.io/github/release-date-pre/firebitsnetwork/odoo-intellij)
117+
![GitHub contributors](https://img.shields.io/github/contributors/firebitsnetwork/odoo-intellij)
118+
![GitHub last commit](https://img.shields.io/github/last-commit/firebitsnetwork/odoo-intellij)
119+
![GitHub commit activity](https://img.shields.io/github/commit-activity/m/firebitsnetwork/odoo-intellij)
120+
121+
<p><img src="https://i.ibb.co/j4vs0x8/Logo300.png" width="100px"/></p>
70122
<p><a href="https://firebits.net">FireBits Software Solutions</a></p>
71-
<img src="https://i.ibb.co/j4vs0x8/Logo300.png" width="100px"/>
72123
73124
<h3>Social Media</h3>
74125
<p><a href="https://github.com/firebitsnetwork">Github</a></p>
@@ -86,32 +137,42 @@
86137
Odoo Live Templates
87138
</change-notes>
88139

89-
<!-- please see http://www.jetbrains.org/intellij/sdk/docs/basics/getting_started/build_number_ranges.html for description -->
90140
<idea-version since-build="173.0"/>
91141

92-
<!-- please see http://www.jetbrains.org/intellij/sdk/docs/basics/getting_started/plugin_compatibility.html
93-
on how to target different products -->
94-
<!-- uncomment to enable plugin in all products
95-
<depends>com.intellij.modules.lang</depends>
96-
-->
97-
<!-- Product and plugin compatibility requirements -->
98142
<depends>com.intellij.modules.python</depends>
99143

100144
<extensions defaultExtensionNs="com.intellij">
101-
<!-- Add your extensions here -->
145+
<framework.type implementation="net.firebits.odoo.framwork.OdooFramework"/>
146+
102147
<defaultLiveTemplatesProvider implementation="net.firebits.odoo.template.OdooLiveTemplateProvider"/>
103148
<liveTemplateContext implementation="net.firebits.odoo.template.OdooPythonContextMenu"/>
104149
<liveTemplateContext implementation="net.firebits.odoo.template.OdooXMLContextMenu"/>
105150

106-
<configurationType implementation="net.firebits.odoo.run.DemoRunConfigurationType"/>
151+
<internalFileTemplate name="OdooManifest"/>
152+
<internalFileTemplate name="OdooModel"/>
153+
<internalFileTemplate name="OdooView"/>
154+
155+
<moduleBuilder builderClass="net.firebits.odoo.project_wizard.OdooModuleBuilder" id="DEMO_STEP" order="first"/>
156+
<moduleType id="FIRE_ODOO_MOULE_TYPE" implementationClass="net.firebits.odoo.project_wizard.OdooModuleType"/>
107157
</extensions>
108158

109159
<actions>
110-
<action id="FireOdoo.OdooAction"
111-
class="net.firebits.odoo.actions.OdooGettingStartedAction"
112-
text="Odoo"
113-
description="This is just a demo"
114-
icon="OdooIcons.Odoo"/>
160+
<group id="org.intellij.sdk.action.GroupedActions" text="Odoo File" popup="true" icon="OdooIcons.OdooIcon">
161+
<add-to-group group-id="NewGroup" anchor="first"/>
162+
<action class="net.firebits.odoo.actions.CreateOdooModelAction" id="odoo_model"
163+
text="Odoo Model" description="Make a python class with odoo fields and models" icon="OdooIcons.OdooIcon">
164+
<keyboard-shortcut first-keystroke="control alt A" keymap="$default"/>
165+
<mouse-shortcut keystroke="control button3 doubleClick" keymap="$default"/>
166+
</action>
167+
<action class="net.firebits.odoo.actions.CreateOdooViewAction" id="odoo_xml"
168+
text="Odoo XML" description="Make a XML file with odoo and data tags" icon="OdooIcons.OdooIcon">
169+
<keyboard-shortcut first-keystroke="control alt Q" keymap="$default"/>
170+
</action>
171+
<action class="net.firebits.odoo.actions.CreateOdooManifestAction" id="odoo_manifest"
172+
text="Odoo Manifest" description="Make a python class with odoo manifest json object" icon="OdooIcons.OdooIcon">
173+
<keyboard-shortcut first-keystroke="control alt Z" keymap="$default"/>
174+
</action>
175+
</group>
115176
</actions>
116177

117178
</idea-plugin>
68 Bytes
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 commit comments

Comments
 (0)