Test API
test_new_api · odoo/odoo
- Repository
- odoo/odoo · module folder
- Module version
- 1.0
- Category
- Hidden/Tests
- Folder size
- 0.75 MB
- License
- LGPL-3
- Application
- No
- Auto-installable
- No
- Website
- None
- Last tracking update
- 2026-08-10 16:10:08
- Authors
- Maintainers
- None
- Committers
- Xavier Morel, Raphael Collet, Denis Ledoux, Nicolas Lempereur, Aaron Bohy, Lucas Perais (lpe), Yannick Tivisse, Christophe Monniez, Xavier-Do, Julien Mougenot, Vincent Schippefilt, Achraf (abz), Rémy Voet (ryv), Gorash, Florian Charlier, Hubert Van De Walle, Julien Banken, Vincent Larcin, nda, Victor Piryns (pivi), Antoine Dupuis (andu), Antoine (ande), Chong Wang (cwg), Louis (loti), Sven Fuehr, VAN BOSSUYT Nicolas, Pierre Pulinckx (PIPU), Pierre Pulinckx (pipu), Bastien PIERRE, stra, Krzysztof Magusiak (krma), sagu-odoo, adip-odoo, Patrick Stooks, cro, saurabh, gtsog
- Odoo dependencies
- Python dependencies
- None
- System dependencies
- None
- Required by
- test_inherit, test_inherit_depends
- Description
A module to test the API.
Code Analysis ⓘ
Views touched (19)
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
category_form |
category form view | test_new_api.category | form | New |
category_tree |
category list view | test_new_api.category | list | New |
compute_editable_form |
test_new_api.compute_editable.form | test_new_api.compute_editable | form | New |
discussion_form |
discussion form view | test_new_api.discussion | form | New |
discussion_form_2 |
discussion form view | test_new_api.discussion | form | New |
discussion_form_3 |
discussion form view | test_new_api.discussion | form | New |
message_form |
message form view | test_new_api.message | form | New |
message_tree |
message list view | test_new_api.message | list | New |
model_parent_form |
model parent form view | test_new_api.model_parent_m2o | form | New |
model_shared_cache_compute_parent_view_form |
model_shared_cache_compute_parent_view_form | test_new_api.model_shared_cache_compute_parent | form | New |
multi_form |
multi form view | test_new_api.multi | form | New |
multi_tree |
multi list view | test_new_api.multi | list | New |
view_model2_some_access |
Test attrs and groups_sub | test_new_api.model2.some_access | form | New |
view_model_all_access |
Test attrs and groups | test_new_api.model.all_access | form | New |
view_model_model_active_field_search |
Test Active Search | test_new_api.model_active_field | search | New |
view_model_model_active_field_tree |
Test Active List | test_new_api.model_active_field | list | New |
view_model_no_access |
Test attrs and groups | test_new_api.model.no_access | form | New |
view_model_some_access |
Test attrs and groups | test_new_api.model.some_access | form | New |
view_model_some_access_tree |
Test attrs and groups list | test_new_api.model.some_access | list | New |
HTTP endpoints (0)
No HTTP endpoints found for this module.
Models touched (128)
-
floatFloat -
float_2Floatdigits=(16, 2) -
float_4Floatdigits=(16, 4)
No public methods.
-
bool_falseBooleandefault=False args: 'b2' -
bool_trueBooleandefault=True args: 'b1' -
bool_undefinedBooleanargs: 'b3'
No public methods.
-
link_sibling_idMany2one → test_new_api.any.childargs: 'test_new_api.any.child' -
parent_idMany2one → test_new_api.any.parentondelete='cascade'required=True args: 'test_new_api.any.parent' -
quantityInteger -
tag_idsMany2many → test_new_api.any.tagargs: 'test_new_api.any.tag'
No public methods.
-
child_idsOne2many → test_new_api.any.childargs: 'test_new_api.any.child', 'parent_id' -
nameChar
No public methods.
-
child_idsMany2many → test_new_api.any.childargs: 'test_new_api.any.child' -
nameChar
No public methods.
-
nameCharcompute='_compute_name'compute_sudo=Truestore=True -
res_idIntegerrequired=True -
res_modelCharrequired=True
-
modified(self, fnames, *args, **kwargs)
-
attachment_idsOne2many → test_new_api.attachmentauto_join=Truedomain=<expr> args: 'test_new_api.attachment', 'res_id'
No public methods.
-
fooMany2one → test_new_api.foocompute='_compute_foo'search='_search_foo' args: 'test_new_api.foo' -
nameChar -
text1Charreadonly=Falserelated='foo.text' args: 'Text1' -
text2Charreadonly=Falserelated='foo.text'trim=True args: 'Text2' -
value1Integerreadonly=Falserelated='foo.value1' -
value2Integerreadonly=Falserelated='foo.value2'
No public methods.
-
image_attachmentBinaryattachment=True -
image_wo_attachmentBinaryattachment=False -
image_wo_attachment_relatedBinaryattachment=Falserelated='image_wo_attachment'store=True args: 'image wo attachment' -
nameCharrequired=True
No public methods.
-
barCharcompute='_compute_bar' -
bazCharcompute='_compute_baz'store=True -
fooChar
No public methods.
-
colorIntegerargs: 'Color Index' -
depthIntegercompute='_compute_depth' -
discussionsMany2many → test_new_api.discussionargs: 'test_new_api.discussion', 'test_new_api_discussion_category', 'category', 'discussion' -
display_nameCharcompute='_compute_display_name'inverse='_inverse_display_name'recursive=Truesearch='_search_display_name' -
dummyCharstore=False -
nameCharrequired=True -
parentMany2one → test_new_api.categoryondelete='cascade' args: 'test_new_api.category' -
parent_pathCharindex=True -
root_categMany2onecompute='_compute_root_categ' args: _name
No public methods.
-
country_idMany2one → test_new_api.countryargs: 'test_new_api.country' -
nameChar
No public methods.
-
company_idMany2one → res.companycompany_dependent=True args: 'res.company' -
countIntegercompany_dependent=True -
dateDatecompany_dependent=True -
fooCharcompany_dependent=True -
html1Htmlcompany_dependent=Truesanitize=False -
html2Htmlcompany_dependent=Truesanitize_attributes=Truestrip_classes=Truestrip_style=True -
momentDatetimecompany_dependent=True -
partner_idMany2one → res.partnercompany_dependent=True args: 'res.partner' -
phiFloatcompany_dependent=Truedigits=(2, 5) -
tag_idMany2one → test_new_api.multi.tagcompany_dependent=True args: 'test_new_api.multi.tag' -
textTextcompany_dependent=True -
truthBooleancompany_dependent=True
No public methods.
-
barCharcompute='_compute_bar'store=True -
companyMany2one → test_new_api.companyargs: 'test_new_api.company' -
quantityInteger
No public methods.
-
full_nameCharcompute='_compute_full_name' -
name1Char -
name2Char -
name3Char
No public methods.
-
barCharcompute='_compute_bar'inverse='_inverse_bar'store=True -
bazChar -
child_idsOne2many → test_new_api.compute.inversecompute='_compute_child_ids'inverse='_inverse_child_ids'store=True args: 'test_new_api.compute.inverse', 'parent_id' -
fooChar -
parent_idMany2one → test_new_api.compute.inverseargs: 'test_new_api.compute.inverse'
No public methods.
-
activeBoolean -
barCharcompute='_compute_bar'store=True -
bazCharcompute='_compute_baz'readonly=Falsestore=True -
countIntegerdefault=0 -
fooChar -
line_idsOne2many → test_new_api.compute.onchange.linecompute='_compute_line_ids'readonly=Falsestore=True args: 'test_new_api.compute.onchange.line', 'record_id' -
tag_idsMany2many → test_new_api.multi.tagcompute='_compute_tag_ids'readonly=Falsestore=True args: 'test_new_api.multi.tag'
-
copy_data(self, default=None)
-
barCharcompute='_compute_bar' -
fooChar -
record_idMany2one → test_new_api.compute.onchangeondelete='cascade' args: 'test_new_api.compute.onchange'
No public methods.
-
barCharcompute='_compute_bar'store=True -
fooChardefault=''
No public methods.
-
barCharcompute='_compute_bar'readonly=Falsestore=True -
fooChar
No public methods.
-
name_for_uidCharcompute='_compute_name_for_uid'compute_sudo=True
No public methods.
-
barCharcompute='_compute_bar' -
bareCharcompute='_compute_bare'readonly=False -
baresCharcompute='_compute_bares'readonly=Falsestore=True -
barsCharcompute='_compute_bars'store=True -
fooChar
No public methods.
-
barInteger -
fooInteger -
nameChar -
sub_barInteger -
sub_fooIntegercompute='_compute_sub_foo'
No public methods.
-
nameChar
No public methods.
-
author_idMany2one → test_new_api.personargs: 'test_new_api.person' -
lesson_idsOne2many → test_new_api.lessonargs: 'test_new_api.lesson', 'course_id' -
m2o_reference_idMany2oneReferencemodel_field='m2o_reference_model'string='reference to lesson too' -
m2o_reference_modelCharstring='reference to the model for m2o_reference' -
nameCharargs: 'Name' -
private_fieldChargroups='base.group_no_one' -
referenceReferenceselection='_selection_reference_model'string='reference to lesson'
No public methods.
-
editionsOne2many → test_new_api.creativework.editiondomain=[('res_model', '=', _name)] args: 'test_new_api.creativework.edition', 'res_id' -
nameChar
No public methods.
-
nameChar -
res_idIntegerrequired=True -
res_modelCharreadonly=Falserelated='res_model_id.model'store=True -
res_model_idMany2one → ir.modelondelete='cascade'required=True args: 'ir.model'
No public methods.
-
editionsOne2many → test_new_api.creativework.editiondomain=[('res_model', '=', _name)] args: 'test_new_api.creativework.edition', 'res_id' -
nameChar
No public methods.
-
pirate_idMany2one → test_new_api.pirateargs: 'test_new_api.pirate' -
prisoner_idMany2one → test_new_api.prisonerargs: 'test_new_api.prisoner' -
ship_idMany2one → test_new_api.shipargs: 'test_new_api.ship'
No public methods.
-
attributes_definitionPropertiesDefinitionargs: 'Message Properties' -
categoriesMany2many → test_new_api.categoryargs: 'test_new_api.category', 'test_new_api_discussion_category', 'discussion', 'category' -
emailsOne2many → test_new_api.emailmessageargs: 'test_new_api.emailmessage', 'discussion' -
historyJsondefault={'delete_messages': []} args: 'History' -
important_emailsOne2many → test_new_api.emailmessagedomain=[('important', '=', True)] args: 'test_new_api.emailmessage', 'discussion' -
important_messagesOne2many → test_new_api.messagedomain=[('important', '=', True)] args: 'test_new_api.message', 'discussion' -
message_concatTextstring='Message concatenate' -
messagesOne2many → test_new_api.messagecopy=True args: 'test_new_api.message', 'discussion' -
moderatorMany2one → res.usersargs: 'res.users' -
nameCharhelp='Description of discussion.'required=Truestring='Title' -
participantsMany2many → res.userscontext={'active_test': False} args: 'res.users' -
very_important_messagesOne2many → test_new_api.messagedomain=<expr> args: 'test_new_api.message', 'discussion'
No public methods.
-
display_nameCharcompute='_compute_display_name'store=True
No public methods.
No new fields.
Public methods (0)No public methods.
-
activeBooleanrelated='message.active'related_sudo=Falsestore=True args: 'Active Message' -
email_toCharargs: 'To' -
messageMany2one → test_new_api.messageondelete='cascade'required=True args: 'test_new_api.message', 'Message'
No public methods.
-
all_employee_idsOne2many → test_new_api.personcontext={'active_test': False} args: 'test_new_api.person', 'employer_id' -
employee_idsOne2many → test_new_api.personargs: 'test_new_api.person', 'employer_id' -
nameCharargs: 'Name'
No public methods.
-
nameCharargs: 'Name'
No public methods.
-
numberIntegerargs: 'Number'
No public methods.
-
pArTneR_321_idMany2one → res.partnerargs: 'res.partner'
No public methods.
-
nameChar -
textChartrim=False -
value1Integerchange_default=True -
value2Integer
No public methods.
-
nameTextindex='trigram'translate=True args: 'Name trigram'
No public methods.
-
model_computed_idsOne2many → test_new_api.model_many2one_referencecompute='_compute_model_computed_ids'string='Models Computed' args: 'test_new_api.model_many2one_reference' -
model_idsOne2many → test_new_api.model_many2one_referencestring='Models' args: 'test_new_api.model_many2one_reference', 'res_id' -
model_ids_countIntegercompute='_compute_model_ids_count' args: 'Count'
No public methods.
-
attendee_idsMany2many → test_new_api.personcontext={'active_test': False} args: 'test_new_api.person', 'lesson_ids' -
course_idMany2one → test_new_api.courseargs: 'test_new_api.course' -
dateDate -
nameCharargs: 'Name' -
teacher_birthdateDaterelated='teacher_id.birthday' -
teacher_idMany2one → test_new_api.personargs: 'test_new_api.person'
No public methods.
-
activeBooleandefault=True -
attributesPropertiesdefinition='discussion.attributes_definition'string='Properties' -
authorMany2one → res.usersdefault=<expr> args: 'res.users' -
author_partnerMany2one → res.partnercompute='_compute_author_partner'search='_search_author_partner' args: 'res.partner' -
bodyTextindex='trigram' -
discussionMany2one → test_new_api.discussionondelete='cascade' args: 'test_new_api.discussion' -
discussion_nameCharreadonly=Falserelated='discussion.name'string='Discussion Name' -
display_nameCharcompute='_compute_display_name'string='Abstract' -
double_sizeIntegercompute='_compute_double_size' -
has_important_siblingBooleancompute='_compute_has_important_sibling' -
importantBoolean -
labelChartranslate=True -
nameCharcompute='_compute_name'store=Truestring='Title' -
priorityInteger -
sizeIntegercompute='_compute_size'search='_search_size'
-
write(self, vals)
-
amountMonetary -
comment1Htmlsanitize=False -
comment2Htmlsanitize_attributes=Truestrip_classes=False -
comment3Htmlsanitize_attributes=Truestrip_classes=True -
comment4Htmlsanitize_attributes=Truestrip_style=True -
comment5Htmlsanitize_attributes=Falsesanitize_overridable=True -
countInteger -
currency_idMany2one → res.currencydefault=<expr> args: 'res.currency' -
dateDate -
fooChar -
langSelectionselection='_get_lang'string='Language' -
momentDatetime -
nowDatetimecompute='_compute_now' -
numberFloatdefault=3.14digits=(10, 2) -
number2Floatdigits='New API Precision' -
referenceReferenceselection='_reference_models'string='Related Document' -
textText -
truthBoolean
No public methods.
No new fields.
Public methods (0)No public methods.
-
abIntegerdefault=1 -
cdIntegerdefault=1groups='base.group_portal' -
efIntegerdefault=1
-
action_full(self)
-
abIntegerdefault=1 -
cdIntegerdefault=1groups='base.group_portal'
No public methods.
-
aInteger -
bInteger -
cInteger -
dIntegerdefault=1groups='base.group_erp_manager' -
eIntegerdefault=1groups='base.group_erp_manager,base.group_multi_company' -
fIntegergroups='base.group_erp_manager,base.group_portal' -
gIntegerdefault=1groups='base.group_erp_manager,base.group_multi_company,!base.group_portal' -
g_idMany2one → test_new_api.model.all_accessstring='m2o g_id' args: 'test_new_api.model.all_access' -
hIntegerdefault=1groups='base.group_erp_manager,!base.group_portal' -
iIntegerdefault=1groups='!base.group_portal' -
jIntegerdefault=1groups='base.group_portal' -
kIntegerdefault=1groups='base.group_public'
No public methods.
-
g_dIntegerrelated='g_id.d' -
g_idMany2one → test_new_api.model.some_accessdomain='[("a", "=", g_d)]' args: 'test_new_api.model.some_access'
No public methods.
-
xxx_idMany2one → test_new_api.model2.some_accessargs: 'test_new_api.model2.some_access' -
xxx_sub_idMany2onerelated='xxx_id.g_id'
No public methods.
-
a_restricted_b_idsMany2many → test_new_api.model_brelation='rel_model_a_model_b_1' args: 'test_new_api.model_b' -
b_restricted_b_idsMany2many → test_new_api.model_bondelete='restrict'relation='rel_model_a_model_b_2' args: 'test_new_api.model_b' -
nameChar
No public methods.
-
activeBooleandefault=True -
active_children_idsOne2many → test_new_api.model_active_fieldcontext={'active_test': True} args: 'test_new_api.model_active_field', 'parent_id' -
all_children_idsOne2many → test_new_api.model_active_fieldcontext={'active_test': False} args: 'test_new_api.model_active_field', 'parent_id' -
all_relatives_idsMany2many → test_new_api.model_active_fieldcontext={'active_test': False} args: 'test_new_api.model_active_field', 'model_active_field_relatives_rel', 'source_id', 'dest_id' -
children_idsOne2many → test_new_api.model_active_fieldargs: 'test_new_api.model_active_field', 'parent_id' -
nameChar -
parent_activeBooleanrelated='parent_id.active'store=Truestring='Active Parent' -
parent_idMany2one → test_new_api.model_active_fieldargs: 'test_new_api.model_active_field' -
relatives_idsMany2many → test_new_api.model_active_fieldargs: 'test_new_api.model_active_field', 'model_active_field_relatives_rel', 'source_id', 'dest_id'
No public methods.
-
a_restricted_a_idsMany2many → test_new_api.model_aondelete='restrict'relation='rel_model_a_model_b_1' args: 'test_new_api.model_a' -
b_restricted_a_idsMany2many → test_new_api.model_arelation='rel_model_a_model_b_2' args: 'test_new_api.model_a' -
nameChar
No public methods.
-
binaryBinary -
binary_computedBinarycompute='_compute_binary' -
binary_related_no_storeBinaryreadonly=Falserelated='binary'store=False args: 'Binary Related No Store' -
binary_related_storeBinaryreadonly=Falserelated='binary'store=True args: 'Binary Related Store'
No public methods.
-
company_idMany2one → res.companyargs: 'res.company' -
nameChar -
parent_idMany2one → test_new_api.model_parentcheck_company=Truestring='Parent' args: 'test_new_api.model_parent' -
parent_idsMany2many → test_new_api.model_parentcheck_company=Truestring='Parents' args: 'test_new_api.model_parent'
No public methods.
-
costIntegercompute='_compute_cost'readonly=Falsestore=True -
nameCharargs: 'Name' -
parent_idMany2one → test_new_api.model_parent_m2oondelete='cascade' args: 'test_new_api.model_parent_m2o' -
size1Integercompute='_compute_sizes'store=True -
size2Integercompute='_compute_sizes'store=True
-
write(self, vals)
-
company_idMany2one → res.companyargs: 'res.company' -
nameChar -
parent_idMany2one → test_new_api.model_parentcheck_company=False args: 'test_new_api.model_parent'
No public methods.
-
barInteger -
fooChar
No public methods.
-
imageImage -
image_128Imagemax_height=128max_width=128 args: 'Image 128' -
image_256Imagemax_height=256max_width=256readonly=Falserelated='image'store=False args: 'Image 256' -
image_512Imagemax_height=512max_width=512readonly=Falserelated='image'store=True args: 'Image 512' -
image_64Imageattachment=Falsemax_height=64max_width=64readonly=Falserelated='image'store=True args: 'Image 64' -
nameCharrequired=True
No public methods.
-
constBooleandefault=True -
res_idMany2oneReferencemodel_field='res_model' args: 'Resource ID' -
res_modelCharargs: 'Resource Model'
No public methods.
-
company_idMany2one → res.companyargs: 'res.company' -
nameChar
No public methods.
-
child_idsOne2many → test_new_api.model_child_m2ostring='Children' args: 'test_new_api.model_child_m2o', 'parent_id' -
costIntegercompute='_compute_cost'store=True -
nameCharargs: 'Name'
No public methods.
-
my_selectionSelectionargs: [('foo', 'Foo'), ('bar', 'Bar')]
No public methods.
-
my_selectionSelectionondelete={'quux': 'set null'}selection_add=[('quux', 'Quux')]
No public methods.
-
my_selectionSelectionselection_add=[('ham', 'Ham')]
No public methods.
-
my_selectionSelectioncompany_dependent=True args: [('manual', 'Manual'), ('auto', 'Automatic')]
No public methods.
-
my_selectionSelectionselection_add=[('semi_auto', 'Semi-Automatic')]
No public methods.
-
my_selectionSelectionstore=False args: [('foo', 'Foo'), ('bar', 'Bar')]
No public methods.
-
related_selectionSelectionrelated='selection_id.my_selection' -
selection_idMany2one → test_new_api.model_selection_basecomodel_name='test_new_api.model_selection_base'required=True
No public methods.
-
related_selectionSelectionreadonly=Falserelated='selection_id.my_selection' -
selection_idMany2one → test_new_api.model_selection_basecomodel_name='test_new_api.model_selection_base'required=True
No public methods.
-
activeBooleandefault=True -
my_selectionSelectiondefault='foo'required=True args: [('foo', 'Foo'), ('bar', 'Bar')]
No public methods.
-
my_selectionSelectionondelete={'baz': 'set default'}selection_add=[('baz', 'Baz')]
No public methods.
-
my_selectionSelectionondelete={'eggs': 'cascade'}selection_add=[('eggs', 'Eggs')]
No public methods.
-
my_selectionSelectionondelete={'bacon': 'set bar'}selection_add=[('bacon', 'Bacon')]
No public methods.
-
my_selectionSelectionondelete={'pikachu': 'set default', 'eevee': <expr>}selection_add=[('pikachu', 'Pikachu'), ('eevee', 'Eevee')]
No public methods.
-
my_selectionSelectionondelete={'knickers': <expr>}selection_add=[('knickers', 'Oh la la')]
No public methods.
-
my_selectionSelectiondefault='foo'required=True args: [('foo', 'Foo'), ('bar', 'Bar')]
No public methods.
-
my_selectionSelectionondelete={'divinity': 'set default'}selection_add=[('divinity', 'Divinity: Original Sin 2')]
-
write(self, vals)
-
amountInteger -
parent_idMany2one → test_new_api.model_shared_cache_compute_parentargs: 'test_new_api.model_shared_cache_compute_parent' -
user_idMany2one → res.usersdefault=<expr> args: 'res.users'
No public methods.
-
line_idsOne2many → test_new_api.model_shared_cache_compute_linestring='Timesheets' args: 'test_new_api.model_shared_cache_compute_line', 'parent_id' -
nameCharstring='Task Name' -
total_amountIntegercompute='_compute_total_amount'compute_sudo=Truestore=True
No public methods.
-
line_idsOne2many → test_new_api.modified.lineargs: 'test_new_api.modified.line', 'modified_id' -
nameCharargs: 'Name' -
total_quantityIntegercompute='_compute_total_quantity'
No public methods.
-
child_idsOne2many → test_new_api.modified.lineargs: 'test_new_api.modified.line', 'parent_id' -
modified_idMany2one → test_new_api.modifiedargs: 'test_new_api.modified' -
modified_nameCharrelated='modified_id.name' -
parent_idMany2one → test_new_api.modified.lineargs: 'test_new_api.modified.line' -
priceFloat -
quantityInteger -
total_priceFloatcompute='_compute_total_quantity'recursive=True -
total_price_quantityFloatcompute='_compute_total_price_quantity'
No public methods.
-
amountMonetarycurrency_field='base_currency_id' -
base_currency_idMany2one → res.currencyargs: 'res.currency'
No public methods.
-
monetary_idMany2one → test_new_api.monetary_baseargs: 'test_new_api.monetary_base' -
x_amountMonetaryrelated='monetary_id.amount' -
x_currency_idMany2one → res.currencyrelated='monetary_id.base_currency_id' args: 'res.currency'
No public methods.
-
currency_idMany2one → res.currencyargs: 'res.currency' -
monetary_idMany2one → test_new_api.monetary_baseondelete='cascade'required=True args: 'test_new_api.monetary_base'
No public methods.
-
currency_idMany2one → res.currencyargs: 'res.currency' -
line_idsOne2many → test_new_api.monetary_order_lineargs: 'test_new_api.monetary_order_line', 'order_id' -
totalMonetarycompute='_compute_total'store=True
No public methods.
-
order_idMany2one → test_new_api.monetary_orderondelete='cascade'required=True args: 'test_new_api.monetary_order' -
subtotalFloatdigits=(10, 2)
No public methods.
-
amountMonetaryrelated='monetary_id.amount' -
currency_idMany2one → res.currencyrelated='monetary_id.base_currency_id' args: 'res.currency' -
monetary_idMany2one → test_new_api.monetary_baseargs: 'test_new_api.monetary_base' -
totalMonetary
No public methods.
-
line_idsOne2many → test_new_api.move_linedomain=[('visible', '=', True)] args: 'test_new_api.move_line', 'move_id' -
payment_idsOne2many → test_new_api.paymentargs: 'test_new_api.payment', 'move_id' -
quantityIntegercompute='_compute_quantity'store=True -
tag_idMany2one → test_new_api.multi.tagargs: 'test_new_api.multi.tag' -
tag_nameCharrelated='tag_id.name' -
tag_repeatInteger -
tag_stringCharcompute='_compute_tag_string'
No public methods.
-
move_idMany2one → test_new_api.moveondelete='cascade'required=True args: 'test_new_api.move' -
quantityInteger -
visibleBooleandefault=True
No public methods.
-
linesOne2many → test_new_api.multi.lineargs: 'test_new_api.multi.line', 'multi' -
nameCharreadonly=Truerelated='partner.name' -
partnerMany2one → res.partnerargs: 'res.partner' -
partnersOne2manyrelated='partner.child_ids' -
tagsMany2many → test_new_api.multi.tagdomain=[('name', 'ilike', 'a')] args: 'test_new_api.multi.tag'
No public methods.
-
multiMany2one → test_new_api.multiondelete='cascade' args: 'test_new_api.multi' -
nameChar -
partnerMany2onerelated='multi.partner'store=True -
tagsMany2many → test_new_api.multi.tagargs: 'test_new_api.multi.tag'
No public methods.
No new fields.
Public methods (0)No public methods.
-
nameChar
No public methods.
-
bar1Charcompute='_compute_bars'inverse='_inverse_bar1'store=True -
bar2Charcompute='_compute_bars'inverse='_inverse_bar23'store=True -
bar3Charcompute='_compute_bars'inverse='_inverse_bar23'store=True -
fooChardefault=''required=True
No public methods.
-
line_idsOne2many → test_new_api.one2many.linecompute='_compute_line_ids'domain=[('count', '>', 0)]readonly=Falsestore=True args: 'test_new_api.one2many.line', 'container_id' -
nameChar
No public methods.
-
container_idMany2one → test_new_api.one2manyrequired=True args: 'test_new_api.one2many' -
countIntegerdefault=1 -
nameChar
No public methods.
-
nameCharstring='Name'
No public methods.
-
move_idMany2one → test_new_api.moveondelete='cascade'required=True args: 'test_new_api.move'
No public methods.
-
activeBooleandefault=True -
birthdayDate -
employer_idMany2one → test_new_api.employerargs: 'test_new_api.employer' -
lesson_idsMany2many → test_new_api.lessonargs: 'test_new_api.lesson', 'course_id' -
nameCharargs: 'Name'
No public methods.
-
activation_dateDate -
loginChar -
person_idMany2one → test_new_api.personondelete='cascade'required=True args: 'test_new_api.person'
No public methods.
-
nameCharargs: 'Name' -
ship_idsMany2many → test_new_api.shipargs: 'test_new_api.ship', 'test_new_api_crew', 'pirate_id', 'ship_id'
No public methods.
-
commercial_idMany2one → res.partnercompute='_compute_commercial_id'precompute=Truestore=True args: 'res.partner' -
line_idsOne2many → test_new_api.precompute.lineargs: 'test_new_api.precompute.line', 'parent_id' -
lowerCharcompute='_compute_names'precompute=Truestore=True -
lowupCharcompute='_compute_lowup'precompute=Truestore=True -
nameCharrequired=True -
partner_idMany2one → res.partnerargs: 'res.partner' -
sizeIntegercompute='_compute_size'precompute=Truestore=True -
upperCharcompute='_compute_names'precompute=Truestore=True
No public methods.
-
editerCharcompute='_compute_editer'precompute=Truereadonly=Falsestore=True -
nameChar -
readerCharcompute='_compute_reader'precompute=Truestore=True -
setterCharcompute='_compute_setter'inverse='_inverse_setter'precompute=Truestore=True
No public methods.
-
barCharcompute='_compute_bar'precompute=Truereadonly=Falsestore=True -
bazCharcompute='_compute_baz'precompute=Truereadonly=Falsestore=True -
baz2Charcompute='_compute_baz2'precompute=Truestore=True -
fooChar
No public methods.
-
nameCharrequired=True -
parent_idMany2one → test_new_api.precomputeargs: 'test_new_api.precompute' -
sizeIntegercompute='_compute_size'precompute=Truestore=True
No public methods.
-
amountMonetarycompute='_compute_amount'precompute=Truestore=True -
currency_idMany2one → res.currencycompute='_compute_currency_id'precompute=Truestore=True args: 'res.currency'
No public methods.
-
barCharcompute='_compute_bar'precompute=Truereadonly=Truestore=True -
bazCharcompute='_compute_baz'precompute=Truereadonly=Falsestore=True -
fooChar -
stateSelectiondefault='draft' args: [('draft', 'Draft'), ('confirmed', 'Confirmed')]
No public methods.
-
nameCharprecompute=Truerelated='partner_id.name'required=Truestore=True -
partner_idMany2one → res.partnerrequired=True args: 'res.partner'
No public methods.
-
descriptionChartranslate=True args: 'Description' -
gretelCharprefetch='Hansel and Gretel' args: 'Gretel' -
hanselIntegerprefetch='Hansel and Gretel' args: 'Hansel' -
harryIntegerprefetch='Harry Potter' args: 'Harry Potter' -
hermioneCharprefetch='Harry Potter' args: 'Hermione Granger' -
html_descriptionHtmltranslate=True args: 'Styled description' -
line_idsOne2many → test_new_api.prefetch.lineargs: 'test_new_api.prefetch.line', 'prefetch_id' -
nameChartranslate=True args: 'Name' -
rare_descriptionCharprefetch=Falsetranslate=True args: 'Rare Description' -
rare_html_descriptionHtmlprefetch=Falsetranslate=True args: 'Rare Styled description' -
ronFloatprefetch='Harry Potter' args: 'Ron Weasley'
No public methods.
-
nameCharargs: 'Name' -
ship_idsMany2many → test_new_api.shipargs: 'test_new_api.ship', 'test_new_api_crew', 'prisoner_id', 'ship_id'
No public methods.
-
context_dependent_nameCharcompute='_compute_context_dependent_name'recursive=True -
display_nameCharcompute='_compute_display_name'recursive=Truestore=True -
full_nameCharcompute='_compute_full_name'recursive=True -
nameCharrequired=True -
parentMany2one → test_new_api.recursiveondelete='cascade' args: 'test_new_api.recursive'
No public methods.
-
children_idsOne2many → test_new_api.recursive.treeargs: 'test_new_api.recursive.tree', 'parent_id' -
display_nameCharcompute='_compute_display_name'recursive=Truestore=True -
nameCharrequired=True -
parent_idMany2one → test_new_api.recursive.treeondelete='cascade' args: 'test_new_api.recursive.tree'
No public methods.
-
foo_bar_idMany2onerelated='foo_id.bar_id'related_sudo=Falsestring='foo_bar_id' -
foo_bar_id_nameCharrelated='foo_bar_id.name'related_sudo=False args: 'foo_bar_id_name' -
foo_bar_nameCharrelated='foo_id.bar_id.name'related_sudo=False args: 'foo_bar_name' -
foo_bar_name_sudoCharrelated='foo_id.bar_id.name'related_sudo=True args: 'foo_bar_name_sudo' -
foo_bar_sudo_idMany2onerelated='foo_id.bar_id'related_sudo=Truestring='foo_bar_sudo_id' -
foo_bar_sudo_id_nameCharrelated='foo_bar_sudo_id.name'related_sudo=False args: 'foo_bar_sudo_id_name' -
foo_float_idFloatrelated='foo_id.test_float' -
foo_idMany2one → test_new_api.related_fooargs: 'test_new_api.related_foo' -
foo_id_bar_nameCharrelated='foo_id.bar_name'related_sudo=False args: 'foo_id_bar_name' -
foo_nameCharrelated='foo_id.name'related_sudo=False args: 'foo_name' -
foo_name_sudoCharrelated='foo_id.name'related_sudo=True args: 'foo_name_sudo' -
messageMany2one → test_new_api.messageargs: 'test_new_api.message' -
message_currencyMany2onerelated='message.author'string='Message Author' -
message_nameTextrelated='message.body'related_sudo=Falsestring='Message Body' -
nameChar -
related_nameCharreadonly=Falserelated='name'string='A related on Name' -
related_related_nameCharreadonly=Falserelated='related_name'string='A related on a related on Name'
No public methods.
-
htmlHtmltranslate=html_translate args: 'HTML' -
nameChartranslate=True args: 'Name'
No public methods.
-
computed_htmlCharcompute='_compute_html' args: 'HTML Computed' -
computed_nameCharcompute='_compute_name' args: 'Name Computed' -
htmlHtmlreadonly=Falserelated='related_id.html' args: 'HTML Related' -
nameCharreadonly=Falserelated='related_id.name' args: 'Name Related' -
name_enCharcompute='_compute_name_en' args: 'Name EN' -
related_idMany2one → test_new_api.related_translation_1string='Parent Model' args: 'test_new_api.related_translation_1'
No public methods.
-
htmlHtmlreadonly=Falserelated='related_id.html' args: 'HTML Related' -
nameCharreadonly=Falserelated='related_id.name' args: 'Name Related' -
related_idMany2one → test_new_api.related_translation_2string='Parent Model' args: 'test_new_api.related_translation_2'
No public methods.
-
barMany2one → res.countryrequired=True args: 'res.country' -
fooMany2one → res.currencyondelete='cascade'required=True args: 'res.currency'
No public methods.
-
barMany2one → res.countryrequired=True args: 'res.country' -
fooMany2one → res.currencyondelete='restrict'required=True args: 'res.currency'
No public methods.
-
otherSelectionargs: [('foo', 'Foo'), ('bar', 'Bar')] -
stateSelectionargs: [('foo', 'Foo'), ('bar', 'Bar')]
No public methods.
-
nameCharargs: 'Name' -
pirate_idsMany2many → test_new_api.pirateargs: 'test_new_api.pirate', 'test_new_api_crew', 'ship_id', 'pirate_id' -
prisoner_idsMany2many → test_new_api.prisonerargs: 'test_new_api.prisoner', 'test_new_api_crew', 'ship_id', 'prisoner_id'
No public methods.
-
stateSelectionargs: [('draft', 'Draft'), ('confirmed', 'Confirmed'), ('done', 'Done')]
No public methods.
-
member_idsOne2many → test_new_api.team.memberargs: 'test_new_api.team.member', 'team_id' -
nameChar -
parent_idMany2one → test_new_api.teamargs: 'test_new_api.team'
No public methods.
-
nameCharargs: 'Name' -
parent_idMany2one → test_new_api.teamrelated='team_id.parent_id' args: 'test_new_api.team' -
team_idMany2one → test_new_api.teamargs: 'test_new_api.team'
No public methods.
No new fields.
Public methods (0)No public methods.
-
middle_idsOne2many → test_new_api.trigger.middleargs: 'test_new_api.trigger.middle', 'left_id' -
right_idMany2onerelated='middle_ids.right_id'store=True
No public methods.
-
left_idMany2one → test_new_api.trigger.leftrequired=True args: 'test_new_api.trigger.left' -
right_idMany2one → test_new_api.trigger.rightrequired=True args: 'test_new_api.trigger.right'
No public methods.
-
left_idsOne2many → test_new_api.trigger.leftargs: 'test_new_api.trigger.left', 'right_id' -
left_sizeIntegercompute='_compute_left_size'store=True
No public methods.
-
child_idsOne2many → test_new_api.unsearchable.o2margs: 'test_new_api.unsearchable.o2m', 'parent_id' -
nameCharargs: 'Name' -
parent_idMany2one → test_new_api.unsearchable.o2mcompute='_compute_parent_id'store=False args: 'test_new_api.unsearchable.o2m' -
stored_parent_idMany2one → test_new_api.unsearchable.o2mstore=True args: 'test_new_api.unsearchable.o2m'
No public methods.
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…