(self)
return {
            "purchase_value": self.asset_id.purchase_value + increment,
            "vat_prorrate_percent": vat_prorrate_percent,
            "vat_prorrate_increment": increment,
        }
Get assets values according prorrata
Get assets values according prorrata
Get assets values according prorrata
def _get_asset_analytic_values(self):
        """Get assets values according prorrata"""
        self.ensure_one()
        vat_prorrate_percent = self.vat_prorrate_percent
        if vat_prorrate_percent == 100 or not self.asset_profile_id:
            return {}
        totals = self.tax_ids.compute_all(self.asset_id.purchase_value)
        total_tax = totals["total_included"] - totals["total_excluded"]
        increment = total_tax * (100 - vat_prorrate_percent) / 100
        return {
            "purchase_value": self.asset_id.purchase_value + increment,
            "vat_prorrate_percent": vat_prorrate_percent,
            "vat_prorrate_increment": increment,
        }
def _get_asset_analytic_values ( self ) : self . ensure_one ( ) vat_prorrate_percent = self . vat_prorrate_percent if vat_prorrate_percent == 100 or not self . asset_profile_id : return { } totals = self . tax_ids . compute_all ( self . asset_id . purchase_value ) total_tax = totals [ "total_included" ] - totals [ "total_excluded" ] increment = total_tax * ( 100 - vat_prorrate_percent ) / 100 return { "purchase_value" : self . asset_id . purchase_value + increment , "vat_prorrate_percent" : vat_prorrate_percent , "vat_prorrate_increment" : increment , }