i have created an Automation Rule which works fine to generate Internal Transfer records, please refer to my topic below:
https://www.odoo.com/forum/help-1/v17-create-parent-child-record-in-another-table-on-save-242128
now i want to call or redirect to Internal Transfer view for this created record after creating the record which open form with it, kindly help how it can be done?
regards
don't know why my most of the Questions are unAnswered during last one month... please if i have asked wrong question or trying to do in wrong direction, at least inform me for how to.
regards
i have tried this code to open Internal Transfer form view and admitting that this is wrong or wrong way to do this. please check and correct me.
i have copied the code from existing one to Create RFQ's and it also needs to correct.
# below code to open the form i copied from existing code
# which opens Purchase Order form view
# --------------------------------------------
def show_form():
purchase_ids = record.product_line_ids.purchase_order_line_id.order_id.ids
domain = [('id', 'in', purchase_ids)]
return {
'name': _('Internal Transfer Entries'),
'view_type': 'tree',
'view_mode': 'list,form',
'res_model': 'stock.picking',
'type': 'ir.actions.act_window',
'context': self.env.context,
'domain': domain,
}
regards
it SEEMS no one can help for this requirement ??