|
399 | 399 | "\t<field name=\"model_id\" ref=\"model_${2:model_name}\"/>",
|
400 | 400 | "\t<field name=\"state\">code</field>",
|
401 | 401 | "\t<field name=\"code\">model.${10:method_name}()</field>",
|
| 402 | + "\t<field name=\"priority\" eval=\"5\" />", |
402 | 403 | "</record>"
|
403 | 404 | ],
|
404 | 405 | "description": "Add a ir.cron record"
|
|
586 | 587 | "</div>"
|
587 | 588 | ],
|
588 | 589 | "description": "Create Odoo 'oechater' tag"
|
| 590 | + }, |
| 591 | + "odoo_ir_action_act_url": { |
| 592 | + "prefix": "oaurl", |
| 593 | + "body": [ |
| 594 | + "\t<record id=\"action_${1:action_id}\" model=\"ir.actions.act_url\">", |
| 595 | + "\t<field name=\"name\">${2:name}</field>", |
| 596 | + "\t<field name=\"url\">/${3:url}</field>", |
| 597 | + "\t<field name=\"target\">self</field>", |
| 598 | + "</record>" |
| 599 | + ], |
| 600 | + "description": "Create action.url tag" |
| 601 | + }, |
| 602 | + "odoo_ir_action_act_server": { |
| 603 | + "prefix": "oaserver", |
| 604 | + "body": [ |
| 605 | + "<!-- ${1:model.name} action server -->", |
| 606 | + "<record id=\"action_${2:model_name}\" model=\"ir.actions.server\">", |
| 607 | + "\t<field name=\"name\">${1}.action.server</field>", |
| 608 | + "\t<field name=\"model_id\" ref=\"model_${1:model.name}\"/>", |
| 609 | + "\t<field name=\"state\">code</field>", |
| 610 | + "\t<field name=\"code\">", |
| 611 | + "\t\trecord.${10:method_name}()", |
| 612 | + "\t</field>", |
| 613 | + "</record>" |
| 614 | + ], |
| 615 | + "description": "Create action.server tag" |
| 616 | + }, |
| 617 | + "odoo_ir_action_act_client": { |
| 618 | + "prefix": "oaclient", |
| 619 | + "body": [ |
| 620 | + "<!-- ${1:model.name} action client -->", |
| 621 | + "<record id=\"action_${2:model_name}\" model=\"ir.actions.client\">", |
| 622 | + "\t<field name=\"name\">${2}.action.client</field>", |
| 623 | + "\t<field name=\"tag\" ref=\"${3:tag_name}\"/>", |
| 624 | + "\t<field name=\"context\" eval=\"{}\"/>", |
| 625 | + "</record>" |
| 626 | + ], |
| 627 | + "description": "Create action.client tag" |
589 | 628 | }
|
590 | 629 | }
|
0 commit comments