diff options
| author | Mqdd <ahmadmiqdad27@gmail.com> | 2026-01-09 14:45:09 +0700 |
|---|---|---|
| committer | Mqdd <ahmadmiqdad27@gmail.com> | 2026-01-09 14:45:09 +0700 |
| commit | f0fdef1687cf29adb42fbb10512820088d8a9953 (patch) | |
| tree | 6243c7fa7ed12411f8fca970fa2b1b934a295e53 /fixco_custom/views | |
| parent | 4db2619225eea1edb72da972ba2b829008e40f30 (diff) | |
CR Bills pahri
Diffstat (limited to 'fixco_custom/views')
| -rw-r--r-- | fixco_custom/views/account_move.xml | 10 | ||||
| -rw-r--r-- | fixco_custom/views/purchase_order_line_wizard.xml | 30 |
2 files changed, 39 insertions, 1 deletions
diff --git a/fixco_custom/views/account_move.xml b/fixco_custom/views/account_move.xml index 52dd64c..8d8e4a3 100644 --- a/fixco_custom/views/account_move.xml +++ b/fixco_custom/views/account_move.xml @@ -11,6 +11,14 @@ <button name="fixco_custom.action_view_invoice_reklas" string="Reklas" type="action" class="btn-primary" attrs="{'invisible': [('state', '!=', 'posted')]}"/> </button> + <xpath expr="//header" position="inside"> + <button name="action_open_po_item_wizard" + type="object" + string="Add PO Items" + class="oe_highlight" + attrs="{'invisible': [('move_type','!=','in_invoice')]}"/> + </xpath> + <button name="open_reconcile_view" position="after"> <button type="object" name="action_view_related_payment" @@ -147,4 +155,4 @@ <field name="code">action = records.queue_job_cancel_bill()</field> </record> </data> -</odoo>
\ No newline at end of file +</odoo> diff --git a/fixco_custom/views/purchase_order_line_wizard.xml b/fixco_custom/views/purchase_order_line_wizard.xml new file mode 100644 index 0000000..7ae76bc --- /dev/null +++ b/fixco_custom/views/purchase_order_line_wizard.xml @@ -0,0 +1,30 @@ +<?xml version="1.0" encoding="UTF-8"?> +<odoo> + <data> + + <record id="view_po_line_wizard_form" model="ir.ui.view"> + <field name="name">purchase.order.line.wizard.form</field> + <field name="model">purchase.order.line.wizard</field> + <field name="arch" type="xml"> + <form string="Select PO Items"> + <group> + <field name="line_ids" + widget="many2many_tags" + options="{'no_create': True}"/> + </group> + <footer> + <button string="Add" + type="object" + name="action_add_lines" + class="btn-primary"/> + <button string="Cancel" + class="btn-secondary" + special="cancel"/> + </footer> + </form> + </field> + </record> + + </data> +</odoo> + |
