-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3420ff9
commit 570985a
Showing
8 changed files
with
124 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,31 @@ | ||
.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg | ||
:alt: License LGPL-3 | ||
|
||
============ | ||
RMA Readonly | ||
============ | ||
|
||
This module defines a RMA readonly group for users that just need access | ||
without actual changes in RMAs | ||
|
||
Bug Tracker | ||
=========== | ||
|
||
Bugs are tracked on `GitHub Issues | ||
<https://github.com/Eficent/stock-rma/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 | ||
------------ | ||
|
||
* Aaron Henriquez <[email protected]> | ||
|
||
|
||
Maintainer | ||
---------- | ||
|
||
This module is maintained by ForgeFlow |
Empty file.
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,16 @@ | ||
{ | ||
"name": "RMA Readonly", | ||
"version": "15.0.1.0.0", | ||
"license": "LGPL-3", | ||
"category": "RMA", | ||
"summary": "RMA readonly access", | ||
"author": "ForgeFlow", | ||
"website": "https://github.com/ForgeFlow/stock-rma", | ||
"depends": ["rma"], | ||
"data": [ | ||
"security/rma.xml", | ||
"security/ir.model.access.csv", | ||
"views/rma_menus.xml", | ||
], | ||
"installable": True, | ||
} |
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,6 @@ | ||
id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink | ||
access_rma_user_customer,rma.order.customer.user,rma.model_rma_order,rma_readonly.group_rma_readonly,1,0,0,0 | ||
access_rma_line_customer_user,rma.order.line.customer.user,rma.model_rma_order_line,rma_readonly.group_rma_readonly,1,0,0,0 | ||
access_rma_operation_customer_user,access_rma_operation,rma.model_rma_operation,rma_readonly.group_rma_readonly,1,0,0,0 | ||
access_rma_operation_supplier_user,access_rma_operation,rma.model_rma_operation,rma_readonly.group_rma_readonly,1,0,0,0 | ||
access_rma_order_line_user,access_rma_order_line,rma.model_rma_order_line,rma_readonly.group_rma_readonly,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,10 @@ | ||
<?xml version="1.0" ?> | ||
<odoo noupdate="0"> | ||
|
||
<record id="group_rma_readonly" model="res.groups"> | ||
<field name="name">RMA Readonly</field> | ||
<field name="implied_ids" eval="[(4, ref('stock.group_stock_user'))]" /> | ||
<field name="category_id" ref="rma.module_category_rma" /> | ||
</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,54 @@ | ||
<?xml version="1.0" encoding="UTF-8" ?> | ||
<odoo> | ||
|
||
<menuitem | ||
id="rma.menu_rma_root" | ||
name="RMA" | ||
groups="rma.group_rma_customer_user,rma.group_rma_supplier_user,rma.group_rma_manager,rma_readonly.group_rma_readonly" | ||
web_icon="rma,static/description/icon.png" | ||
sequence="100" | ||
/> | ||
|
||
<!-- Customer RMA --> | ||
<menuitem | ||
id="rma.menu_customer_rma" | ||
name="Customer RMA" | ||
groups="rma.group_rma_customer_user,rma.group_rma_supplier_user,rma_readonly.group_rma_readonly" | ||
sequence="30" | ||
parent="rma.menu_rma_root" | ||
/> | ||
|
||
<menuitem | ||
id="rma.menu_rma_line_customer" | ||
sequence="20" | ||
parent="rma.menu_customer_rma" | ||
groups="rma.group_rma_customer_user,rma_readonly.group_rma_readonly" | ||
action="rma.action_rma_customer_lines" | ||
/> | ||
|
||
<!-- Supplier RMA --> | ||
<menuitem | ||
id="rma.menu_supplier_rma" | ||
name="Supplier RMA" | ||
groups="rma.group_rma_customer_user,rma.group_rma_supplier_user,rma_readonly.group_rma_readonly" | ||
sequence="31" | ||
parent="rma.menu_rma_root" | ||
/> | ||
|
||
<menuitem | ||
id="rma.menu_rma_act_supplier" | ||
sequence="50" | ||
parent="rma.menu_supplier_rma" | ||
groups="rma.group_rma_groups,rma_readonly.group_rma_readonly" | ||
action="rma.action_rma_supplier" | ||
/> | ||
|
||
<menuitem | ||
id="rma.menu_rma_line_supplier" | ||
sequence="20" | ||
parent="rma.menu_supplier_rma" | ||
groups="rma.group_rma_supplier_user,rma_readonly.group_rma_readonly" | ||
action="rma.action_rma_supplier_lines" | ||
/> | ||
|
||
</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 @@ | ||
../../../../rma_readonly |
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,6 @@ | ||
import setuptools | ||
|
||
setuptools.setup( | ||
setup_requires=['setuptools-odoo'], | ||
odoo_addon=True, | ||
) |