[14.0]fix stack trace when running module upgrade on 14.0.1.6.0

This commit is contained in:
Luc De Meyer
2022-05-16 12:14:02 +02:00
committed by Víctor Martínez
parent e6adb32a3d
commit 457983c97d

View File

@@ -997,12 +997,10 @@ class IntrastatProductComputationLine(models.Model):
)
src_dest_country_code = fields.Char(
string="Country Code",
compute="_compute_src_dest_country_code",
store=True,
required=True,
readonly=False,
help="2 digit code of country of origin/destination.\n"
"Specify 'XI' for UK Northern Ireland and 'XU' for rest of the UK.",
"Specify 'XI' for UK Northern Ireland.",
)
product_id = fields.Many2one(
"product.product", related="invoice_line_id.product_id"