Skip to content

Commit

Permalink
Merge pull request OCA#263 from TelmoSenseFly/BSSFL-352
Browse files Browse the repository at this point in the history
[BSSFL-352] Group allow reset rma
  • Loading branch information
LoicSenseFly committed Dec 12, 2017
2 parents 0aa2c81 + f86669b commit 874926e
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 1 deletion.
2 changes: 2 additions & 0 deletions HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ latest (unreleased)

**Features and Improvements**

* BSSFL-352: Add security group to reset RMAs

**Bugfixes**

**Build**
Expand Down
11 changes: 11 additions & 0 deletions odoo/local-src/sf_rma/security/rma_security.xml
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,15 @@
<field name="users" eval="[(4, ref('base.user_root'))]"/>
</record>

<record id="module_category_technical_rma" model="ir.module.category">
<field name="name">Technical RMA</field>
<field name="sequence">3</field>
<field name="visible" eval="1" />
</record>

<record id="group_reset_rma" model="res.groups">
<field name="name">Allow to reset RMA</field>
<field name="category_id" ref="module_category_technical_rma"/>
</record>

</odoo>
2 changes: 1 addition & 1 deletion odoo/local-src/sf_rma/views/rma.xml
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
<button name="action_open" type="object" string="Open" class="oe_highlight" states="draft"/>
<button name="action_close" type="object" string="Close" states="draft"/>
<button name="action_close" type="object" string="Close" class="oe_highlight" states="open"/>
<button name="action_reset" type="object" string="Reset" states="open,closed,canceled"/>
<button name="action_reset" type="object" string="Reset" states="canceled" groups="sf_rma.group_reset_rma"/>
<button name="action_cancel" type="object" string="Cancel" states="draft,open"/>
<field name="state" widget="statusbar"/>
</header>
Expand Down

0 comments on commit 874926e

Please sign in to comment.