Skip to content

Commit

Permalink
[DEL] account_ux: The _compute_currency_id method has been removed as…
Browse files Browse the repository at this point in the history
… it is no longer required

closes #548

Signed-off-by: Juan José Scarafía <[email protected]>
  • Loading branch information
rov-adhoc committed Sep 10, 2024
1 parent 94a80cf commit b71f404
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions account_ux/models/account_move.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,11 +147,6 @@ def _compute_invoice_date_due(self):
inv.invoice_date_due = inv.invoice_date
return super(AccountMove, invoices)._compute_invoice_date_due()

def _compute_currency_id(self):
""" Si la factura tenía currency_id no queremos cambiarla si cambia el diario """
invoices_with_currency_id = self.filtered(lambda x: x.currency_id)
return super(AccountMove, self - invoices_with_currency_id)._compute_currency_id()

@api.constrains('date', 'invoice_date')
def _check_dates_on_invoices(self):
""" Prevenir que en facturas de cliente queden distintos los campos de factura/recibo y fecha (date e invoice date). Pueden quedar distintos si se modifica alguna de esas fechas a través de edición masiva por ejemplo, entonces con esta constrains queremos prevenir que eso suceda. """
Expand Down

0 comments on commit b71f404

Please sign in to comment.