For Odoo Enterprise, if the 'account_intrastat' module is enabled, a country_of_origin field is added to products that has the functionality that's needed. The value can be accessed as follows:
origin_country = product_tmplate.intrastat_origin_country_id.code
I hardcoded this in our backend for now. It works for us.
What I advise is adding something along the lines of:
For shipping outside of the EEA, you advise users to use the 'product_harmonized_system' module from OCA. However, this module is incompatible with Odoo Enterprise.. So; your Sendcloud-app will not behave as expected for Odoo Enterprise.
Look at lines 333 - 340: https://github.com/onesteinbv/addons-sendcloud/blob/b67059c317a7700da7a4838e9ec90572a25947b3/delivery_sendcloud_official/models/stock_picking.py#L328-L341
For Odoo Enterprise, if the 'account_intrastat' module is enabled, a country_of_origin field is added to products that has the functionality that's needed. The value can be accessed as follows:
origin_country = product_tmplate.intrastat_origin_country_id.code
I hardcoded this in our backend for now. It works for us.What I advise is adding something along the lines of:
Love to hear from ya!
Benny