I need to fetch data from two fields from sales module:
amount_total = fields.Monetary(string="Total", store=True, compute='_compute_amounts', tracking=4)
and
date_order = fields.Datetime()
Then translate the data to text into another module and display it "on the fly" in another custom made one (test). And it should be done in one custom module, no additional modules is allowed.
test = fields.Char(string="test", default=lambda x: random.randint(1, 10), states=readonly_fields_states)
This sounds trivial but i have no idea how to achive this.
you can use related field concept into third module.