Skip to content
This repository has been archived by the owner on Sep 12, 2024. It is now read-only.

Commit

Permalink
Base: Added Service Provider Menu
Browse files Browse the repository at this point in the history
Signed-off-by: mkumar-02 <[email protected]>
  • Loading branch information
mkumar-02 committed May 15, 2024
1 parent 7467867 commit 9e1cf41
Show file tree
Hide file tree
Showing 5 changed files with 58 additions and 35 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,17 @@
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="generator" content="Docutils: https://docutils.sourceforge.io/" />
<meta name="generator" content="Docutils: http://docutils.sourceforge.net/" />
<title>G2P Service Provider Beneficiary Management</title>
<style type="text/css">
/*
:Author: David Goodger ([email protected])
:Id: $Id: html4css1.css 9511 2024-01-13 09:50:07Z milde $
:Id: $Id: html4css1.css 7952 2016-07-26 18:15:59Z milde $
:Copyright: This stylesheet has been placed in the public domain.

Default cascading style sheet for the HTML output of Docutils.
Despite the name, some widely supported CSS2 features are used.

See https://docutils.sourceforge.io/docs/howto/html-stylesheets.html for how to
See http://docutils.sf.net/docs/howto/html-stylesheets.html for how to
customize this style sheet.
*/

Expand Down Expand Up @@ -367,7 +366,7 @@
}

pre.code .ln {
color: gray;
color: grey;
} /* line numbers */
pre.code,
code {
Expand Down Expand Up @@ -421,8 +420,7 @@
white-space: pre;
}

span.problematic,
pre.problematic {
span.problematic {
color: red;
}

Expand Down Expand Up @@ -534,18 +532,18 @@ <h1 class="title">G2P Service Provider Beneficiary Management</h1>
<p><strong>Table of contents</strong></p>
<div class="contents local topic" id="contents">
<ul class="simple">
<li><a class="reference internal" href="#bug-tracker" id="toc-entry-1">Bug Tracker</a></li>
<li><a class="reference internal" href="#bug-tracker" id="id1">Bug Tracker</a></li>
<li>
<a class="reference internal" href="#credits" id="toc-entry-2">Credits</a>
<a class="reference internal" href="#credits" id="id2">Credits</a>
<ul>
<li><a class="reference internal" href="#authors" id="toc-entry-3">Authors</a></li>
<li><a class="reference internal" href="#maintainers" id="toc-entry-4">Maintainers</a></li>
<li><a class="reference internal" href="#authors" id="id3">Authors</a></li>
<li><a class="reference internal" href="#maintainers" id="id4">Maintainers</a></li>
</ul>
</li>
</ul>
</div>
<div class="section" id="bug-tracker">
<h1><a class="toc-backref" href="#toc-entry-1">Bug Tracker</a></h1>
<h1><a class="toc-backref" href="#id1">Bug Tracker</a></h1>
<p>
Bugs are tracked on
<a
Expand All @@ -563,15 +561,15 @@ <h1><a class="toc-backref" href="#toc-entry-1">Bug Tracker</a></h1>
<p>Do not contact contributors directly about support or help with technical issues.</p>
</div>
<div class="section" id="credits">
<h1><a class="toc-backref" href="#toc-entry-2">Credits</a></h1>
<h1><a class="toc-backref" href="#id2">Credits</a></h1>
<div class="section" id="authors">
<h2><a class="toc-backref" href="#toc-entry-3">Authors</a></h2>
<h2><a class="toc-backref" href="#id3">Authors</a></h2>
<ul class="simple">
<li>OpenG2P</li>
</ul>
</div>
<div class="section" id="maintainers">
<h2><a class="toc-backref" href="#toc-entry-4">Maintainers</a></h2>
<h2><a class="toc-backref" href="#id4">Maintainers</a></h2>
<p>
This module is part of the
<a
Expand Down
2 changes: 1 addition & 1 deletion g2p_service_provider_portal_base/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ G2P Service Provider Portal: Base
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:01fa9380a6487e6e1e19cca59cc5ab7468f5c885fe148ff28f8a47b1e0e6a082
!! source digest: sha256:0d002dbcd2b06a68cd217e55a8ec8d31192b3339196ccf5dd8de592348c26c68
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
.. |badge1| image:: https://img.shields.io/badge/maturity-Alpha-red.png
Expand Down
3 changes: 2 additions & 1 deletion g2p_service_provider_portal_base/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"website": "https://openg2p.org",
"license": "Other OSI approved licence",
"development_status": "Alpha",
"depends": ["website"],
"depends": ["account", "website"],
"data": [
"views/about_us.xml",
"views/base.xml",
Expand All @@ -16,6 +16,7 @@
"views/login.xml",
"views/profile.xml",
"views/other.xml",
"views/menu_view.xml",
],
"assets": {
"web.assets_frontend": [],
Expand Down
34 changes: 16 additions & 18 deletions g2p_service_provider_portal_base/static/description/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,17 @@
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="generator" content="Docutils: https://docutils.sourceforge.io/" />
<meta name="generator" content="Docutils: http://docutils.sourceforge.net/" />
<title>G2P Service Provider Portal: Base</title>
<style type="text/css">
/*
:Author: David Goodger ([email protected])
:Id: $Id: html4css1.css 9511 2024-01-13 09:50:07Z milde $
:Id: $Id: html4css1.css 7952 2016-07-26 18:15:59Z milde $
:Copyright: This stylesheet has been placed in the public domain.

Default cascading style sheet for the HTML output of Docutils.
Despite the name, some widely supported CSS2 features are used.

See https://docutils.sourceforge.io/docs/howto/html-stylesheets.html for how to
See http://docutils.sf.net/docs/howto/html-stylesheets.html for how to
customize this style sheet.
*/

Expand Down Expand Up @@ -367,7 +366,7 @@
}

pre.code .ln {
color: gray;
color: grey;
} /* line numbers */
pre.code,
code {
Expand Down Expand Up @@ -421,8 +420,7 @@
white-space: pre;
}

span.problematic,
pre.problematic {
span.problematic {
color: red;
}

Expand Down Expand Up @@ -504,7 +502,7 @@ <h1 class="title">G2P Service Provider Portal: Base</h1>
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:01fa9380a6487e6e1e19cca59cc5ab7468f5c885fe148ff28f8a47b1e0e6a082
!! source digest: sha256:0d002dbcd2b06a68cd217e55a8ec8d31192b3339196ccf5dd8de592348c26c68
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
<p>
<a
Expand Down Expand Up @@ -534,19 +532,19 @@ <h1 class="title">G2P Service Provider Portal: Base</h1>
<p><strong>Table of contents</strong></p>
<div class="contents local topic" id="contents">
<ul class="simple">
<li><a class="reference internal" href="#bug-tracker" id="toc-entry-1">Bug Tracker</a></li>
<li><a class="reference internal" href="#bug-tracker" id="id1">Bug Tracker</a></li>
<li>
<a class="reference internal" href="#credits" id="toc-entry-2">Credits</a>
<a class="reference internal" href="#credits" id="id2">Credits</a>
<ul>
<li><a class="reference internal" href="#authors" id="toc-entry-3">Authors</a></li>
<li><a class="reference internal" href="#contributors" id="toc-entry-4">Contributors</a></li>
<li><a class="reference internal" href="#maintainers" id="toc-entry-5">Maintainers</a></li>
<li><a class="reference internal" href="#authors" id="id3">Authors</a></li>
<li><a class="reference internal" href="#contributors" id="id4">Contributors</a></li>
<li><a class="reference internal" href="#maintainers" id="id5">Maintainers</a></li>
</ul>
</li>
</ul>
</div>
<div class="section" id="bug-tracker">
<h1><a class="toc-backref" href="#toc-entry-1">Bug Tracker</a></h1>
<h1><a class="toc-backref" href="#id1">Bug Tracker</a></h1>
<p>
Bugs are tracked on
<a
Expand All @@ -564,19 +562,19 @@ <h1><a class="toc-backref" href="#toc-entry-1">Bug Tracker</a></h1>
<p>Do not contact contributors directly about support or help with technical issues.</p>
</div>
<div class="section" id="credits">
<h1><a class="toc-backref" href="#toc-entry-2">Credits</a></h1>
<h1><a class="toc-backref" href="#id2">Credits</a></h1>
<div class="section" id="authors">
<h2><a class="toc-backref" href="#toc-entry-3">Authors</a></h2>
<h2><a class="toc-backref" href="#id3">Authors</a></h2>
<ul class="simple">
<li>OpenG2P</li>
</ul>
</div>
<div class="section" id="contributors">
<h2><a class="toc-backref" href="#toc-entry-4">Contributors</a></h2>
<h2><a class="toc-backref" href="#id4">Contributors</a></h2>
<p><cite>Manoj Kumar &lt;mkumar6&#64;ch.iitr.ac.in&gt;</cite></p>
</div>
<div class="section" id="maintainers">
<h2><a class="toc-backref" href="#toc-entry-5">Maintainers</a></h2>
<h2><a class="toc-backref" href="#id5">Maintainers</a></h2>
<p>
This module is part of the
<a
Expand Down
26 changes: 26 additions & 0 deletions g2p_service_provider_portal_base/views/menu_view.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<odoo>
<!-- Action Name -->
<record id="account.res_partner_action_supplier" model="ir.actions.act_window">
<field name="name">Service Provider</field>
</record>

<!-- Search View -->
<record id="res_partner_view_search_g2p_inherit" model="ir.ui.view">
<field name="name">res.partner.search.inherit</field>
<field name="model">res.partner</field>
<field name="inherit_id" ref="account.res_partner_view_search" />
<field name="arch" type="xml">
<filter name="supplier" position="attributes">
<attribute name="string">Service Provider</attribute>
</filter>
</field>
</record>

<menuitem
id="menu_account_supplier"
name="Service Provider"
action="account.res_partner_action_supplier"
groups="g2p_registry_base.group_g2p_admin"
sequence="5"
/>
</odoo>

0 comments on commit 9e1cf41

Please sign in to comment.