diff options
| author | Indoteknik . <it@fixcomart.co.id> | 2025-08-20 11:28:50 +0700 |
|---|---|---|
| committer | Indoteknik . <it@fixcomart.co.id> | 2025-08-20 11:28:50 +0700 |
| commit | 17a865cf95cc6e53021a12b05df907ff8d1a06de (patch) | |
| tree | c026ca15473b75dc86fa920a3679acb9984cb442 | |
| parent | ee81bf8bd22dc3c2431554b7302071b725fe3e90 (diff) | |
(andri) fix layout button statinfo
| -rwxr-xr-x | indoteknik_custom/views/purchase_order.xml | 28 |
1 files changed, 15 insertions, 13 deletions
diff --git a/indoteknik_custom/views/purchase_order.xml b/indoteknik_custom/views/purchase_order.xml index 57cfdfca..821f3295 100755 --- a/indoteknik_custom/views/purchase_order.xml +++ b/indoteknik_custom/views/purchase_order.xml @@ -14,6 +14,16 @@ attrs="{'invisible': ['|', ('sale_order_id', '=', False), ('state', 'not in', ['draft'])]}" /> </div> + <xpath expr="//button[@name='action_view_invoice']" position="after"> + <button type="object" + name="action_view_related_bu" + class="oe_stat_button" + icon="fa-truck" + attrs="{'invisible': [('state', 'in', ['draft', 'sent'])]}"> + <field name="bu_related_count" widget="statinfo" string="BU Related"/> + </button> + <field name="picking_count" invisible="1"/> + </xpath> <xpath expr="//button[@name='action_view_invoice']" position="before"> <field name="is_cab_visible" invisible="1"/> <button type="object" @@ -21,26 +31,18 @@ class="oe_stat_button" icon="fa-book" attrs="{'invisible': [('is_cab_visible', '=', False)]}" - style="width: 200px;"> + > <field name="move_id" widget="statinfo" string="Journal Uang Muka"/> <span class="o_stat_text"> <t t-esc="record.move_id.name"/> </span> </button> - <button type="object" - name="action_view_related_bu" - class="oe_stat_button" - icon="fa-truck" - style="width: 200px;" - attrs="{'invisible': [('state', 'in', ['draft', 'sent'])]}"> - <field name="bu_related_count" widget="statinfo" string="BU Related"/> - </button> - <field name="picking_count" invisible="1"/> <button name="action_view_bills" type="object" - icon="fa-pencil-square-o"> - <field string="Bills DP & Pelunasan" name="bills_related_count" widget="statinfo" - attrs="{'invisible': [('bills_dp_id', '=', False)]}"/> + icon="fa-pencil-square-o" + attrs="{'invisible': [ + ('bills_related_count', '=', 0)]}"> + <field string="Bills DP & Pelunasan" name="bills_related_count" widget="statinfo"/> </button> </xpath> <button id="draft_confirm" position="after"> |
