-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by andhit-r
- Loading branch information
Showing
11 changed files
with
203 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg | ||
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html | ||
:alt: License: AGPL-3 | ||
|
||
============================================= | ||
Company Partner's Public Offering Information | ||
============================================= | ||
|
||
|
||
Installation | ||
============ | ||
|
||
To install this module, you need to: | ||
|
||
1. Clone the branch 14.0 of the repository https://github.com/open-synergy/ssi-partner | ||
2. Add the path to this repository in your configuration (addons-path) | ||
3. Update the module list | ||
4. Go to menu *Setting -> Modules -> Local Modules* | ||
5. Search For *Company Partner's Public Offering Information* | ||
6. Install the module | ||
|
||
Bug Tracker | ||
=========== | ||
|
||
Bugs are tracked on `GitHub Issues | ||
<https://github.com/open-synergy/ssi-partner/issues>`_. | ||
In case of trouble, please check there if your issue has already been reported. | ||
If you spotted it first, help us smashing it by providing a detailed | ||
and welcomed feedback. | ||
|
||
|
||
Credits | ||
======= | ||
|
||
Contributors | ||
------------ | ||
|
||
* Michael Viriyananda <viriyananda.michael@gmail.com> | ||
* Andhitia Rama <andhitia.r@gmail.com> | ||
|
||
Maintainer | ||
---------- | ||
|
||
.. image:: https://simetri-sinergi.id/logo.png | ||
:alt: PT. Simetri Sinergi Indonesia | ||
:target: https://simetri-sinergi.id.com | ||
|
||
This module is maintained by the PT. Simetri Sinergi Indonesia. |
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,5 @@ | ||
# Copyright 2024 OpenSynergy Indonesia | ||
# Copyright 2024 PT. Simetri Sinergi Indonesia | ||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). | ||
|
||
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,23 @@ | ||
# Copyright 2023 OpenSynergy Indonesia | ||
# Copyright 2023 PT. Simetri Sinergi Indonesia | ||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). | ||
{ | ||
"name": "Company Partner's Public Offering Information", | ||
"version": "14.0.1.0.0", | ||
"website": "https://simetri-sinergi.id", | ||
"author": "PT. Simetri Sinergi Indonesia, OpenSynergy Indonesia", | ||
"license": "AGPL-3", | ||
"installable": True, | ||
"application": False, | ||
"depends": [ | ||
"ssi_master_data_mixin", | ||
"ssi_partner", | ||
], | ||
"data": [ | ||
"security/res_group_data.xml", | ||
"security/ir.model.access.csv", | ||
"views/company_public_offering_type_views.xml", | ||
"views/res_partner_views.xml", | ||
], | ||
"demo": [], | ||
} |
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,8 @@ | ||
# Copyright 2024 OpenSynergy Indonesia | ||
# Copyright 2024 PT. Simetri Sinergi Indonesia | ||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). | ||
|
||
from . import ( | ||
company_public_offering_type, | ||
res_partner, | ||
) |
11 changes: 11 additions & 0 deletions
11
ssi_partner_public_offering/models/company_public_offering_type.py
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,11 @@ | ||
# Copyright 2023 OpenSynergy Indonesia | ||
# Copyright 2023 PT. Simetri Sinergi Indonesia | ||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). | ||
|
||
from odoo import models | ||
|
||
|
||
class CompanyPublicOfferingType(models.Model): | ||
_name = "company_public_offering_type" | ||
_inherit = ["mixin.master_data"] | ||
_description = "Company Public Offering Type" |
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 @@ | ||
# Copyright 2024 OpenSynergy Indonesia | ||
# Copyright 2024 PT. Simetri Sinergi Indonesia | ||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). | ||
|
||
|
||
from odoo import fields, models | ||
|
||
|
||
class ResPartner(models.Model): | ||
_name = "res.partner" | ||
_inherit = "res.partner" | ||
|
||
public_offering_ids = fields.Many2many( | ||
string="Public Offering", | ||
comodel_name="company_public_offering_type", | ||
relation="rel_res_partner_2_public_offering_type", | ||
column1="partner_id", | ||
column2="public_offering_type_id", | ||
) |
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 @@ | ||
id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink | ||
access_company_public_offering_type_configurator,company_public_offering_type - configurator,model_company_public_offering_type,contact_public_offering_type_configurator_group,1,1,1,1 | ||
access_company_public_offering_type_all,company_public_offering_type - all,model_company_public_offering_type,,1,0,0,0 |
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,14 @@ | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
<!-- Copyright 2022 OpenSynergy Indonesia | ||
Copyright 2022 PT. Simetri Sinergi Indonesia | ||
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). --> | ||
<odoo> | ||
<record id="contact_public_offering_type_configurator_group" model="res.groups"> | ||
<field name="name">Public Offering Types</field> | ||
<field name="category_id" ref="ssi_partner.partner_configurator_module_category" /> | ||
<field | ||
name="users" | ||
eval="[(4, ref('base.user_root')), (4, ref('base.user_admin'))]" | ||
/> | ||
</record> | ||
</odoo> |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
59 changes: 59 additions & 0 deletions
59
ssi_partner_public_offering/views/company_public_offering_type_views.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,59 @@ | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
<!-- Copyright 2022 OpenSynergy Indonesia | ||
Copyright 2022 PT. Simetri Sinergi Indonesia | ||
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). --> | ||
<odoo> | ||
<record id="company_public_offering_type_view_search" model="ir.ui.view"> | ||
<field name="name">company_public_offering_type - search</field> | ||
<field name="model">company_public_offering_type</field> | ||
<field | ||
name="inherit_id" | ||
ref="ssi_master_data_mixin.mixin_master_data_view_search" | ||
/> | ||
<field name="mode">primary</field> | ||
<field name="arch" type="xml"> | ||
<data> | ||
</data> | ||
</field> | ||
</record> | ||
|
||
<record id="company_public_offering_type_view_tree" model="ir.ui.view"> | ||
<field name="name">company_public_offering_type - tree</field> | ||
<field name="model">company_public_offering_type</field> | ||
<field name="inherit_id" ref="ssi_master_data_mixin.mixin_master_data_view_tree" /> | ||
<field name="mode">primary</field> | ||
<field name="arch" type="xml"> | ||
<data> | ||
</data> | ||
</field> | ||
</record> | ||
|
||
<record id="company_public_offering_type_view_form" model="ir.ui.view"> | ||
<field name="name">company_public_offering_type - form</field> | ||
<field name="model">company_public_offering_type</field> | ||
<field name="priority">100</field> | ||
<field name="inherit_id" ref="ssi_master_data_mixin.mixin_master_data_view_form" /> | ||
<field name="mode">primary</field> | ||
<field name="arch" type="xml"> | ||
<data> | ||
</data> | ||
</field> | ||
</record> | ||
|
||
<record id="company_public_offering_type_action" model="ir.actions.act_window"> | ||
<field name="name">Public Offering Types</field> | ||
<field name="type">ir.actions.act_window</field> | ||
<field name="res_model">company_public_offering_type</field> | ||
<field name="view_mode">tree,form</field> | ||
</record> | ||
|
||
<menuitem | ||
id="company_public_offering_type_menu" | ||
name="Public Offering Types" | ||
parent="ssi_partner.res_partner_menu_config" | ||
groups="contact_public_offering_type_configurator_group" | ||
action="company_public_offering_type_action" | ||
sequence="1" | ||
/> | ||
|
||
</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,13 @@ | ||
<?xml version="1.0" encoding="UTF-8" ?> | ||
<odoo> | ||
<record model="ir.ui.view" id="res_partner_view_form"> | ||
<field name="name">res.partner form - Creditor Debtor</field> | ||
<field name="model">res.partner</field> | ||
<field name="inherit_id" ref="ssi_partner.res_partner_view_form" /> | ||
<field name="arch" type="xml"> | ||
<xpath expr="//group[@name='company_information_1']" position="inside"> | ||
<field name="public_offering_ids" widget="many2many_tags" /> | ||
</xpath> | ||
</field> | ||
</record> | ||
</odoo> |