Commit 3e7bdd2 1 parent b1a9b7f commit 3e7bdd2 Copy full SHA for 3e7bdd2
File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -443,14 +443,14 @@ def _ubl_add_item(
443
443
node_name = "ClassifiedTaxCategory" ,
444
444
version = version ,
445
445
)
446
- for attribute_value in product .attribute_line_ids . mapped ( "value_ids" ):
446
+ for ptav in product .product_template_attribute_value_ids . _only_active ( ):
447
447
item_property = etree .SubElement (
448
448
item , ns ["cac" ] + "AdditionalItemProperty"
449
449
)
450
450
property_name = etree .SubElement (item_property , ns ["cbc" ] + "Name" )
451
- property_name .text = attribute_value .attribute_id .name
451
+ property_name .text = ptav .attribute_id .name
452
452
property_value = etree .SubElement (item_property , ns ["cbc" ] + "Value" )
453
- property_value .text = attribute_value .name
453
+ property_value .text = ptav .name
454
454
return item
455
455
456
456
@api .model
You can’t perform that action at this time.
0 commit comments