[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) <oco@odoo.com> Signed-off-by: Wala Gauthier (gawa) <gawa@odoo.com>
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user