mirror of
https://github.com/bringout/oca-technical.git
synced 2026-04-18 17:31:59 +02:00
Initial commit: OCA Technical packages (595 packages)
This commit is contained in:
commit
2cc02aac6e
24950 changed files with 2318079 additions and 0 deletions
|
|
@ -0,0 +1,12 @@
|
|||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<odoo>
|
||||
<record id="ir_exports_resolver_dict" model="ir.exports.resolver">
|
||||
<field name="name">ExtraData dictionary (number/text)</field>
|
||||
<field name="python_code">
|
||||
is_number = field_type in ('integer', 'float')
|
||||
ftype = "NUMBER" if is_number else "TEXT"
|
||||
value = value if is_number else str(value)
|
||||
result = {"Key": name, "Value": value, "Type": ftype, "IsPublic": True}
|
||||
</field>
|
||||
</record>
|
||||
</odoo>
|
||||
Loading…
Add table
Add a link
Reference in a new issue