manyToOne problem

I want to make a link between a customer order line and a supplier order line. On a boolean field (directOrderLocation) of the table:

com.axelor.apps.sale.db.SaleOrderLine

which will be synchronized with the boolean field (directOrderLocation) of the supplier order line.

com.axelor.apps.purchase.db.PurchaseOrderLine

I tried this code :
Domain side in PurchaseOrderLine.xml :

 <many-to-one ref="com.axelor.apps.sale.db.SaleOrderLine" name="directOrderLocation"
      title="contremarque" initParam="true"/>

View side in PurchaseOrderLine.xml :

<field name="directOrderLocation" x-type="many-to-one"
          x-target="com.axelor.apps.sale.db.SaleOrderLine" x-target-name="directOrderLocation"/>

but it doesn’t show anything. An idea ?

Did you try without x-type="many-to-one" x-target="com.axelor.apps.sale.db.SaleOrderLine" x-target-name="directOrderLocation" ?
What test did you try past ?

Hello PHPierre:
The problem was finally solved, without having to go through a many to one, thanks for your quick response anyway.

Ce sujet a été automatiquement fermé après 30 jours. Aucune réponse n’est permise dorénavant.