diff options
| author | Azka Nathan <darizkyfaz@gmail.com> | 2025-05-23 14:20:57 +0700 |
|---|---|---|
| committer | Azka Nathan <darizkyfaz@gmail.com> | 2025-05-23 14:20:57 +0700 |
| commit | ca3455a3054e2953fb8b274ba5a4e65abcf3d257 (patch) | |
| tree | c3dca3015cfbb4efaf4de4e2463db8fe8bd12d6e /fixco_custom/views | |
| parent | e38dcc63819f47ce32d52494a6b7277441c6c66a (diff) | |
Note Development
Diffstat (limited to 'fixco_custom/views')
| -rw-r--r-- | fixco_custom/views/barcoding_product.xml | 78 | ||||
| -rw-r--r-- | fixco_custom/views/product_product.xml | 17 | ||||
| -rw-r--r-- | fixco_custom/views/sale_order.xml | 3 | ||||
| -rw-r--r-- | fixco_custom/views/stock_picking.xml | 47 |
4 files changed, 145 insertions, 0 deletions
diff --git a/fixco_custom/views/barcoding_product.xml b/fixco_custom/views/barcoding_product.xml new file mode 100644 index 0000000..b259f1e --- /dev/null +++ b/fixco_custom/views/barcoding_product.xml @@ -0,0 +1,78 @@ +<?xml version="1.0" encoding="UTF-8"?> +<odoo> + <data> + <record id="barcoding_product_tree" model="ir.ui.view"> + <field name="name">barcoding.product.tree</field> + <field name="model">barcoding.product</field> + <field name="arch" type="xml"> + <tree default_order="create_date desc"> + <field name="product_id"/> + <field name="quantity"/> + <field name="type"/> + </tree> + </field> + </record> + + <record id="barcoding_product_line_tree" model="ir.ui.view"> + <field name="name">barcoding.product.line.tree</field> + <field name="model">barcoding.product.line</field> + <field name="arch" type="xml"> + <tree> + <field name="product_id"/> + <field name="qr_code_variant" widget="image"/> + <field name="sequence_with_total" attrs="{'invisible': [['parent.type', 'not in', ('multiparts')]]}"/> + </tree> + </field> + </record> + + <record id="barcoding_product_form" model="ir.ui.view"> + <field name="name">barcoding.product.form</field> + <field name="model">barcoding.product</field> + <field name="arch" type="xml"> + <form > + <sheet> + <group> + <group> + <field name="product_id" required="1"/> + <field name="type" required="1"/> + <field name="quantity" attrs="{'invisible': [['type', 'in', ('barcoding','barcoding_box')]], 'required': [['type', 'not in', ('barcoding')]]}"/> + <field name="barcode" attrs="{'invisible': [['type', 'in', ('print','multiparts')]], 'required': [['type', 'not in', ('print','multiparts')]]}"/> + <field name="qty_pcs_box" attrs="{'invisible': [['type', 'in', ('print','barcoding','multiparts')]], 'required': [['type', 'not in', ('print','barcoding','multiparts')]]}"/> + </group> + </group> + <notebook> + <page string="Line" attrs="{'invisible': [['type', 'in', ('barcoding','barcoding_box')]]}"> + <field name="barcoding_product_line"/> + </page> + </notebook> + </sheet> + </form> + </field> + </record> + + <record id="barcoding_product_view_search" model="ir.ui.view"> + <field name="name">barcoding.product.search.view</field> + <field name="model">barcoding.product</field> + <field name="arch" type="xml"> + <search string="Search Barcoding Product"> + <field name="product_id"/> + </search> + </field> + </record> + + <record id="barcoding_product_action" model="ir.actions.act_window"> + <field name="name">Barcoding Product</field> + <field name="type">ir.actions.act_window</field> + <field name="res_model">barcoding.product</field> + <field name="view_mode">tree,form</field> + </record> + + <menuitem + id="menu_barcoding_product" + name="Barcoding Product" + parent="stock.menu_stock_warehouse_mgmt" + sequence="4" + action="barcoding_product_action" + /> + </data> +</odoo> diff --git a/fixco_custom/views/product_product.xml b/fixco_custom/views/product_product.xml new file mode 100644 index 0000000..2db7c31 --- /dev/null +++ b/fixco_custom/views/product_product.xml @@ -0,0 +1,17 @@ +<?xml version="1.0" encoding="UTF-8" ?> +<odoo> + <data> + <record id="product_normal_form_view_inherit" model="ir.ui.view"> + <field name="name">Product Template</field> + <field name="model">product.product</field> + <field name="inherit_id" ref="product.product_normal_form_view"/> + <field name="arch" type="xml"> + <field name="categ_id" position="after"> + <field name="barcode_box" /> + <field name="qty_pcs_box" /> + <field name="qr_code_variant" widget="image" readonly="True"/> + </field> + </field> + </record> + </data> +</odoo> diff --git a/fixco_custom/views/sale_order.xml b/fixco_custom/views/sale_order.xml index 5a6bcbf..cbcbdc2 100644 --- a/fixco_custom/views/sale_order.xml +++ b/fixco_custom/views/sale_order.xml @@ -9,6 +9,9 @@ <field name="tag_ids" position="after"> <field name="carrier_id"/> </field> + <field name="client_order_ref" position="after"> + <field name="order_reference"/> + </field> </field> </record> </data> diff --git a/fixco_custom/views/stock_picking.xml b/fixco_custom/views/stock_picking.xml new file mode 100644 index 0000000..17ed3e0 --- /dev/null +++ b/fixco_custom/views/stock_picking.xml @@ -0,0 +1,47 @@ +<?xml version="1.0" encoding="UTF-8" ?> +<odoo> + <data> + <record id="stock_picking_form_view_inherit" model="ir.ui.view"> + <field name="name">Stock Picking</field> + <field name="model">stock.picking</field> + <field name="inherit_id" ref="stock.view_picking_form"/> + <field name="arch" type="xml"> + <button name="action_confirm" position="before"> + <button name="label_ginee" + string="Print Label Ginee" + type="object" + /> + </button> + + <group name="other_infos" position="after"> + <group string="Shipping Information" name="shipping_infos"> + <field name="order_reference" readonly="1"/> + <field name="provider_name" readonly="1"/> + <field name="tracking_number" readonly="1"/> + <field name="invoice_number" readonly="1"/> + <field name="pdf_label_url" readonly="1" widget="url"/> + </group> + </group> + + <page name="note" position="after"> + <page string="Check Product" name="check_product"> + <field name="check_product_lines"/> + </page> + </page> + </field> + </record> + + <record id="check_product_tree" model="ir.ui.view"> + <field name="name">check.product.tree</field> + <field name="model">check.product</field> + <field name="arch" type="xml"> + <tree editable="bottom" decoration-warning="status == 'Pending'" decoration-success="status == 'Done'"> + <field name="code_product"/> + <field name="product_id"/> + <field name="quantity"/> + <field name="status" readonly="1"/> + </tree> + </field> + </record> + </data> +</odoo>
\ No newline at end of file |
