view_id = cr.fetchone()[0]
value = {
'domain': "[('id','in',["+','.join(map(str, ids))+"])]",
- 'name': ((type1=='move_history_ids') and 'Upstream Traceability') or 'Downstream Traceability',
+ 'name': ((type1=='move_history_ids') and 'Donwstream Traceability') or 'Upstream Traceability',
'view_type': 'tree',
'res_model': 'stock.move',
'field_parent': type1,
<separator string="" colspan="4" />
<button icon='gtk-cancel' special="cancel"
string="Cancel" />
- <button name="action_traceability" string="Upstream traceability" type="object" context="{'type': '', 'field': 'prodlot_id'}"/>
+ <button name="action_traceability" string="Upstream traceability" type="object" context="{'type': 'move_history_ids2', 'field': 'prodlot_id'}"/>
</form>
</field>
</record>
<separator string="" colspan="4" />
<button icon='gtk-cancel' special="cancel"
string="Cancel" />
- <button name="action_traceability" string="Downstream traceability" type="object" context="{'type': 'move_history_ids2', 'field': 'prodlot_id'}"/>
+ <button name="action_traceability" string="Downstream traceability" type="object" context="{'type': '', 'field': 'prodlot_id'}"/>
</form>
</field>
</record>