Skip to Content
Menu
This question has been flagged
2 Replies
4371 Views

ODOO 12 / Studio: How can I set the domain correctly to get only the invoice and shipping addresses based on choosen company


Steps

1. Start create an quotation/order

2. Select/find the right company (with muliple addresses attached). E.g. BEWISE Solutions

3. Search for the right (invoice) address

Expected

- I only see the addresses attached to the company BEWISE

Actual

- I see all the addresses (also from other companies)


Question:

How can I set the domain for the field partner_invoice_id (and partner_shipping_id) so I only search within the selected company addresses.

I tried for example 'parent_id','=',parent_id -->but this did not work.

Please help, thanks!

Avatar
Discard
Author Best Answer

 I tried this before, but then I get the error "The domain you entered is not properly formed.

To bad I cannot share the screenshot, since this form gives an error. But I am entering the value in the domain field in the studio of the edit sales order (model=sale.order&view_type=form)

Avatar
Discard
Best Answer

[('parent_id','=',partner_id)]


Avatar
Discard