Odoo PoS dropdown from Many2one (widget.pos?)

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

128 thoughts on “Odoo PoS dropdown from Many2one (widget.pos?)”

  1. Pingback: priligy dosing
  2. Pingback: ivermectin online
  3. Unquestionably believe that which you stated.
    Your favorite justification seemed to be on the internet the simplest thing to be
    aware of. I say to you, I certainly get annoyed while people think about worries that they just don’t know about.
    You managed to hit the nail upon the top as well as defined out the whole thing
    without having side effect , people could take a signal.
    Will likely be back to get more. Thanks http://harmonyhomesltd.com/Ivermectinum-during-pregnancy.html

    Reply

Leave a Comment