[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
This commit is contained in:
Denis Ledoux 2014-08-27 16:40:19 +02:00
parent f7aa1ae764
commit 6b15d3add2
1 changed files with 10 additions and 0 deletions

View File

@ -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>