mirror of
https://github.com/bringout/oca-ocb-sale.git
synced 2026-04-27 18:32:08 +02:00
19.0 vanilla
This commit is contained in:
parent
79f83631d5
commit
73afc09215
6267 changed files with 1534193 additions and 1130106 deletions
|
|
@ -2,10 +2,10 @@
|
|||
<odoo>
|
||||
|
||||
<record id="view_order_line_tree" model="ir.ui.view">
|
||||
<field name="name">sale.order.line.tree</field>
|
||||
<field name="name">sale.order.line.list</field>
|
||||
<field name="model">sale.order.line</field>
|
||||
<field name="arch" type="xml">
|
||||
<tree string="Sales Order Lines" create="false">
|
||||
<list string="Sales Order Lines" create="false">
|
||||
<field name="order_id"/>
|
||||
<field name="order_partner_id"/>
|
||||
<field name="name"/>
|
||||
|
|
@ -14,10 +14,10 @@
|
|||
<field name="qty_delivered"/>
|
||||
<field name="qty_invoiced"/>
|
||||
<field name="qty_to_invoice"/>
|
||||
<field name="product_uom" string="Unit of Measure" groups="uom.group_uom"/>
|
||||
<field name="product_uom_id" groups="uom.group_uom" widget="many2one_uom"/>
|
||||
<field name="price_subtotal" sum="Total" widget="monetary"/>
|
||||
<field name="currency_id" invisible="1"/>
|
||||
</tree>
|
||||
<field name="currency_id" column_invisible="True"/>
|
||||
</list>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
|
|
@ -25,34 +25,58 @@
|
|||
<field name="name">sale.order.line.form.readonly</field>
|
||||
<field name="model">sale.order.line</field>
|
||||
<field name="arch" type="xml">
|
||||
<form string="Sales Order Item">
|
||||
<form string="Sales Order Item" edit="false">
|
||||
<field name="display_type" invisible="1"/>
|
||||
<sheet>
|
||||
<div class="oe_title">
|
||||
<h1>
|
||||
<field name="display_name" readonly="1"/>
|
||||
<field name="display_name"/>
|
||||
</h1>
|
||||
</div>
|
||||
<group>
|
||||
<group>
|
||||
<field name="order_id" readonly="1"/>
|
||||
<field name="product_id" readonly="1"/>
|
||||
<field name="name" readonly="1"/>
|
||||
<field name="product_uom_qty" readonly="1"/>
|
||||
<field name="qty_delivered" readonly="1"/>
|
||||
<field name="qty_invoiced"/>
|
||||
<field name="product_uom" readonly="1"/>
|
||||
<field name="order_id" readonly="1" force_save="1"/>
|
||||
<field name="product_id"
|
||||
readonly="id and not product_updatable"
|
||||
required="not display_type"
|
||||
force_save="1"
|
||||
widget="many2one_barcode"/>
|
||||
<field name="name"/>
|
||||
<field name="product_uom_qty"/>
|
||||
<field name="qty_delivered"
|
||||
invisible="state not in ['sale', 'done']"
|
||||
readonly="qty_delivered_method != 'manual'"/>
|
||||
<field name="qty_invoiced" invisible="state not in ['sale', 'done']"/>
|
||||
<field name="product_uom_id"
|
||||
force_save="1"
|
||||
groups="uom.group_uom"
|
||||
widget="many2one_uom"
|
||||
readonly="product_uom_readonly"
|
||||
required="not display_type"/>
|
||||
<field name="company_id" options="{'no_create': True}" groups="base.group_multi_company"/>
|
||||
<field name="order_partner_id" invisible="1"/>
|
||||
<field name="display_type" invisible="1"/>
|
||||
<field name="product_updatable" invisible="1"/>
|
||||
</group>
|
||||
<group>
|
||||
<field name="price_unit" readonly="1"/>
|
||||
<field name="discount" groups="product.group_discount_per_so_line" readonly="1"/>
|
||||
<field name="price_subtotal" widget="monetary"/>
|
||||
<field name="tax_id" widget="many2many_tags" readonly="1"/>
|
||||
<field name="price_unit"/>
|
||||
<field name="technical_price_unit" invisible="1"/>
|
||||
<field name="discount" groups="sale.group_discount_per_so_line"/>
|
||||
<field name="price_subtotal"
|
||||
string="Amount"
|
||||
widget="monetary"
|
||||
invisible="company_price_include == 'tax_included'"
|
||||
/>
|
||||
<field name="price_total"
|
||||
string="Amount"
|
||||
widget="monetary"
|
||||
invisible="company_price_include == 'tax_excluded'"
|
||||
/>
|
||||
<field name="tax_ids"
|
||||
widget="many2many_tax_tags"
|
||||
options="{'no_create': True}"
|
||||
context="{'search_view_ref': 'account.account_tax_view_search'}"
|
||||
domain="[('type_tax_use', '=', 'sale'), ('company_id', '=', company_id), ('country_id', '=', tax_country_id)]"
|
||||
readonly="qty_invoiced > 0"/>
|
||||
<field name="price_tax" widget="monetary"/>
|
||||
<field name="price_total" widget="monetary"/>
|
||||
<field name="currency_id" invisible="1"/>
|
||||
</group>
|
||||
</group>
|
||||
|
|
@ -79,10 +103,10 @@
|
|||
<field name="order_partner_id" operator="child_of"/>
|
||||
<field name="product_id"/>
|
||||
<field name="salesman_id"/>
|
||||
<group expand="0" string="Group By">
|
||||
<filter string="Product" name="product" domain="[]" context="{'group_by':'product_id'}"/>
|
||||
<filter string="Order" name="order" domain="[]" context="{'group_by':'order_id'}"/>
|
||||
<filter string="Salesperson" name="salesperson" domain="[]" context="{'group_by':'salesman_id'}"/>
|
||||
<group>
|
||||
<filter string="Product" name="product" context="{'group_by':'product_id'}"/>
|
||||
<filter string="Order" name="order" context="{'group_by':'order_id'}"/>
|
||||
<filter string="Salesperson" name="salesperson" context="{'group_by':'salesman_id'}"/>
|
||||
</group>
|
||||
</search>
|
||||
</field>
|
||||
|
|
@ -94,14 +118,8 @@
|
|||
<field name="arch" type="xml">
|
||||
<kanban class="o_kanban_mobile">
|
||||
<templates>
|
||||
<t t-name="kanban-box">
|
||||
<div class="oe_kanban_content oe_kanban_global_click">
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
<field name="display_name"/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<t t-name="card">
|
||||
<field name="display_name"/>
|
||||
</t>
|
||||
</templates>
|
||||
</kanban>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue