I want to add a dropdown from a Many2one I've created to the pos.xml file (I know how to inherit from this), can someone help me with this?
I saw in the code that for every dropdown they used widget.pos.name, but this I can't seem to find it anywhere. Here is an example for countries (here I want to replace it by my variable).
<select class='detail client-address-country' name='country_id'>
<option value=''>None</option>
<t t-foreach='widget.pos.countries' t-as='country'>
<option t-att-value='country.id' t-att-selected="partner_country_id ? ((country.id === partner.country_id[0]) ? true : undefined) : undefined">
<t t-esc='country.name'/>
</option>
</t>
</select>
I don't know where the t-foreach='widget.pos.countries' comes from and how I can manage this for my own variable called "domain" which is part of a class "domainnames". And called from a Many2one from res.partner