summaryrefslogtreecommitdiff
path: root/fixco_custom/views
diff options
context:
space:
mode:
authorAzka Nathan <darizkyfaz@gmail.com>2025-07-22 11:11:34 +0700
committerAzka Nathan <darizkyfaz@gmail.com>2025-07-22 11:11:34 +0700
commit737d6932676242ad4aae7f7c175ea98d5b00f437 (patch)
tree0da618be66f96ccb053ddbe5a1161fc60cd7186d /fixco_custom/views
parent10e171ea5389873fea3fb13c90242b322a37a990 (diff)
odoo fixco
Diffstat (limited to 'fixco_custom/views')
-rw-r--r--fixco_custom/views/automatic_purchase.xml2
-rw-r--r--fixco_custom/views/brands_views.xml59
-rwxr-xr-xfixco_custom/views/product_product.xml2
-rw-r--r--fixco_custom/views/product_public_category.xml55
-rw-r--r--fixco_custom/views/purchasing_job.xml1
5 files changed, 119 insertions, 0 deletions
diff --git a/fixco_custom/views/automatic_purchase.xml b/fixco_custom/views/automatic_purchase.xml
index f985a54..9b0a45b 100644
--- a/fixco_custom/views/automatic_purchase.xml
+++ b/fixco_custom/views/automatic_purchase.xml
@@ -20,6 +20,8 @@
<field name="arch" type="xml">
<tree editable="bottom">
<field name="product_id"/>
+ <field name="brand_id"/>
+ <field name="product_public_category_id"/>
<field name="partner_id" required="1"/>
<field name="taxes_id" domain="[('type_tax_use','=','purchase')]"/>
<field name="qty_purchase"/>
diff --git a/fixco_custom/views/brands_views.xml b/fixco_custom/views/brands_views.xml
new file mode 100644
index 0000000..09fc75a
--- /dev/null
+++ b/fixco_custom/views/brands_views.xml
@@ -0,0 +1,59 @@
+<?xml version="1.0" encoding="utf-8"?>
+<odoo>
+ <record id="view_brands_form" model="ir.ui.view">
+ <field name="name">brands.form</field>
+ <field name="model">brands</field>
+ <field name="arch" type="xml">
+ <form string="Brand">
+ <sheet>
+ <group>
+ <field name="name"/>
+ </group>
+ <notebook>
+ <page string="Products">
+ <field name="product_ids">
+ <tree editable="bottom">
+ <field name="name"/>
+ <field name="default_code"/>
+ <field name="list_price"/>
+ </tree>
+ </field>
+ </page>
+ <page string="Categories">
+ <field name="category_ids">
+ <tree>
+ <field name="name"/>
+ </tree>
+ </field>
+ </page>
+ </notebook>
+ </sheet>
+ </form>
+ </field>
+ </record>
+
+ <record id="view_brands_tree" model="ir.ui.view">
+ <field name="name">brands.tree</field>
+ <field name="model">brands</field>
+ <field name="arch" type="xml">
+ <tree>
+ <field name="name"/>
+ </tree>
+ </field>
+ </record>
+
+ <record id="brands_action" model="ir.actions.act_window">
+ <field name="name">Brands</field>
+ <field name="type">ir.actions.act_window</field>
+ <field name="res_model">brands</field>
+ <field name="view_mode">tree,form</field>
+ </record>
+
+ <menuitem
+ id="menu_brands"
+ name="Brands"
+ parent="sale_management.menu_product_attribute_action"
+ sequence="4"
+ action="brands_action"
+ />
+</odoo> \ No newline at end of file
diff --git a/fixco_custom/views/product_product.xml b/fixco_custom/views/product_product.xml
index 6c468ba..08952b6 100755
--- a/fixco_custom/views/product_product.xml
+++ b/fixco_custom/views/product_product.xml
@@ -7,10 +7,12 @@
<field name="inherit_id" ref="product.product_normal_form_view"/>
<field name="arch" type="xml">
<field name="categ_id" position="after">
+ <field name="brand_id" />
<field name="qty_multiple" />
<field name="barcode_box" />
<field name="qty_pcs_box" />
<field name="qr_code_variant" widget="image" readonly="True"/>
+ <field name="product_public_category_id" attrs="{'required': [('brand_id', '=', 3)]}"/>
</field>
<field name="uom_po_id" position="after">
<field name="qty_multiple" />
diff --git a/fixco_custom/views/product_public_category.xml b/fixco_custom/views/product_public_category.xml
new file mode 100644
index 0000000..090321f
--- /dev/null
+++ b/fixco_custom/views/product_public_category.xml
@@ -0,0 +1,55 @@
+<?xml version="1.0" encoding="utf-8"?>
+<odoo>
+ <record id="view_product_public_category_form_custom" model="ir.ui.view">
+ <field name="name">product.public.category.form.custom</field>
+ <field name="model">product.public.category</field>
+ <field name="arch" type="xml">
+ <form string="Public Category">
+ <sheet>
+ <group>
+ <field name="name"/>
+ <field name="parent_id"/>
+ <field name="brand_id"/>
+ </group>
+ <notebook>
+ <page string="Products">
+ <field name="product_ids">
+ <tree editable="bottom">
+ <field name="name"/>
+ <field name="default_code"/>
+ <field name="list_price"/>
+ </tree>
+ </field>
+ </page>
+ </notebook>
+ </sheet>
+ </form>
+ </field>
+ </record>
+
+ <record id="view_product_public_category_tree_custom" model="ir.ui.view">
+ <field name="name">product.public.category.tree.custom</field>
+ <field name="model">product.public.category</field>
+ <field name="arch" type="xml">
+ <tree>
+ <field name="name"/>
+ <field name="parent_id"/>
+ <field name="brand_id"/>
+ </tree>
+ </field>
+ </record>
+
+ <record id="action_product_public_category_custom" model="ir.actions.act_window">
+ <field name="name">Public Categories</field>
+ <field name="res_model">product.public.category</field>
+ <field name="view_mode">tree,form</field>
+ </record>
+
+ <menuitem
+ id="menu_product_public_category_custom"
+ name="Public Categories"
+ parent="sale.product_menu_catalog"
+ action="action_product_public_category_custom"
+ sequence="20"
+ />
+</odoo> \ No newline at end of file
diff --git a/fixco_custom/views/purchasing_job.xml b/fixco_custom/views/purchasing_job.xml
index 7d16682..7a15160 100644
--- a/fixco_custom/views/purchasing_job.xml
+++ b/fixco_custom/views/purchasing_job.xml
@@ -8,6 +8,7 @@
<tree string="Procurement Monitoring by Product" create="false" delete="false">
<field name="item_code"/>
<field name="product"/>
+ <field name="brand_id"/>
<field name="vendor_id"/>
<field name="onhand"/>
<field name="incoming"/>