Skip to content

Commit

Permalink
Merge branch '15.0' into 15.0-t-28680-mav-1
Browse files Browse the repository at this point in the history
  • Loading branch information
mav-adhoc committed Feb 6, 2024
2 parents 9218498 + 4a494c8 commit a4b1132
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 2 deletions.
5 changes: 4 additions & 1 deletion public_budget/views/definitive_line_views.xml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,10 @@
<!-- sacamos el editable porque nos da un error por sua tree editable en un pop up -->
<field name="issue_date"/>
<field name="supplier_id" context="{'res_partner_search_mode': 'supplier'}"/>
<field name="amount"/>
<field name="amount" string="Definitivo"/>
<field name="invoiced_amount"/>
<field name="to_pay_amount" optional="hide"/>
<field name="paid_amount" optional="hide"/>
<field name="state" invisible="True"/>
<field name="currency_id" invisible="1"/>
<field name="to_pay_amount" invisible="1"/>
Expand Down
2 changes: 1 addition & 1 deletion sipreco_payment_line/__manifest__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
'name': 'Sipreco Payment Lines',
'version': "15.0.1.0.0",
'version': "15.0.1.1.0",
'license': 'AGPL-3',
'author': 'ADHOC SA,Odoo Community Association (OCA)',
'website': 'www.adhoc.com.ar',
Expand Down
5 changes: 5 additions & 0 deletions sipreco_payment_line/models/account_payment_group.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,3 +101,8 @@ def generar_archivo_banco(self):
self.archivo_banco = base64.encodestring(
('\r\n'.join(lines_data) + '\r\n').encode())
self.archivo_banco_name = 'Archivo banco %s.txt' % fields.Date.today()

def remove_all_transfer_lines(self):
""" Botón usado dentro de una orden de pago en una transacción para que en la solapa 'Líneas de Transferencia' se pueda borrar masivamente todas las trasferencias cuando la orden de pago se encuentra en estado 'Borrador'. """
if self.state == 'draft':
self.line_ids = False
1 change: 1 addition & 0 deletions sipreco_payment_line/views/account_payment_group_views.xml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
</group>
<button type="action" name="%(sipreco_payment_line.action_account_payment_line_import)d" string="Importar"/>
<button type="object" name="check_payment_lines_total" string="Verificar Total"/>
<button name="remove_all_transfer_lines" string="Eliminar todo" states="draft" type="object"/>
<field name="line_ids">
<tree editable="bottom">
<field name="partner_id"/>
Expand Down

0 comments on commit a4b1132

Please sign in to comment.