Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1436 Lượt xem

Hi 
Community

I'm trying to create a record rule that allows a user to only create an invoice and register a payment.

I have created a custom module that depends on 'account.' When I create an invoice from my custom module, it is stored in 'account.move' or journal entry. Everything is okay.

It works correctly when I chose the "billing" group, but I don't wnat the accounting menu, I want to the "Operator" just see the "afp_invoice" and can create invoice and register payment

when I confirm the invoice this error shown:

Access Error You are not allowed to create 'Journal Entry' (account.move) records. This operation is allowed for the following groups: - Accounting/Billing Contact your administrator to request access if necessary.

Thank you in advance


Ảnh đại diện
Huỷ bỏ
Tác giả

<record model="ir.rule" id="user_just_create_Invoices">
<field name="name">user just create invoices</field>
<field name="model_id" ref="model_afp_invoice"/>
<field name="domain_force">[('create_uid', '=',user.id)]</field>
<field name="groups" eval="[(4, ref('group_accounting_invoice'))]"/>
</record>
this is the code I provided

Bài viết liên quan Trả lời Lượt xem Hoạt động
2
thg 1 24
3165
0
thg 1 24
1505
0
thg 12 20
2046
3
thg 12 20
3466
1
thg 9 19
4823