How to access the fields of current form view if it is not yet save or in editing mode?
I tried getting the current active id but I cant get it. In my .py
@api.one
def _check_butcher(self):
prod_id = self.env.context.get('active_id')
# logging.info("TEST \n TEST %s" % prod_id.can_butcher)
logging.info("TEST \n TEST %s" % prod_id)
return prod_id
In the terminal, it is printed None
I dont work with version 8 so my answer propably won't be most accurate but i think you should look for CRUD in this Documentation https://www.odoo.com/documentation/8.0/ for "default_get()"