Skip to Content
Menu
This question has been flagged
3 Replies
7677 Views

I make multiple products that all need a logo from a Customer.

Everything is made to order, and I want an easy way to upload the Customer logo on the Sales Order but also have the logo available to users working with the Manufacturing Order.

Right now we store the logos on Google Drive and it is not always easy to find them. 

Not everyone names them properly or links them to the correct order and we often have to have our Production Manager calling Customers to check because even for the same Customer we have different logos for T-Shirts than we do for mugs than we do for Mousepads (for example).

Avatar
Discard
Best Answer

One way to do this is to add a custom field on the Sales Order for users to upload the Logo, and have that same information available to users on the Manufacturing Order:


Sales Order:


Manufacturing Order:


How?

First, create a custom field on the Sales Order for the logo and add it to the User Interface:







Next, add a custom field to the Manufacturing Order and then to the User Interface:


for record in self:
if record.origin:
sale_order = record.env['sale.order'].search([('name','=',record.origin)])
if sale_order and sale_order.x_mo_logo:
record['x_mo_logo'] = sale_order.x_mo_logo







Avatar
Discard

Hi Ray. This solution is working perfectly when confirming S/O's that automatically trigger M/O's. However, if I try to manually create an M/O in the manufacturing module, I'm getting an error.

Any ideas? Happy to share the error if you can assist directly.

Change the fourth line of the Compute function of the "x_mo_logo" field on the Manufacturing order to "if record.origin and sale_order and sale_order.x_mo_logo:"

That worked perfect. Thank you!

How would this work if I wanted to copy over a decimal? I have a make to order product that can have various sizing. At the time of quoting it is put onto the quote though a decimal in the Sales Order Line called x_studio_length

Best Answer

Hey Ray, looking for your help here. You would be my hero if you could help me achieve this. I need your exact workflow for this that way, I can attach a photo of the job from the sales order to the manufacturing order

Avatar
Discard
Best Answer

Hi Ray, i am using your solution provided above. I was trying to convert it for transferring that field to the task created from sale order but it says there procurement_group_id is unknown field. Would you help me with that?

Avatar
Discard