summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRafi Zadanly <zadanlyr@gmail.com>2023-02-14 11:49:10 +0700
committerRafi Zadanly <zadanlyr@gmail.com>2023-02-14 11:49:10 +0700
commit97bb5d9e993ffa4ccee788b725ecae2489cbbedf (patch)
tree44a39e2d03598ffba2fafc9b880f9ad2d5d92e25
parent40e3569be0c25f19bdb0e29c6e5cafce56b7bb8d (diff)
show vendor bills on PO and only technical administrator can view/edit
-rwxr-xr-xindoteknik_custom/__manifest__.py1
-rwxr-xr-xindoteknik_custom/views/purchase_order.xml9
-rw-r--r--indoteknik_custom/views/res_groups.xml9
3 files changed, 19 insertions, 0 deletions
diff --git a/indoteknik_custom/__manifest__.py b/indoteknik_custom/__manifest__.py
index da82d2bd..051f11ec 100755
--- a/indoteknik_custom/__manifest__.py
+++ b/indoteknik_custom/__manifest__.py
@@ -15,6 +15,7 @@
'views/coupon_program.xml',
'views/delivery_order.xml',
'views/product_pricelist.xml',
+ 'views/res_groups.xml',
'views/res_partner.xml',
'views/product_pricelist_item.xml',
'views/product_public_category.xml',
diff --git a/indoteknik_custom/views/purchase_order.xml b/indoteknik_custom/views/purchase_order.xml
index c4a06a6c..f2b98b09 100755
--- a/indoteknik_custom/views/purchase_order.xml
+++ b/indoteknik_custom/views/purchase_order.xml
@@ -49,6 +49,15 @@
<field name="qty_outgoing"/>
<field name="qty_available"/>
</field>
+ <page name="purchase_delivery_invoice" position="after">
+ <page name="purchase_vendor_bills" string="Vendor Bills" groups="indoteknik_custom.technical_administrator">
+ <group>
+ <field name="invoice_status" readonly="0" />
+ <field name="invoice_count" readonly="0" />
+ <field name="invoice_ids" readonly="0" />
+ </group>
+ </page>
+ </page>
</field>
</record>
</data>
diff --git a/indoteknik_custom/views/res_groups.xml b/indoteknik_custom/views/res_groups.xml
new file mode 100644
index 00000000..8da2414b
--- /dev/null
+++ b/indoteknik_custom/views/res_groups.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<odoo>
+ <data>
+ <record id="technical_administrator" model="res.groups">
+ <field name="name">Administrator</field>
+ <field name="category_id" ref="base.module_category_hidden" />
+ </record>
+ </data>
+</odoo> \ No newline at end of file