Skip to content

Commit b71f404

Browse files
committed
[DEL] account_ux: The _compute_currency_id method has been removed as it is no longer required
closes #548 Signed-off-by: Juan José Scarafía <[email protected]>
1 parent 94a80cf commit b71f404

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

account_ux/models/account_move.py

-5
Original file line numberDiff line numberDiff line change
@@ -147,11 +147,6 @@ def _compute_invoice_date_due(self):
147147
inv.invoice_date_due = inv.invoice_date
148148
return super(AccountMove, invoices)._compute_invoice_date_due()
149149

150-
def _compute_currency_id(self):
151-
""" Si la factura tenía currency_id no queremos cambiarla si cambia el diario """
152-
invoices_with_currency_id = self.filtered(lambda x: x.currency_id)
153-
return super(AccountMove, self - invoices_with_currency_id)._compute_currency_id()
154-
155150
@api.constrains('date', 'invoice_date')
156151
def _check_dates_on_invoices(self):
157152
""" 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. """

0 commit comments

Comments
 (0)