Files
Odoo-18.0-20251222/stock_picking_invoicing/wizards/stock_invoice_onshipping_view.xml
tocmo0nlord adbe430761
Some checks failed
pre-commit / pre-commit (push) Has been cancelled
tests / Detect unreleased dependencies (push) Has been cancelled
tests / test with OCB (push) Has been cancelled
tests / test with Odoo (push) Has been cancelled
Initial commit: Odoo 18.0-20251222 extra-addons
2026-03-13 20:43:25 +00:00

50 lines
2.0 KiB
XML

<?xml version="1.0" encoding="utf-8" ?>
<odoo>
<record id="view_stock_invoice_onshipping" model="ir.ui.view">
<field name="name">Stock Invoice Onshipping</field>
<field name="model">stock.invoice.onshipping</field>
<field name="arch" type="xml">
<form string="Create invoice">
<h1>
<field name="journal_type" readonly="1" />
</h1>
<group>
<field name="show_sale_journal" invisible="1" />
<field name="show_purchase_journal" invisible="1" />
<field
name="sale_journal"
invisible="not show_sale_journal"
required="show_sale_journal"
/>
<field
name="purchase_journal"
invisible="not show_purchase_journal"
required="show_purchase_journal"
/>
<field name="group" />
<field name="invoice_date" />
</group>
<footer>
<button
name="action_generate"
string="Create"
type="object"
class="oe_highlight"
/>
or
<button string="Cancel" class="oe_link" special="cancel" />
</footer>
</form>
</field>
</record>
<record id="action_stock_invoice_onshipping" model="ir.actions.act_window">
<field name="name">Create Draft Invoices</field>
<field name="type">ir.actions.act_window</field>
<field name="res_model">stock.invoice.onshipping</field>
<field name="binding_model_id" ref="stock.model_stock_picking" />
<field name="view_id" ref="view_stock_invoice_onshipping" />
<field name="binding_view_types">list,form</field>
<field name="target">new</field>
</record>
</odoo>