I need to add the customer name to the sales order ..so SO0001 becomes SO001-JOHN DOE ... Thanks
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Accounting
- Inventory
- PoS
- Project management
- MRP
This question has been flagged
Hi,
The sequence number is generated when we save a record. You can check the sale.py file inside the sale module.
Below is the code which generates the sequence number for sale order,
As you want to add the customer name along with the sequence, you can change the above code like this,
Just add a the selected two lines to the code.
partner = self.env['res.partner'].browse(vals.get('partner_id'))
vals['name'] = str(vals['name']) + str(partner.name)
Either you can do it editing the original code or a custom module.
Thanks
when we duplicate the sale order , it does not change the customer name field ,
how can we fix it ?
Enjoying the discussion? Don't just read, join in!
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign up