Skip to content

Commit 8496277

Browse files
committed
[IMP] intrastat_product: Define the src_dest_country_id field readonly=False
Example use case: - Our company is based in France - Create a sales order with a delivery address in France - Confirm the sales order - Validate the picking - Create the invoice - Although the src_dest_country_id is France, there are specific cases that may require changing the country (even when the invoice is confirmed); for example, if we have shipped the goods to a customer's logistics warehouse in France but then the customer moves the goods to another country (Ireland, for example), in that case we will need to change the country and define Ireland because it must appear on the Intrastat declaration. TT58076
1 parent 088ef74 commit 8496277

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

intrastat_product/models/account_move.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ class AccountMove(models.Model):
2828
string="Origin/Destination Country",
2929
compute="_compute_src_dest_country_id",
3030
store=True,
31+
readonly=False,
3132
help="Destination country for dispatches. Origin country for arrivals.",
3233
)
3334
src_dest_region_id = fields.Many2one(

0 commit comments

Comments
 (0)