Commit c7dee35 1 parent d8396e8 commit c7dee35 Copy full SHA for c7dee35
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 @@ -450,14 +450,14 @@ def _ubl_add_item(
450
450
node_name = "ClassifiedTaxCategory" ,
451
451
version = version ,
452
452
)
453
- for attribute_value in product .attribute_line_ids . mapped ( "value_ids" ) :
453
+ for ptav in product .product_template_attribute_value_ids :
454
454
item_property = etree .SubElement (
455
455
item , ns ["cac" ] + "AdditionalItemProperty"
456
456
)
457
457
property_name = etree .SubElement (item_property , ns ["cbc" ] + "Name" )
458
- property_name .text = attribute_value .attribute_id .name
458
+ property_name .text = ptav .attribute_id .name
459
459
property_value = etree .SubElement (item_property , ns ["cbc" ] + "Value" )
460
- property_value .text = attribute_value .name
460
+ property_value .text = ptav .name
461
461
462
462
@api .model
463
463
def _ubl_add_tax_subtotal (
You can’t perform that action at this time.
0 commit comments