Initial commit: Odoo 18.0-20251222 extra-addons
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

This commit is contained in:
tocmo0nlord
2026-03-13 20:43:25 +00:00
parent 36e847a7df
commit adbe430761
9472 changed files with 1265727 additions and 0 deletions

View File

@@ -0,0 +1,60 @@
<?xml version="1.0" encoding="utf-8" ?>
<odoo>
<record id="view_move_picking_form" model="ir.ui.view">
<field name="name">stock.move.form.invoice_state</field>
<field name="model">stock.move</field>
<field name="inherit_id" ref="stock.view_move_form" />
<field name="arch" type="xml">
<field name="date_deadline" position="after">
<field name="invoice_state" groups="account.group_account_invoice" />
<field name="invoice_state" invisible="1" />
</field>
<group name="linked_group" position="after">
<group
name="invoice_lines"
string="Invoicing"
colspan="4"
groups="base.group_no_one"
invisible="invoice_state in [False, 'none']"
>
<field name="invoice_line_ids" readonly="1" nolabel="1" />
</group>
</group>
</field>
</record>
<record id="view_move_form_inherit" model="ir.ui.view">
<field name="name">stock.move.form.inherit</field>
<field name="model">stock.move</field>
<field name="inherit_id" ref="stock_picking_invoice_link.view_move_form" />
<field name="arch" type="xml">
<field name="date" position="after">
<field name="invoice_state" groups="account.group_account_invoice" />
<field name="invoice_state" invisible="1" />
</field>
<field name="invoice_line_ids" position="attributes">
<attribute name="invisible">invoice_state in [False, 'none']</attribute>
</field>
</field>
</record>
<record id="view_move_tree" model="ir.ui.view">
<field name="name">stock.move.list (in stock_picking_invoicing)</field>
<field name="model">stock.move</field>
<field name="inherit_id" ref="stock.view_move_tree" />
<field name="arch" type="xml">
<field name="state" position="before">
<field name="invoice_state" groups="account.group_account_invoice" />
</field>
</field>
</record>
<!--List view used into stock.picking form view-->
<record id="view_picking_move_tree" model="ir.ui.view">
<field name="name">stock.move.list (in stock_picking_invoicing)</field>
<field name="model">stock.move</field>
<field name="inherit_id" ref="stock.view_picking_move_tree" />
<field name="arch" type="xml">
<field name="state" position="before">
<field name="invoice_state" groups="account.group_account_invoice" />
</field>
</field>
</record>
</odoo>

View File

@@ -0,0 +1,37 @@
<?xml version="1.0" encoding="utf-8" ?>
<odoo>
<record id="2binvoiced_action_picking_dashboard" model="ir.actions.act_window">
<field name="name">Picking to Invoice</field>
<field name="type">ir.actions.act_window</field>
<field name="res_model">stock.picking</field>
<field name="view_mode">list,form</field>
<field name="view_id" eval="False" />
<field
name="domain"
>[('state', '!=', 'cancel'), ('picking_type_id', '=', active_id),
('invoice_state', '=', '2binvoiced')]</field>
<field name="context">{'default_picking_type_id': active_id}</field>
</record>
<record id="stock_picking_type_kanban" model="ir.ui.view">
<field name="name">stock.picking.type.kanban</field>
<field name="model">stock.picking.type</field>
<field name="inherit_id" ref="stock.stock_picking_type_kanban" />
<field name="arch" type="xml">
<field name="code" position="after">
<field name="count_picking_2binvoiced" />
</field>
<xpath expr="//div[hasclass('stock-overview-links')]" position="inside">
<div t-if="record.count_picking_2binvoiced.raw_value > 0" class="row">
<div class="col-9">
<a name="%(2binvoiced_action_picking_dashboard)d" type="action">
To be Invoiced
</a>
</div>
<div class="col-3">
<field name="count_picking_2binvoiced" />
</div>
</div>
</xpath>
</field>
</record>
</odoo>

View File

@@ -0,0 +1,109 @@
<?xml version="1.0" encoding="utf-8" ?>
<odoo>
<record id="view_picking_inherit_tree2" model="ir.ui.view">
<field name="name">stock.picking.list.inherit</field>
<field name="model">stock.picking</field>
<field name="inherit_id" ref="stock.vpicktree" />
<field name="arch" type="xml">
<field name="backorder_id" position="after">
<field name="invoice_state" groups="account.group_account_invoice" />
</field>
</field>
</record>
<record id="view_picking_invoicing_internal_search" model="ir.ui.view">
<field name="name">stock.picking.search.inherit</field>
<field name="model">stock.picking</field>
<field name="inherit_id" ref="stock.view_picking_internal_search" />
<field name="arch" type="xml">
<field name="product_id" position="before">
<filter
name="picking_to_invoice"
string="Shipments to Invoice"
domain="[('invoice_state', '=', '2binvoiced')]"
/>
</field>
</field>
</record>
<record id="view_picking_form" model="ir.ui.view">
<field name="name">stock.picking.form.inherit</field>
<field name="model">stock.picking</field>
<field name="inherit_id" ref="stock_picking_invoice_link.view_picking_form" />
<field name="arch" type="xml">
<notebook position="inside">
<page
string="Invoicing"
name="page_invoicing"
groups="account.group_account_invoice"
invisible="invoice_state in [False, 'none']"
>
<field name="invoice_ids">
<list>
<field name="partner_id" />
<field name="name" />
<field name="ref" />
<field name="invoice_date" />
<field name="state" />
<field name="amount_untaxed" sum="True" />
<field name="amount_tax" />
<field name="amount_total" sum="True" />
</list>
</field>
</page>
</notebook>
<field name="move_ids_without_package" position="attributes">
<attribute name="context" operation="update">
{
'default_invoice_state': invoice_state,
}
</attribute>
</field>
<field name="move_type" position="before">
<field name="invoice_state" groups="account.group_account_invoice" />
<field name="invoice_state" invisible="1" />
</field>
<xpath
expr="//field[@name='move_ids_without_package']/list/field[@name='product_id']"
position="after"
>
<field name="invoice_state" groups="account.group_account_invoice" />
<field name="invoice_state" column_invisible="True" />
<field
name="price_unit"
invisible="invoice_state == 'none'"
readonly="invoice_state == 'invoiced'"
optional="hide"
/>
</xpath>
<button name="%(stock.act_stock_return_picking)d" position="after">
<button
name="%(action_stock_invoice_onshipping)d"
string="Create Invoice"
invisible="state != 'done' or invoice_state != '2binvoiced'"
type="action"
class="oe_highlight"
groups="base.group_user"
/>
<button
name="set_to_be_invoiced"
type="object"
string="Set to be invoiced"
invisible="invoice_state not in ('invoiced', 'none') or True in invoice_ids or state == 'cancel'"
/>
<button
name="set_as_invoiced"
type="object"
string="Set to as invoiced"
invisible="invoice_state not in ('2binvoiced', 'none') or True in invoice_ids or state == 'cancel'"
/>
<button
name="set_as_not_billable"
type="object"
string="Set to Not Billable"
invisible="invoice_state not in ('invoiced', '2binvoiced') or True in invoice_ids or state == 'cancel'"
/>
</button>
</field>
</record>
</odoo>