diff options
| author | IT Fixcomart <it@fixcomart.co.id> | 2023-07-21 03:41:22 +0000 |
|---|---|---|
| committer | IT Fixcomart <it@fixcomart.co.id> | 2023-07-21 03:41:22 +0000 |
| commit | 7489d3fba967e711cb0fdfd6d3cb5097751e883f (patch) | |
| tree | 877b3e47216f1667513161410439dc2626b455c0 /indoteknik_custom/views | |
| parent | 3c9ef63acb42298d948ee86407d9a5ca67004246 (diff) | |
| parent | ce1c11b9be9274cf281a00cc340969f094a698be (diff) | |
Merged in receipt-bill (pull request #60)
Receipt bill
Diffstat (limited to 'indoteknik_custom/views')
| -rw-r--r-- | indoteknik_custom/views/bill_receipt.xml | 113 | ||||
| -rw-r--r-- | indoteknik_custom/views/ir_sequence.xml | 10 | ||||
| -rwxr-xr-x | indoteknik_custom/views/purchase_order.xml | 1 |
3 files changed, 124 insertions, 0 deletions
diff --git a/indoteknik_custom/views/bill_receipt.xml b/indoteknik_custom/views/bill_receipt.xml new file mode 100644 index 00000000..c9ab492a --- /dev/null +++ b/indoteknik_custom/views/bill_receipt.xml @@ -0,0 +1,113 @@ +<?xml version="1.0" encoding="UTF-8"?> +<odoo> + <record id="bill_receipt_tree" model="ir.ui.view"> + <field name="name">bill.receipt.tree</field> + <field name="model">bill.receipt</field> + <field name="arch" type="xml"> + <tree> + <field name="number"/> + <field name="bill_date"/> + <field name="partner_id"/> + <field name="is_validated" readonly="1"/> + <field name="date_kirim_tukar_faktur"/> + <field name="resi_tukar_faktur"/> + <field name="date_terima_tukar_faktur"/> + <field name="shipper_faktur_id"/> + </tree> + </field> + </record> + + <record id="bill_receipt_line_tree" model="ir.ui.view"> + <field name="name">bill.receipt.line.tree</field> + <field name="model">bill.receipt.line</field> + <field name="arch" type="xml"> + <tree> + <field name="partner_id"/> + <field name="invoice_id"/> + <field name="date_invoice"/> + <field name="efaktur_id"/> + <field name="reference"/> + <field name="total_amt"/> + <field name="open_amt"/> + <field name="due_date"/> + </tree> + </field> + </record> + + <record id="bill_receipt_form" model="ir.ui.view"> + <field name="name">bill.receipt.form</field> + <field name="model">bill.receipt</field> + <field name="arch" type="xml"> + <form> + <header> + <button name="generate_bill_line" + string="Generate" + type="object" + class="mr-2 oe_highlight oe_edit_only" + /> + <button name="validate_bill" + string="Validate" + type="object" + class="mr-2 oe_highlight oe_edit_only" + /> + <button name="copy_date_faktur" + string="Copy Date" + type="object" + class="oe_highlight oe_edit_only" + /> + </header> + <sheet> + <group> + <group> + <field name="number"/> + <field name="partner_id"/> + <field name="bill_date"/> + <field name="notification" readonly="1"/> + </group> + <group> + <field name="is_validated" readonly="1"/> + <field name="date_kirim_tukar_faktur"/> + <field name="resi_tukar_faktur"/> + <field name="date_terima_tukar_faktur"/> + <field name="shipper_faktur_id"/> + </group> + </group> + <notebook> + <page string="Bills"> + <field name="bill_line" attrs="{'readonly': [('is_validated', '=', True)]}"/> + </page> + </notebook> + </sheet> + </form> + </field> + </record> + + <record id="view_bill_receipt_filter" model="ir.ui.view"> + <field name="name">bill.receipt.list.select</field> + <field name="model">bill.receipt</field> + <field name="priority" eval="15"/> + <field name="arch" type="xml"> + <search string="Search Bills"> + <field name="number"/> + <field name="partner_id"/> + <field name="bill_line" string="Bill" filter_domain="[('bill_line.invoice_id', 'ilike', self)]"/> + </search> + </field> + </record> + + <record id="bill_receipt_action" model="ir.actions.act_window"> + <field name="name">Bill Line</field> + <field name="type">ir.actions.act_window</field> + <field name="res_model">bill.receipt</field> + <field name="search_view_id" ref="view_bill_receipt_filter"/> + <field name="view_mode">tree,form</field> + </record> + + <menuitem + id="menu_bill_receipt" + name="Bill Receipt" + parent="account.menu_finance_reports" + sequence="250" + action="bill_receipt_action" + /> +</odoo> diff --git a/indoteknik_custom/views/ir_sequence.xml b/indoteknik_custom/views/ir_sequence.xml index a8348772..6798e5b4 100644 --- a/indoteknik_custom/views/ir_sequence.xml +++ b/indoteknik_custom/views/ir_sequence.xml @@ -41,6 +41,16 @@ <field name="number_increment">1</field> </record> + <record id="sequence_bill_receipt" model="ir.sequence"> + <field name="name">Bill Receipt</field> + <field name="code">bill.receipt</field> + <field name="active">TRUE</field> + <field name="prefix">BR/%(year)s/</field> + <field name="padding">5</field> + <field name="number_next">1</field> + <field name="number_increment">1</field> + </record> + <record id="sequence_requisition" model="ir.sequence"> <field name="name">Requisition</field> <field name="code">requisition</field> diff --git a/indoteknik_custom/views/purchase_order.xml b/indoteknik_custom/views/purchase_order.xml index 4efa8cf4..2f8590f3 100755 --- a/indoteknik_custom/views/purchase_order.xml +++ b/indoteknik_custom/views/purchase_order.xml @@ -32,6 +32,7 @@ <field name="date_order" position="before"> <field name="sale_order_id" attrs="{'readonly': [('state', 'not in', ['draft'])]}"/> <field name="approval_status"/> + <field name="amount_total_without_service"/> </field> <field name="currency_id" position="after"> <field name="summary_qty_po"/> |
