Skip to content

Commit

Permalink
[FIX]stock_voucher_ux: print vouchers button
Browse files Browse the repository at this point in the history
  • Loading branch information
mav-adhoc committed Jan 10, 2025
1 parent fe0bb9e commit 002e40d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 deletions.
2 changes: 1 addition & 1 deletion stock_voucher_ux/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
##############################################################################
{
'name': 'Stock Voucher UX',
'version': "17.0.1.1.0",
'version': "17.0.1.2.0",
'category': 'Warehouse Management',
'sequence': 14,
'summary': '',
Expand Down
12 changes: 4 additions & 8 deletions stock_voucher_ux/views/stock_picking_views.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,12 @@
<field name="voucher_ids" position="after">
<field name="with_vouchers" invisible="1"/>
</field>
<xpath expr="//button[@name='%(stock_voucher.action_stock_print_voucher)d'][1]" position="after">
<button name="do_print_and_assign" type="object" class="oe_highlight" string="Print Vouchers" invisible="with_vouchers == True or state != 'done'"/>
<xpath expr="//button[@name='%(stock_voucher.action_stock_print_voucher)d'][2]" position="replace">
<button name="do_print_and_assign" type="object" class="oe_highlight" string="Print Vouchers" invisible="with_vouchers == True or state != 'done'"/>
</xpath>
<xpath expr="//button[@name='%(stock_voucher.action_stock_print_voucher)d'][1]" position='attributes'>
<attribute name="invisible">1</attribute>
<xpath expr="//button[@name='%(stock_voucher.action_stock_print_voucher)d'][1]" position="replace">
<button name="clean_voucher_data" type="object" string="Clean Voucher Data" invisible="with_vouchers == False"/>
</xpath>

<!-- <xpath expr="//button[@name='%(stock_voucher.action_stock_print_voucher)d'][2]" position="replace">
<button name="clean_voucher_data" type="object" string="Clean Voucher Data" invisible="with_vouchers == False"/>
</xpath> -->
<xpath expr="//button[@name='%(stock.action_report_delivery)d']" position="replace">
<button name="do_print_voucher" type="object" string="Print" invisible="state != 'done'" />
</xpath>
Expand Down

0 comments on commit 002e40d

Please sign in to comment.