Hi,
I'm creating a custom data export module for products, and for this I want to export the external ID as well. However, this is not available as a default field. How can I access this?
I currently get my products something like:
self.env['product.template'].with_context(lang=active_language.code).search(
[('id', 'in', rec_list)], order='default_code')
External ID is the same one you get when you export a product and select "External ID".
Thanks!