Closed QuocDuong1306 closed 4 months ago
Wondering: we should probably add these fields automatically as we do with buttons here https://github.com/OCA/edi-framework/blob/16.0/edi_oca/models/edi_exchange_consumer_mixin.py#L118
Wondering: we should probably add these fields automatically as we do with buttons here https://github.com/OCA/edi-framework/blob/16.0/edi_oca/models/edi_exchange_consumer_mixin.py#L118
I tried something like that
for node in doc.xpath("//group[@name='edi_main']"):
node.addprevious(etree.Element(
"field",
{
"name": "edi_config",
"invisible": "1",
},
))
node.addprevious(etree.Element(
"field",
{
"name": "edi_has_form_config",
"invisible": "1",
},
))
But is not working
/ocabot merge patch
Hey, thanks for contributing! Proceeding to merge this for you. Prepared branch 16.0-ocabot-merge-pr-68-by-simahawk-bump-patch, awaiting test results.
Congratulations, your PR was merged at ca558c0f22229cb3084931ceea4f3ab4ae0327f9. Thanks a lot for contributing to OCA. ❤️
The error starts from: here
Throw error: here
Solutions:
string
attrb in the fields in the template, it will throw new error (because viewFieldsInfo is stillundefined
)fieldName
appears in the formstock.picking
) --> So we makeedi_config
andedi_has_form_config
appear in stock.picking form view)