Odoo Help

Welcome!

This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

0

I want Financial Manager can do create, read, update, and delete in Invoices. How will i going to do that? Thanks in advance

By
Alcaline
on 1/29/15, 5:48 AM 541 views

In m security, I have created access rules that allows the specific user to create, read, update, and delete. certain transaction. However, when I try to make transaction using that user it pop ups except_osv: (u'Access Denied', u'The requested operation cannot be completed due to security restrictions. Please contact your system administrator.\n\n(Document type: Invoice, Operation: create)')

  <record id="account_invoice_rule" model="ir.rule">
    <field name="name">Account Invoice</field>
    <field name="model_id" ref="model_account_invoice"/>
    <field name="global" eval="True"/>
    <field name="groups" eval="[(3,ref('group_pcci_supplier_invoice'))]"/>
    <field eval="1" name="perm_unlink" />
    <field eval="1" name="perm_write" />
    <field eval="1" name="perm_read" />
    <field eval="1" name="perm_create" />
</record>

 

1

Ivan

--Ivan--
3210
| 5 3 6
Jakarta, Indonesia
--Ivan--
Ivan
On 1/29/15, 11:26 PM

You can go to Settings >> Technical >> Security >> Access Control List, search for model account.invoice and see who (which groups has the accesses).  Add the group that you want to have access to the list.  If the list is not as per your need (say, Delete is not checked), then you can create a new record.

Note that aside from the Access Control List, there is Record Rules (Settings >> Technical >> Security >> Record Rules) that you need to check also.

If you want to load it from a module, usually it is loaded via a CSV file ir.model.access.csv.  You can find samples in the official addons (account addon will be a good place to start).

Hi already did this but nothing happen.. Do you have any idea?? please...

Alcaline
on 1/30/15, 12:42 AM

If the access control list and record rules are all in order, you should not be getting this error. The XML that you post in the question is incorrect. It tells OpenERP to remove group with XML ID group_pcci_supplier_invoice.

Ivan
on 1/30/15, 12:31 PM

Thanks Ivan

Alcaline
on 2/11/15, 5:23 AM

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

Asked: 1/29/15, 5:48 AM
Seen: 541 times
Last updated: 3/16/15, 8:10 AM