def product_id_change(self):
        '''
        @param self: object pointer
        '''
        if self.product_id and self.folio_id.partner_id:
            self.name = self.product_id.name
            self.price_unit = self.product_id.list_price
            self.product_uom = self.product_id.uom_id
            tax_obj = self.env['account.tax']
            prod = self.product_id
            self.price_unit = tax_obj._fix_tax_included_price(prod.price,
                                                              prod.taxes_id,
                                                              self.tax_id)
def product_id_change ( self ) : if self . product_id and self . folio_id . partner_id : self . name = self . product_id . name self . price_unit = self . product_id . list_price self . product_uom = self . product_id . uom_id tax_obj = self . env [ 'account.tax' ] prod = self . product_id self . price_unit = tax_obj . _fix_tax_included_price ( prod . price , prod . taxes_id , self . tax_id )
@param self: object pointer