OCA / edi-framework

GNU Affero General Public License v3.0
6 stars 26 forks source link

[16.0][FIX] edi_stock_oca: fixing missing string field information from the stock.picking model #68

Closed QuocDuong1306 closed 4 months ago

QuocDuong1306 commented 5 months ago

image

The error starts from: here

Throw error: here

Solutions:

simahawk commented 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

santostelmo commented 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

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

simahawk commented 4 months ago

/ocabot merge patch

OCA-git-bot commented 4 months ago

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.

OCA-git-bot commented 4 months ago

Congratulations, your PR was merged at ca558c0f22229cb3084931ceea4f3ab4ae0327f9. Thanks a lot for contributing to OCA. ❤️