Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda

Hello, I am trying to create a second sale_order_line item if one of the options from the support field is selected from the sale_order_line sub view.

image description

When I click on the red Save & Close button then it creates a new line item for the product like it should, but I also want to create a second line item for the support if it was checked from the sub view

image description

I know that the sale order line isnt actually saved to the database until the red Save button is clicked on the main form. So how does the sale order line get updated on the list box, and how can I add the support line to it from the sub view

Avatar
Buang
Penulis

So I found out that the red Save & Close button does not create a record, but instead saves the data in the browsers cache. Then the data is displayed on the one2many list found in the main form. Once the red Save button is clicked then the create method is executed and writes the records in cache to the related table. Does anyone know how I can override the method that saves the data in cache, so that a second line appears if a support option is selected from the sub view?

Post Terkait Replies Tampilan Aktivitas
1
Jan 25
3299
2
Agu 24
5803
6
Des 22
8717
0
Jul 19
669
1
Mei 25
5948