I've created a field ('Serviced Organization') and added it to Sales, in both Quotations and Sales Orders. Now, I'd like to make this same field visible in Accounting/Invoices. When I search the existing fields in Invoices, though, it doesn't show. How can I include/link a field like this from another table in the database?
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- 客户关系管理
- e-Commerce
- 会计
- 库存
- PoS
- Project
- MRP
此问题已终结
Hi,
For this you have to create a new field in account.move model for your new field serviced organization. After that you can pass the value from sale order to invoice using _prepare_invoice function
try as below :
class SaleOrder(models.Model):
_inherit = 'sale.order'
def _prepare_invoice(self):
result = super(Sale, self)._prepare_invoice()
result.update({
'field_in_invoice': self.service_organization,
})
return result
Refer this video for more details: How To Pass New Field Value From Sale Order To Invoice In Odoo
Hope this will help you
Thanks
相关帖文 | 回复 | 查看 | 活动 | |
---|---|---|---|---|
Sales quotation
已解决
|
|
2
3月 24
|
1998 | |
|
1
3月 15
|
4089 | ||
|
1
3月 15
|
4983 | ||
|
0
8月 25
|
3760 | ||
|
1
11月 23
|
2293 |