콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
2 답글
4869 화면

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!

아바타
취소
작성자 베스트 답변

 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)

아바타
취소
베스트 답변

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


아바타
취소