I've added Two fields into res.partner model and i want to show them on the POS receipt
i loaded the newly created field using:
odoo.define('pos_receipt.pos_order_extend', function (require) {
var models = require('point_of_sale.models');
models.load_models({
model: 'res.partner',
fields: ['houseNumber'],
loaded: function(self , houseNumber){
self.houseNumber = houseNumber;
console.log(self.houseNumber);
},
});
and the inherited receipt Xml is
<div t-if="env.pos.get_client()">
Building :
<t t-esc="env.pos.get_client().houseNumber"/>
</div>