pip install trytond trytond-admin -c /path/to/trytond.conf -d your_database --all python from trytond import fields, models class MyModel(models.Model): __name__ = 'mymodule.my_model' name = fields.Char('Name') value = fields.Integer('Value') <?xml version="1.0"?> <tryton> <data> <record model="ir.ui.view" id="my_model_form"> <field name="name">my_model.form</field> <field name="model">mymodule.my_model</field> <field name="arch" type="xml"> <form> <field name="name"/> <field name="value"/> </form> </field> </record> </data> </tryton> trytond-admin -c /path/to/trytond.conf -d your_database -u your_module


上一篇:
下一篇:
切换中文