5 changed files with 168 additions and 0 deletions
-
72base_contact_readonly/README.rst
-
3base_contact_readonly/__init__.py
-
18base_contact_readonly/__openerp__.py
-
BINbase_contact_readonly/static/description/icon.png
-
75base_contact_readonly/views/res_partner_views.xml
@ -0,0 +1,72 @@ |
|||
.. 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 |
|||
|
|||
===================== |
|||
Readonly Address Book |
|||
===================== |
|||
|
|||
This module prevent user to create, update and/or delete partner data |
|||
through *Messaging -> Organizer -> Contacts* menu. |
|||
|
|||
Installation |
|||
============ |
|||
|
|||
To install this module, you need to: |
|||
|
|||
1. Clone the branch 8.0 of the repository https://github.com/OCA/partner-contact |
|||
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 *Readonly Address Book* |
|||
6. Install the module |
|||
|
|||
Usage |
|||
===== |
|||
|
|||
When this module is installed, user will not be able to create, update or delete partner |
|||
data through *Messaging -> Organizer -> Contacts* menu. Partner data can be create, update and/or delete |
|||
trough other partner menu, such as: *Accounting -> Customer -> Customers*, or *Accounting -> Supplier -> Suppliers*, |
|||
or *Sales -> Sales -> Customers*, or *Purchases -> Purchase -> Suppliers* |
|||
|
|||
|
|||
.. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas |
|||
:alt: Try me on Runbot |
|||
:target: https://runbot.odoo-community.org/runbot/134/8.0 |
|||
|
|||
|
|||
Bug Tracker |
|||
=========== |
|||
|
|||
Bugs are tracked on `GitHub Issues |
|||
<https://github.com/OCA/partner-contact/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 |
|||
======= |
|||
|
|||
Images |
|||
------ |
|||
|
|||
* Odoo Community Association: `Icon <https://github.com/OCA/maintainer-tools/blob/master/template/module/static/description/icon.svg>`_. |
|||
|
|||
Contributors |
|||
------------ |
|||
|
|||
* Andhitia Rama <andhitia.r@gmail.com> |
|||
|
|||
Maintainer |
|||
---------- |
|||
|
|||
.. image:: https://odoo-community.org/logo.png |
|||
:alt: Odoo Community Association |
|||
:target: https://odoo-community.org |
|||
|
|||
This module is maintained by the OCA. |
|||
|
|||
OCA, or the Odoo Community Association, is a nonprofit organization whose |
|||
mission is to support the collaborative development of Odoo features and |
|||
promote its widespread use. |
|||
|
|||
To contribute to this module, please visit https://odoo-community.org. |
@ -0,0 +1,3 @@ |
|||
# -*- coding: utf-8 -*- |
|||
# Copyright 2016 OpenSynergy Indonesia |
|||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). |
@ -0,0 +1,18 @@ |
|||
# -*- coding: utf-8 -*- |
|||
# Copyright 2016 OpenSynergy Indonesia |
|||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). |
|||
{ |
|||
"name": "Readonly Address Book", |
|||
"version": "8.0.1.0.0", |
|||
"category": "Base", |
|||
"website": "https://opensynergy-indonesia.com/", |
|||
"author": "OpenSynergy Indonesia, Odoo Community Association (OCA)", |
|||
"license": "AGPL-3", |
|||
"installable": True, |
|||
"depends": [ |
|||
"contacts", |
|||
], |
|||
"data": [ |
|||
"views/res_partner_views.xml", |
|||
], |
|||
} |
After Width: 128 | Height: 128 | Size: 9.2 KiB |
@ -0,0 +1,75 @@ |
|||
<?xml version="1.0" encoding="utf-8"?> |
|||
<!-- Copyright 2016 OpenSynergy Indonesia |
|||
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). --> |
|||
|
|||
<openerp> |
|||
<data> |
|||
|
|||
<record id="res_partner_view_tree" model="ir.ui.view"> |
|||
<field name="name">Read Only res.partner tree</field> |
|||
<field name="model">res.partner</field> |
|||
<field name="mode">primary</field> |
|||
<field name="priority" eval="100"/> |
|||
<field name="inherit_id" ref="base.view_partner_tree"/> |
|||
<field name="arch" type="xml"> |
|||
<xpath expr="//tree" position="attributes"> |
|||
<attribute name="create">false</attribute> |
|||
<attribute name="edit">false</attribute> |
|||
<attribute name="delete">false</attribute> |
|||
</xpath> |
|||
</field> |
|||
</record> |
|||
|
|||
<record id="contacts.action_contacts_view_tree" model="ir.actions.act_window.view"> |
|||
<field name="sequence" eval="1"/> |
|||
<field name="view_mode">tree</field> |
|||
<field name="view_id" ref="res_partner_view_tree"/> |
|||
<field name="act_window_id" ref="contacts.action_contacts"/> |
|||
</record> |
|||
|
|||
<record id="res_partner_view_form" model="ir.ui.view"> |
|||
<field name="name">Read Only res.partner form</field> |
|||
<field name="model">res.partner</field> |
|||
<field name="mode">primary</field> |
|||
<field name="priority" eval="100"/> |
|||
<field name="inherit_id" ref="base.view_partner_form"/> |
|||
<field name="arch" type="xml"> |
|||
<xpath expr="//form" position="attributes"> |
|||
<attribute name="create">false</attribute> |
|||
<attribute name="edit">false</attribute> |
|||
<attribute name="delete">false</attribute> |
|||
</xpath> |
|||
</field> |
|||
</record> |
|||
|
|||
<record id="contacts.action_contacts_view_form" model="ir.actions.act_window.view"> |
|||
<field eval="2" name="sequence"/> |
|||
<field name="view_mode">form</field> |
|||
<field name="view_id" ref="res_partner_view_form"/> |
|||
<field name="act_window_id" ref="contacts.action_contacts"/> |
|||
</record> |
|||
|
|||
<record id="res_partner_view_kanban" model="ir.ui.view"> |
|||
<field name="name">Read Only res.partner kanban</field> |
|||
<field name="priority" eval="100"/> |
|||
<field name="model">res.partner</field> |
|||
<field name="mode">primary</field> |
|||
<field name="inherit_id" ref="base.res_partner_kanban_view"/> |
|||
<field name="arch" type="xml"> |
|||
<xpath expr="//kanban" position="attributes"> |
|||
<attribute name="create">false</attribute> |
|||
<attribute name="edit">false</attribute> |
|||
<attribute name="delete">false</attribute> |
|||
</xpath> |
|||
</field> |
|||
</record> |
|||
|
|||
<record id="contacts.action_contacts_view_kanban" model="ir.actions.act_window.view"> |
|||
<field eval="0" name="sequence"/> |
|||
<field name="view_mode">kanban</field> |
|||
<field name="view_id" ref="res_partner_view_kanban"/> |
|||
<field name="act_window_id" ref="contacts.action_contacts"/> |
|||
</record> |
|||
|
|||
</data> |
|||
</openerp> |
Write
Preview
Loading…
Cancel
Save
Reference in new issue