I know similar questions have been asked before but I am currently in the process of adding our historical orders into our Odoo test instance and am struggling to link my historical sales orders with my generated invoices. 
I have tried writing my invoice id to the sale.order 'invoice_ids' list and setting my order's invoice_status to 'invoiced' upon creation. Upon investigating the orders after posting them, both of these do not seem to apply but the requests do not return any errors; this has lead me to believe there is something like a record rule blocking my attempted bad practice. 
Does anyone know what could be blocking this is (my instance is basically default Odoo 16)? or could anyone recommend me a better workflow? I have considered posting the invoices first and then using their ids in the initial sale.order creation as a work around but I am doubtful this will work either. 
Odoo is the world's easiest all-in-one management software.
 It includes hundreds of business apps:
- 客戶關係
- e-Commerce
- 會計
- 庫存
- PoS
- Project
- MRP
此問題已被標幟
            
                2169
                
                    瀏覽次數
                
            
        
    | 相關帖文 | 回覆 | 瀏覽次數 | 活動 | |
|---|---|---|---|---|
|  | 1 8月 21  | 4092 | ||
|  | 1 10月 22  | 4729 | ||
|  | 0 8月 21  | 2948 | ||
|  | 1 7月 21  | 8213 | ||
|  | 2 6月 21  | 4830 | 
