How to Automate Cost Center, Warehouse, Invoice Journal &Petty cash When Creating a Sales Order

How to Automate Branch Cost Center, Warehouse, Invoice Journal &Petty cash Journal When Creating a Sales Order in Odoo