Skip to content
This repository has been archived by the owner on Oct 16, 2023. It is now read-only.

Commit

Permalink
[IMP] set invoice_date required on account.invoice, by view
Browse files Browse the repository at this point in the history
  • Loading branch information
legalsylvain committed Nov 29, 2018
1 parent 9d21cdd commit cadad84
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 0 deletions.
1 change: 1 addition & 0 deletions grap_change_views/__openerp__.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@
'views/view_sale_order.xml',
'views/view_stock_inventory.xml',
'views/view_stock_inventory_line.xml',
'views/view_stock_invoice_onshipping.xml',
'views/view_stock_location.xml',
'views/view_stock_move.xml',
'views/view_stock_picking.xml',
Expand Down
3 changes: 3 additions & 0 deletions grap_change_views/views/view_account_invoice.xml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
<field name="account_id" position="attributes">
<attribute name="groups">account.group_account_manager</attribute>
</field>
<field name="date_invoice" position="attributes">
<attribute name="required">1</attribute>
</field>
<xpath expr="//field[@name='invoice_line']/tree/field[@name='account_id']" position="attributes">
<attribute name="groups">account.group_account_manager</attribute>
</xpath>
Expand Down
20 changes: 20 additions & 0 deletions grap_change_views/views/view_stock_invoice_onshipping.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright (C) 2013-Today GRAP (http://www.grap.coop)
@author: Sylvain LE GAL (https://twitter.com/legalsylvain)
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
-->

<openerp><data>

<record id="view_stock_invoice_onshipping_form" model="ir.ui.view">
<field name="model">stock.invoice.onshipping</field>
<field name="inherit_id" ref="stock_account.view_stock_invoice_onshipping"/>
<field name="arch" type="xml">
<field name="invoice_date" position="attributes">
<attribute name="required">1</attribute>
</field>
</field>
</record>

</data></openerp>

0 comments on commit cadad84

Please sign in to comment.