Skip to content
Snippets Groups Projects
Commit 6b15d3ad authored by Denis Ledoux's avatar Denis Ledoux
Browse files

[FIX] portal_sale: portals are not allowed to see payments

Portal users are not allowed to read account.move.line model
Therefore, in the portal, if you let the payments in the invoice view, the portal user is warned that he is not allowed to see account.move.line
parent f7aa1ae7
No related branches found
No related tags found
No related merge requests found
......@@ -24,6 +24,16 @@
</field>
</record>
<record model="ir.ui.view" id="invoice_form_portal">
<field name="name">account.invoice.form.portal</field>
<field name="model">account.invoice</field>
<field name="inherit_id" ref="account.invoice_form"/>
<field name="groups_id" eval="[(4,ref('base.group_portal'))]"/>
<field name="arch" type="xml">
<field name="payment_ids" position="replace" />
</field>
</record>
<record id="view_account_invoice_filter_share" model="ir.ui.view">
<field name="name">account.invoice.select.share</field>
<field name="model">account.invoice</field>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment