We would like to make the "no item found" screens more appealing.
Before this commit, it shows a small help tip in the top-left
corner of the screen, just below the "Create" button.
With this commit, these help tips have been replaced by onboarding
screens, which consist of a picture and some text below, both of which
are horizontally centered.
The texts have been slightly changed, so that they are shorter and clearer.
Considered modules:
(A)
account,
account_asset,
account_budget,
account_test,
account_voucher,
analytic
(B)
barcodes,
base,
base_automation,
board
(C)
calendar,
contacts,
crm
(D)
delivery
(E)
event
(F)
fleet
(G)
gamification,
google_drive
(H)
hr,
hr_attendance,
hr_contract,
hr_expense,
hr_gamification,
hr_holidays,
hr_payroll,
hr_recruitment,
hr_timesheet
(I)
im_livechat
(L)
l10n_fr_sale_closing,
link_tracker,
lunch
(M)
mail,
maintenance,
mass_mailing,
membership,
mrp
(N)
note
(P)
payment,
point_of_sale,
post_mercury,
pos_restaurant,
product,
project,
purchase,
purchase_requisition
(R)
rating,
repair,
resource
(S)
sale,
sale_timesheet,
sales_team,
stock,
stock_account,
stock_landed_costs,
stock_picking_batch,
survey
(U)
utm
(W)
web,
website,
website_blog,
website_customer,
website_event_track,
website_forum,
website_quote,
website_sale,
website_sale_digital,
website_slides
82 lines
4.2 KiB
XML
82 lines
4.2 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<odoo>
|
|
<record id="action_invoice_pending" model="ir.actions.act_window">
|
|
<field name="name">Vendor Bills</field>
|
|
<field name="res_model">account.invoice</field>
|
|
<field name="view_type">form</field>
|
|
<field name="view_mode">tree,kanban,form,calendar,pivot,graph</field>
|
|
<field eval="False" name="view_id"/>
|
|
<field name="domain">[('type','=','in_invoice')]</field>
|
|
<field name="context">{'default_type':'in_invoice', 'type':'in_invoice', 'journal_type': 'purchase'}</field>
|
|
<field name="search_view_id" ref="account.view_account_invoice_filter"/>
|
|
<field name="help" type="html">
|
|
<p class="o_view_nocontent_smiling_face">
|
|
Create a vendor bill
|
|
</p><p>
|
|
Use this menu to control the invoices to be received from your
|
|
vendors. When registering a new bill, set the purchase order
|
|
and Odoo will fill the bill automatically according to ordered
|
|
or received quantities.
|
|
</p>
|
|
</field>
|
|
</record>
|
|
|
|
<record id="purchase_open_invoice" model="ir.actions.act_window">
|
|
<field name="name">Vendor Bills</field>
|
|
<field name="res_model">account.invoice</field>
|
|
<field name="view_type">form</field>
|
|
<field name="view_mode">tree,kanban,form,calendar,pivot,graph</field>
|
|
<field eval="False" name="view_id"/>
|
|
<field name="domain">[('type','in',('in_invoice', 'in_refund')),('purchase_id','=',active_id)]</field>
|
|
<field name="context">{'default_type': 'in_invoice', 'type': 'in_invoice', 'journal_type': 'purchase', 'default_purchase_id': active_id}</field>
|
|
<field name="search_view_id" ref="account.view_account_invoice_filter"/>
|
|
<field name="help" type="html">
|
|
<p class="o_view_nocontent_smiling_face">
|
|
Record a vendor bill related to this purchase
|
|
</p><p>
|
|
You can control the invoice from your vendor according to
|
|
what you purchased (services) or received (products).
|
|
</p>
|
|
</field>
|
|
</record>
|
|
<record id="action_invoice_supplier_tree1_view1" model="ir.actions.act_window.view">
|
|
<field eval="1" name="sequence"/>
|
|
<field name="view_mode">tree</field>
|
|
<field name="view_id" ref="account.invoice_supplier_tree"/>
|
|
<field name="act_window_id" ref="purchase_open_invoice"/>
|
|
</record>
|
|
<record id="action_invoice__supplier_tree1_view2" model="ir.actions.act_window.view">
|
|
<field eval="2" name="sequence"/>
|
|
<field name="view_mode">form</field>
|
|
<field name="view_id" ref="account.invoice_supplier_form"/>
|
|
<field name="act_window_id" ref="purchase_open_invoice"/>
|
|
</record>
|
|
|
|
<record id="view_invoice_supplier_purchase_form" model="ir.ui.view">
|
|
<field name="name">account.invoice.supplier.purchase</field>
|
|
<field name="model">account.invoice</field>
|
|
<field name="inherit_id" ref="account.invoice_supplier_form"/>
|
|
<field name="arch" type="xml">
|
|
<field name="reference" position="after" >
|
|
<field name="purchase_id" attrs="{'readonly': [('state','not in',['draft'])], 'invisible': [('state', '=', 'purchase')]}" class="oe_edit_only"
|
|
options="{'no_create': True}" context="{'show_total_amount': True}"/>
|
|
</field>
|
|
<xpath expr="//field[@name='invoice_line_ids']/tree/field[@name='company_id']" position="after">
|
|
<field name="purchase_line_id" invisible="1" readonly="0"/>
|
|
<field name="purchase_id" invisible="1" readonly="0"/>
|
|
</xpath>
|
|
</field>
|
|
</record>
|
|
|
|
<record id="view_invoice_line_form_inherit_purchase" model="ir.ui.view">
|
|
<field name="name">account.invoice.line.form.inherit.purchase</field>
|
|
<field name="model">account.invoice.line</field>
|
|
<field name="inherit_id" ref="account.view_invoice_line_form"/>
|
|
<field name="arch" type="xml">
|
|
<field name="account_id" position="before">
|
|
<field name="purchase_id" invisible="context.get('type') in ('out_invoice', 'out_refund')"/>
|
|
</field>
|
|
</field>
|
|
</record>
|
|
</odoo>
|