From 1c781669b3c780508dca2bfa26d6b5c508951af4 Mon Sep 17 00:00:00 2001 From: "Gauthier Wala (gawa)" Date: Thu, 28 Sep 2023 11:28:35 +0000 Subject: [PATCH] [FIX] l10n_pl_jpk: hide delivery date when not PL The field l10n_pl_delivery_date should not be visible if we're not in PL. In fact, delivery_date should have the standard behavior in Poland closes odoo/odoo#138440 X-original-commit: 0056dcb17e212a627a83072bafd68af8e0b2c76e Signed-off-by: Olivier Colson (oco) Signed-off-by: Wala Gauthier (gawa) --- addons/l10n_pl/models/account_move.py | 8 -------- 1 file changed, 8 deletions(-) diff --git a/addons/l10n_pl/models/account_move.py b/addons/l10n_pl/models/account_move.py index 2aafd06f587..ea738983df3 100644 --- a/addons/l10n_pl/models/account_move.py +++ b/addons/l10n_pl/models/account_move.py @@ -16,11 +16,3 @@ class AccountMove(models.Model): string='B_MPV_Prowizja', help="Supply of agency and other services pertaining to the transfer of a single-purpose voucher", ) - - @api.depends('country_code', 'move_type') - def _compute_show_delivery_date(self): - # EXTENDS 'account' - super()._compute_show_delivery_date() - for move in self: - if move.country_code == 'PL': - move.show_delivery_date = move.is_sale_document()