I would like to select the field customer reference that is set on the sale order and show this value on my invoice on the form view.
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
2
Replies
1903
Views
Find it on the Other Info Tab:
Invoice:
Sales Order:
Hi,
The create _prepare_invoice in sale order creates the corresponding invoice. For passing any value from the sale order to the creating invoice inherit sale.order model and override the function.
Try this example code
def _prepare_invoice(self):
invoice_vals= super(SaleOrder, self)._prepare_invoice()
invoice_vals['invoice_field_name'] = self.client_order_ref
return invoice_vals
Regards
Enjoying the discussion? Don't just read, join in!
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign upRelated Posts | Replies | Views | Activity | |
---|---|---|---|---|
|
3
Sep 24
|
2701 | ||
|
1
Aug 24
|
455 | ||
|
2
Feb 24
|
1886 | ||
How does Odoo send emails ?
Solved
|
|
2
Jan 24
|
16493 | |
|
1
Oct 23
|
4197 |