summaryrefslogtreecommitdiff
path: root/doc/api_integration.rst
diff options
context:
space:
mode:
Diffstat (limited to 'doc/api_integration.rst')
-rw-r--r--doc/api_integration.rst32
1 files changed, 16 insertions, 16 deletions
diff --git a/doc/api_integration.rst b/doc/api_integration.rst
index 8c0cec49581..b191a741d4e 100644
--- a/doc/api_integration.rst
+++ b/doc/api_integration.rst
@@ -620,7 +620,7 @@ updating a record):
"help": "BarCode",
"string": "EAN13"
},
- "property_account_position": {
+ "property_account_position_id": {
"type": "many2one",
"help": "The fiscal position will determine taxes and accounts used for the partner.",
"string": "Fiscal Position"
@@ -635,7 +635,7 @@ updating a record):
"help": "",
"string": "Geo Localization Date"
},
- "ref_companies": {
+ "ref_company_ids": {
"type": "one2many",
"help": "",
"string": "Companies that refers to partner"
@@ -1257,15 +1257,15 @@ the workflow instance associated with the record.
'res.partner', 'search_read',
[[('customer', '=', True)]],
{'limit': 1, 'fields': [
- 'property_account_receivable',
- 'property_payment_term',
- 'property_account_position']
+ 'property_account_receivable_id',
+ 'property_payment_term_id',
+ 'property_account_position_id']
})[0]
invoice_id = models.execute_kw(
db, uid, password,
'account.invoice', 'create', [{
'partner_id': client['id'],
- 'account_id': client['property_account_receivable'][0],
+ 'account_id': client['property_account_receivable_id'][0],
'invoice_line_ids': [(0, False, {'name': "AAA"})]
}])
@@ -1281,15 +1281,15 @@ the workflow instance associated with the record.
array(
'limit' => 1,
'fields' => array(
- 'property_account_receivable',
- 'property_payment_term',
- 'property_account_position'
+ 'property_account_receivable_id',
+ 'property_payment_term_id',
+ 'property_account_position_id'
)))[0];
$invoice_id = $models->execute_kw(
$db, $uid, $password,
'account.invoice', 'create', array(array(
'partner_id' => $client['id'],
- 'account_id' => $client['property_account_receivable'][0],
+ 'account_id' => $client['property_account_receivable_id'][0],
'invoice_line_ids' => array(array(0, false, array('name' => "AAA")))
)));
@@ -1304,13 +1304,13 @@ the workflow instance associated with the record.
db, uid, password,
'res.partner', 'search_read',
[[['customer', '=', true]]],
- {limit: 1, fields: %w(property_account_receivable property_payment_term property_account_position)}
+ {limit: 1, fields: %w(property_account_receivable_id property_payment_term_id property_account_position_id)}
)[0]
invoice_id = models.execute_kw(
db, uid, password,
'account.invoice', 'create', [{
partner_id: client['id'],
- account_id: client['property_account_receivable'][0],
+ account_id: client['property_account_receivable_id'][0],
invoice_line_ids: [[0, false, {name: "AAA"}]]
}])
@@ -1330,9 +1330,9 @@ the workflow instance associated with the record.
new HashMap<String, Object>() {{
put("limit", 1);
put("fields", asList(
- "property_account_receivable",
- "property_payment_term",
- "property_account_position"
+ "property_account_receivable_id",
+ "property_payment_term_id",
+ "property_account_position_id"
));
}}
)))[0];
@@ -1342,7 +1342,7 @@ the workflow instance associated with the record.
"account.invoice", "create",
asList(new HashMap<String, Object>() {{
put("partner_id", c.get("id"));
- put("account_id", ((Object[])c.get("property_account_receivable"))[0]);
+ put("account_id", ((Object[])c.get("property_account_receivable_id"))[0]);
put("invoice_line_ids", asList(
asList(0, false, new HashMap<String, Object>() {{
put("name", "AAA");