Skip to Content
Menu
This question has been flagged

So in this module I'm writing, I have a lot of fields (100+) and I thought it would be better to separate these fields into their own little sub modules. The main class of the module has many2one fields that point to the sub classes.

I have one form view that requires the use of all of the fields, seperated with pages in a notebook. I've found that if I put one of my many2one fields on a page, and within that field define the fields that I require, I can see them in the form. However I am not able to edit this data unless I click the many2one field itself (which I plan to have invisible eventually) and use the built in "Create and edit" option. 

How would I go about changing this to do one of the options below:

  1. When I click the create button, the module creates new records for all these many2one fields and allows me to edit them in the notebook

  2. When I click the create button, the module will require some preliminary information and when they save it, create new records for these many2one fields and allow me to edit them within the notebook

Note that I do not want to use the built-in "Create and edit" option as I need to style these fields, and the employees that I'm writing this module for require the module be very easy to use without unnecessary steps that they would have to perform.

I suspect that I will need to override the save or create functions to get this to work, which should be fine. 

Avatar
Discard
Related Posts Replies Views Activity
3
Jan 20
5848
1
Aug 17
3393
4
Apr 17
3781
2
Oct 16
3966
0
Apr 16
2152