Hi Prashanth Kumar,
Settings -> Technical -> Sequences and Identifiers -> Sequences
In the search bar, type "Purchase" Select the first one.
You can add prefix and suffixes.
Prefix: Fixed or date/ time-based prefix characters (Basic Odoo feature does not provide the project name and location)
Suffix: Fixed or date/ time-based suffix characters after the character.
Sequence Size: The total number of numerals in the number (padding) ie: 001 or 000001
Step: The increment used for the next number in the sequence
Next Number: The next number used for the numeric part of the sequence
Use subsequences per date_range: Allow to add the Data/time range.
UPDATED:-
you can override the CREATE function of the purchase order. and add the location and project name etc in the reference.
@api.model
def create(self, vals):
if vals.get('name', 'New') == 'New':
vals['name'] = self.env['ir.sequence'].next_by_code('purchase.order') or '/'
# Inherit this fuction and add project name and location and company name as a string before the sequence.
# then change the new PO reference to the vals['name']. last return the vals, you can recreate the complete reference.
return super(PurchaseOrder, self).create(vals)
Thank you
..