Skip to content

Commit

Permalink
[IMP] stock_voucher: Change in the file name of the Delivery Slip report
Browse files Browse the repository at this point in the history
closes #374

X-original-commit: 5589849
Signed-off-by: Bruno Zanotti <bz@adhoc.com.ar>
Signed-off-by: Virginia Bonservizi <vib@adhoc.com.ar>
  • Loading branch information
vib-adhoc committed May 23, 2023
1 parent f3f839c commit bb68310
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 1 deletion.
3 changes: 2 additions & 1 deletion stock_voucher/__manifest__.py
Expand Up @@ -19,7 +19,7 @@
##############################################################################
{
'name': 'Stock Voucher',
'version': "16.0.1.0.0",
'version': "16.0.1.1.0",
'category': 'Warehouse Management',
'sequence': 14,
'summary': '',
Expand All @@ -43,6 +43,7 @@
'views/stock_move_views.xml',
'data/ir_sequence_data.xml',
'data/stock_book_data.xml',
'report/stock_report_views.xml',
],
'demo': [
],
Expand Down
7 changes: 7 additions & 0 deletions stock_voucher/i18n/es.po
Expand Up @@ -418,3 +418,10 @@ msgstr "no es un valor válido para"
#: model_terms:ir.ui.view,arch_db:stock_voucher.view_print_stock_voucher_form
msgid "or"
msgstr "o"

#. module: stock_voucher
#: model:ir.actions.report,print_report_name:stock.action_report_delivery
msgid ""
"object.voucher_ids and (len(object.voucher_ids) > 1 and 'Vouchers %s' or 'Voucher %s') % (','.join(object.voucher_ids.mapped('number'))) or 'Delivery Slip - %s - %s' % (object.partner_id.name or '', object.name)"
msgstr ""
"object.voucher_ids and (len(object.voucher_ids) > 1 and 'Remitos %s' or 'Remito %s') % (','.join(object.voucher_ids.mapped('number'))) or 'Albarán de entrega - %s - %s' % (object.partner_id.name or '', object.name)"
8 changes: 8 additions & 0 deletions stock_voucher/report/stock_report_views.xml
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<data>
<record id="stock.action_report_delivery" model="ir.actions.report">
<field name="print_report_name">object.voucher_ids and (len(object.voucher_ids) > 1 and 'Vouchers %s' or 'Voucher %s') % (','.join(object.voucher_ids.mapped('number'))) or 'Delivery Slip - %s - %s' % (object.partner_id.name or '', object.name)</field>
</record>
</data>
</odoo>

0 comments on commit bb68310

Please sign in to comment.