_____ _ _ _ _____ _ _
|_ _| | | | | | | _ | | | (_)
| | _ __ ___| |_ __ _| | | | | | | __| | ___ ___ _ _ __
| || '_ \/ __| __/ _` | | | | | | |/ _` |/ _ \ / _ \ | | '_ \
_| || | | \__ \ || (_| | | | \ \_/ / (_| | (_) | (_) | | | | | |
\___/_| |_|___/\__\__,_|_|_| \___/ \__,_|\___/ \___/ |_|_| |_|
_ _______ _ _ _ _ _ _ _
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/odoo/fields.py b/odoo/fields.py | |
index e4b153f3982..76caf1f38c5 100644 | |
--- a/odoo/fields.py | |
+++ b/odoo/fields.py | |
@@ -333,6 +333,7 @@ class Field(MetaField('DummyField', (object,), {})): | |
def __getattr__(self, name): | |
""" Access non-slot field attribute. """ | |
+ print(name) | |
try: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Recompute amount_total for account.invoice | |
env.add_todo(model._fields['amount_total'], object) | |
model.recompute() | |
# where | |
# object - recordset of instances to recompute field for | |
# model - recordset instances model |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import sys | |
import logging | |
from odoo.service import server | |
from odoo.tools import misc | |
""" | |
Import this file from one loaded Odoo addon. | |
Update line 20 with path to odoo launcher. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Copyright (C) 2015, Ajax.org B.V. | |
* This software is available under the Cloud9 SDK License, available from | |
* https://github.com/c9/core/blob/master/LICENSE. | |
*/ | |
var net = require("net"); | |
var debuggedProcessHost = "{DEBUGGED_PROCESS_HOST}"; | |
var debuggedProcessPort = parseInt("{DEBUGGED_PROCESS_PORT}", 10); |