summaryrefslogtreecommitdiff
path: root/indoteknik_custom/views
diff options
context:
space:
mode:
authorAzka Nathan <darizkyfaz@gmail.com>2024-04-02 15:04:29 +0700
committerAzka Nathan <darizkyfaz@gmail.com>2024-04-02 15:04:29 +0700
commitb559bcdf167ba24cbbcf978461fb774e8eda2f07 (patch)
tree7d7cf06f9192bb1a940ebd48f8a3b6679ef3fb15 /indoteknik_custom/views
parent020f545e8214ce8a32f004f1b35e03a16cec1dfb (diff)
add note on purchasing job
Diffstat (limited to 'indoteknik_custom/views')
-rw-r--r--indoteknik_custom/views/purchasing_job.xml8
-rw-r--r--indoteknik_custom/views/purchasing_job_state.xml17
2 files changed, 25 insertions, 0 deletions
diff --git a/indoteknik_custom/views/purchasing_job.xml b/indoteknik_custom/views/purchasing_job.xml
index bad4b938..8f9be1de 100644
--- a/indoteknik_custom/views/purchasing_job.xml
+++ b/indoteknik_custom/views/purchasing_job.xml
@@ -16,6 +16,7 @@
<field name="outgoing"/>
<field name="status_apo"/>
<field name="action"/>
+ <field name="note"/>
</tree>
</field>
</record>
@@ -25,6 +26,12 @@
<field name="model">v.purchasing.job</field>
<field name="arch" type="xml">
<form create="false" edit="false">
+ <header>
+ <button name="redirect_to_pjs"
+ string="Add Note!"
+ type="object"
+ />
+ </header>
<sheet>
<group>
<group>
@@ -39,6 +46,7 @@
<field name="incoming"/>
<field name="outgoing"/>
<field name="purchase_representative_id"/>
+ <field name="note"/>
</group>
</group>
</sheet>
diff --git a/indoteknik_custom/views/purchasing_job_state.xml b/indoteknik_custom/views/purchasing_job_state.xml
new file mode 100644
index 00000000..c7c40020
--- /dev/null
+++ b/indoteknik_custom/views/purchasing_job_state.xml
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="utf-8" ?>
+<odoo>
+ <record id="purchasing_job_state_form" model="ir.ui.view">
+ <field name="name">purchasing.job.state.form</field>
+ <field name="model">purchasing.job.state</field>
+ <field name="arch" type="xml">
+ <form>
+ <sheet>
+ <group>
+ <field name="status_apo" readonly="1"/>
+ <field name="note"/>
+ </group>
+ </sheet>
+ </form>
+ </field>
+ </record>
+</odoo> \ No newline at end of file