-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Copied PBMS modules from other repos
Signed-off-by: Lalith Kota <[email protected]>
- Loading branch information
1 parent
36265df
commit 97e4cf3
Showing
358 changed files
with
24,356 additions
and
20 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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# OpenG2P Formio | ||
|
||
Refer to https://docs.openg2p.org. |
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,2 @@ | ||
from . import models | ||
from . import wizard |
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,24 @@ | ||
# Part of OpenG2P. See LICENSE file for full copyright and licensing details. | ||
{ | ||
"name": "OpenG2P Formio", | ||
"category": "G2P", | ||
"version": "17.0.0.0.0", | ||
"sequence": 1, | ||
"summary": "Form builders allow you to create, manage, and use dynamic forms with ease.", | ||
"author": "OpenG2P", | ||
"website": "https://openg2p.org", | ||
"license": "LGPL-3.0", | ||
"depends": ["formio", "g2p_programs", "formio_storage_filestore"], | ||
"data": [ | ||
"views/formio_builder.xml", | ||
"views/program_view.xml", | ||
"wizard/g2p_self_service_program_view_wizard.xml", | ||
], | ||
"external_dependencies": {"python": ["formio-data"]}, | ||
"assets": {}, | ||
"demo": [], | ||
"images": [], | ||
"application": True, | ||
"installable": True, | ||
"auto_install": False, | ||
} |
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 @@ | ||
from . import program |
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,9 @@ | ||
from odoo import fields, models | ||
|
||
|
||
class G2PProgram(models.Model): | ||
_inherit = "g2p.program" | ||
|
||
self_service_portal_form = fields.Many2one("formio.builder", string="Program Form") | ||
|
||
is_multiple_form_submission = fields.Boolean(default=False) |
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,3 @@ | ||
[build-system] | ||
requires = ["whool"] | ||
build-backend = "whool.buildapi" |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,72 @@ | ||
<odoo> | ||
<record id="program_formio_builder_form" model="ir.ui.view"> | ||
<field name="name">program_formio_builder_form</field> | ||
<field name="model">formio.builder</field> | ||
<field name="inherit_id" ref="formio.view_formio_builder_form" /> | ||
<field name="priority" eval="100" /> | ||
<field name="arch" type="xml"> | ||
|
||
<xpath expr="//page[@name='actions_api']" position="replace" /> | ||
<!-- <xpath expr="//page[@name='extra_assets']" position="replace" /> --> | ||
<xpath expr="//page[@name='form_display_settings']" position="replace" /> | ||
<xpath expr="//page[@name='form_permissions']" position="replace" /> | ||
<xpath expr="//page[@name='portal_settings']" position="replace" /> | ||
<xpath expr="//page[@name='public_settings']" position="replace" /> | ||
<xpath expr="//page[@name='formio_components_api']" position="attributes"> | ||
<attribute name="invisible">1</attribute> | ||
</xpath> | ||
<xpath expr="//group[@name='integration_settings']" position="attributes"> | ||
<attribute name="invisible">1</attribute> | ||
</xpath> | ||
<xpath expr="//group[@name='publish_settings']" position="attributes"> | ||
<attribute name="invisible">1</attribute> | ||
</xpath> | ||
<xpath expr="//group[@name='other_settings']" position="attributes"> | ||
<attribute name="invisible">1</attribute> | ||
</xpath> | ||
<!-- <xpath expr="//group[@name='formiojs_settings']" position="attributes"> | ||
<attribute name="invisible">1</attribute> | ||
</xpath> --> | ||
</field> | ||
</record> | ||
|
||
<record id="program_formio_builder_tree" model="ir.ui.view"> | ||
<field name="name">program_formio_builder_tree</field> | ||
<field name="model">formio.builder</field> | ||
<field name="inherit_id" ref="formio.view_formio_builder_tree" /> | ||
<field name="arch" type="xml"> | ||
<data> | ||
<field name="public" position="attributes"> | ||
<attribute name="column_invisible">1</attribute> | ||
</field> | ||
<field name="formio_res_model_id" position="attributes"> | ||
<attribute name="column_invisible">1</attribute> | ||
</field>record | ||
<field name="portal" position="attributes"> | ||
<attribute name="column_invisible">1</attribute> | ||
</field> | ||
<field name="formio_version_id" position="attributes"> | ||
<attribute name="column_invisible">1</attribute> | ||
</field> | ||
</data> | ||
</field> | ||
</record> | ||
|
||
<menuitem | ||
id="formio.menu_formio_form" | ||
name="Forms" | ||
parent="formio.menu_formio_root" | ||
sequence="70" | ||
action="formio.action_formio_form" | ||
active="false" | ||
/> | ||
<!-- <menuitem | ||
id="formio.menu_formio_extra_asset" | ||
name="Extra Assets" | ||
parent="formio.menu_formio_configuration" | ||
sequence="50" | ||
action="formio.action_formio_extra_asset" | ||
active="false" | ||
/> --> | ||
|
||
</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,20 @@ | ||
<!-- | ||
Part of OpenG2P. See LICENSE file for full copyright and licensing details. | ||
--> | ||
<odoo> | ||
<record id="self_service_portal_form" model="ir.ui.view"> | ||
<field name="name">self.service.portal.form</field> | ||
<field name="model">g2p.program</field> | ||
<field name="inherit_id" ref="g2p_programs.view_program_list_form" /> | ||
<field name="arch" type="xml"> | ||
<xpath expr="//notebook" position="inside"> | ||
<page string="Portal Form"> | ||
<group> | ||
<field name="is_multiple_form_submission" /> | ||
<field name="self_service_portal_form" /> | ||
</group> | ||
</page> | ||
</xpath> | ||
</field> | ||
</record> | ||
</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,3 @@ | ||
# Part of OpenG2P. See LICENSE file for full copyright and licensing details. | ||
|
||
from . import program_form_mapping_wizard |
21 changes: 21 additions & 0 deletions
21
g2p_formio/wizard/g2p_self_service_program_view_wizard.xml
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,21 @@ | ||
<?xml version="1.0" encoding="UTF-8" ?> | ||
<!-- | ||
Part of OpenG2P. See LICENSE file for full copyright and licensing details. | ||
--> | ||
<odoo> | ||
<record id="self_service_create_wizard_form" model="ir.ui.view"> | ||
<field name="name">self.service.create.wizard.form</field> | ||
<field name="model">g2p.program.create.wizard</field> | ||
<field name="inherit_id" ref="g2p_programs.create_program_wizard_form_view" /> | ||
<field name="arch" type="xml"> | ||
<xpath expr="//notebook" position="inside"> | ||
<page string="Portal Form"> | ||
<group> | ||
<field name="is_multiple_form_submission" /> | ||
<field name="self_service_portal_form" /> | ||
</group> | ||
</page> | ||
</xpath> | ||
</field> | ||
</record> | ||
</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,24 @@ | ||
# Part of OpenG2P. See LICENSE file for full copyright and licensing details. | ||
|
||
from odoo import fields, models | ||
|
||
|
||
class G2PCreateProgramWizard(models.TransientModel): | ||
_inherit = "g2p.program.create.wizard" | ||
|
||
self_service_portal_form = fields.Many2one("formio.builder", string="Program Form") | ||
|
||
is_multiple_form_submission = fields.Boolean(default=False) | ||
|
||
def create_program(self): | ||
res = super(G2PCreateProgramWizard, self).create_program() | ||
|
||
program = self.env["g2p.program"].browse(res["res_id"]) | ||
portal_form = self.self_service_portal_form | ||
|
||
if portal_form: | ||
program.self_service_portal_form = portal_form | ||
|
||
program.is_multiple_form_submission = self.is_multiple_form_submission | ||
|
||
return res |
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,3 @@ | ||
# G2P MIS Importer | ||
|
||
Refer to https://docs.openg2p.org. |
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,2 @@ | ||
# Part of Newlogic G2P. See LICENSE file for full copyright and licensing details. | ||
from . import models |
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,19 @@ | ||
# Part of openG2P. See LICENSE file for full copyright and licensing details. | ||
|
||
{ | ||
"name": "G2P MIS Importer", | ||
"category": "G2P", | ||
"version": "17.0.0.0.0", | ||
"author": "OpenG2P", | ||
"website": "https://openg2p.org", | ||
"license": "LGPL-3.0", | ||
"depends": ["g2p_programs", "queue_job"], | ||
"data": [ | ||
"security/ir.model.access.csv", | ||
"views/mis_config_views.xml", | ||
"views/mis_menu.xml", | ||
], | ||
"application": True, | ||
"installable": True, | ||
"auto_install": False, | ||
} |
Oops, something went wrong.