Skip to content

Commit

Permalink
Merge PR #914 into 13.0
Browse files Browse the repository at this point in the history
Signed-off-by simahawk
  • Loading branch information
OCA-git-bot committed Feb 1, 2024
2 parents d8396e8 + 2750ce9 commit 7f8e578
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions base_ubl/models/ubl.py
Original file line number Diff line number Diff line change
Expand Up @@ -450,14 +450,14 @@ def _ubl_add_item(
node_name="ClassifiedTaxCategory",
version=version,
)
for attribute_value in product.attribute_line_ids.mapped("value_ids"):
for ptav in product.product_template_attribute_value_ids._only_active():
item_property = etree.SubElement(
item, ns["cac"] + "AdditionalItemProperty"
)
property_name = etree.SubElement(item_property, ns["cbc"] + "Name")
property_name.text = attribute_value.attribute_id.name
property_name.text = ptav.attribute_id.name
property_value = etree.SubElement(item_property, ns["cbc"] + "Value")
property_value.text = attribute_value.name
property_value.text = ptav.name

@api.model
def _ubl_add_tax_subtotal(
Expand Down

0 comments on commit 7f8e578

Please sign in to comment.