Skip to Content
Menu
This question has been flagged

Hi,

I am an accountant.

I am having trouble to show the Customer name field on the delivery form. As something basic as this, yet I'm struggling with using Studio feautre (as I am not a IT guy). I cannot find a way for it show it where i want it!

I tried different ways but did not succeed. Can someone please help. 

Some of the Steps or things i did to try and achieve what I wanted are as follows:

  1. Going to delivery form view
  2. Initiating studio (view)
  3. Adding/dragging a related field from exisiting lists to just above delivery address field. And tried setting the related field to different options from the pull down list such as Customer name, Company, contact.....etc. (Did manage to show the individual person name related to the co. but not the company name itself.) so yes none other options worked for me.
  4. Also tried drag in Many2one field but nothing
  5. I also played with changing widgets from 'text(char)' or setting 'reference' field and also toggled with dynamic placeholder and chose res_partner etc to see if any combination worked. I had no clue hahaa but lets just say, I tried! 

In the picture below you can see where I managed to show the contact name (I used the related field, set to contact/contact/name. ) but not the co. name.....please can someone help?


Secondly another issue, even the contact name like Asif does not show on the delivery slip print....:/

need help with this too....

Avatar
Discard
Best Answer

Hi,

1. 'Customer Name' in the delivery form view.

To add the Customer Name field in the form view, drag the Many2One field from the left sidebar and drop it at the desired position in the form layout.

Then, in the field's properties, set the Relation to Contact (res.partner) to link it to the customer records.


2. For Delivery Slip

Copy the 'Technical Name' from left sidebar


Click the button 'Reports' From Top bar


When you click the Reports button, you will see a list of reports under Delivery Notes.

Open the 'Delivery Slip' and click the button 'Edit Sources'


Add the code just before the Shipping Date, then save the changes. You will now see that the Customer Name is included in the report.


   <div class="col col-3 mw-100 mb-2" name="customer_name">

             <strong>Customer Name</strong>

               <div t-field="o.x_studio_many2one_field_4dk_1irp74s5n" class="m-0"/>

    </div>



Result:

Delivery Form View:

Delivery Slip:

Hope it helps.

Avatar
Discard
Related Posts Replies Views Activity
2
Oct 24
773
2
Jun 23
2973
0
Nov 22
2723
0
Oct 22
2122
0
Feb 22
1971