我想要一个通过文件添加on 2 many字段的值的功能(批量上传数据),我如何才能在odoo-16中实现这一点。如果你有任何人知道请解释一下我如何才能做到这一点正确
我试着使用link:https://www.cybrosys.com/blog/import-xlsx-files-in-odoo-using-openpyxl,但我没有正确地理解它,我如何使用它来实现我的功能。请提供解决方案或建议,以实现这一目标。
我想要一个通过文件添加on 2 many字段的值的功能(批量上传数据),我如何才能在odoo-16中实现这一点。如果你有任何人知道请解释一下我如何才能做到这一点正确
我试着使用link:https://www.cybrosys.com/blog/import-xlsx-files-in-odoo-using-openpyxl,但我没有正确地理解它,我如何使用它来实现我的功能。请提供解决方案或建议,以实现这一目标。
1条答案
按热度按时间nhaq1z211#
如果你正在尝试写数据抛出Python,这可能会帮助你:
例如,如果您的One2many字段名称是只有name属性的fee_ids,并且您想要创建一个新记录并链接到fee_ids,则应该像下面这样完成:
希望它能帮助你