diff --git a/rma_account/__manifest__.py b/rma_account/__manifest__.py index dfd00108..52ef3732 100644 --- a/rma_account/__manifest__.py +++ b/rma_account/__manifest__.py @@ -12,6 +12,7 @@ 'depends': ['account', 'rma'], 'demo': ['demo/rma_operation.xml'], 'data': [ + 'security/ir.model.access.csv', 'views/rma_order_view.xml', 'views/rma_operation_view.xml', 'views/rma_order_line_view.xml', @@ -21,5 +22,5 @@ 'wizards/rma_refund.xml', ], 'installable': True, - 'auto_install': True, + 'auto_install': False, } diff --git a/rma_account/models/rma_order_line.py b/rma_account/models/rma_order_line.py index dc1eb29e..4cc4ee82 100644 --- a/rma_account/models/rma_order_line.py +++ b/rma_account/models/rma_order_line.py @@ -1,7 +1,7 @@ # © 2017 Eficent Business and IT Consulting Services S.L. # License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl.html) -from odoo import _, api, fields, models +from odoo import api, fields, models, _ from odoo.exceptions import ValidationError, UserError from odoo.addons import decimal_precision as dp diff --git a/rma_account/security/ir.model.access.csv b/rma_account/security/ir.model.access.csv new file mode 100755 index 00000000..b6fa0d93 --- /dev/null +++ b/rma_account/security/ir.model.access.csv @@ -0,0 +1,3 @@ +id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink +access_account_invoice_customer_user,access_account_invoice,account.model_account_invoice,rma.group_rma_customer_user,1,0,0,0 +access_account_invoice_supplier_user,access_account_invoice,account.model_account_invoice,rma.group_rma_supplier_user,1,0,0,0 diff --git a/rma_account/views/rma_order_line_view.xml b/rma_account/views/rma_order_line_view.xml index 883559ce..8389265e 100644 --- a/rma_account/views/rma_order_line_view.xml +++ b/rma_account/views/rma_order_line_view.xml @@ -33,34 +33,10 @@ - - - - - rma.order.line.form - rma.order.line - - - - - - - + + + + @@ -108,15 +84,4 @@ - - rma.order.line.select - rma.order.line - - - - - - - diff --git a/rma_account/wizards/rma_add_invoice.xml b/rma_account/wizards/rma_add_invoice.xml index c0d9e412..0ecb13ab 100644 --- a/rma_account/wizards/rma_add_invoice.xml +++ b/rma_account/wizards/rma_add_invoice.xml @@ -1,4 +1,4 @@ - + diff --git a/rma_account/wizards/rma_refund.xml b/rma_account/wizards/rma_refund.xml index df4c548a..52285b66 100644 --- a/rma_account/wizards/rma_refund.xml +++ b/rma_account/wizards/rma_refund.xml @@ -1,4 +1,4 @@ - + rma.refund.form