File: account.xml

package info (click to toggle)
tryton-modules-account-stock-anglo-saxon 3.4.0-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 336 kB
  • ctags: 83
  • sloc: python: 460; xml: 53; makefile: 6
file content (35 lines) | stat: -rw-r--r-- 1,590 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<?xml version="1.0"?>
<!-- This file is part of Tryton.  The COPYRIGHT file at the top level of
this repository contains the full copyright notices and license terms. -->
<tryton>
    <data>

        <record model="account.account.template" id="account_template_cogs">
            <field name="name">COGS</field>
            <field name="type" ref="account.account_type_template_expense"/>
            <field name="reconcile" eval="True"/>
            <field name="deferral" eval="True"/>
            <field name="parent" ref="account.account_template_root"/>
            <field name="kind">other</field>
        </record>

        <!-- Read access to compute anglo saxon account.move lines -->
        <record model="ir.model.access" id="access_purchase_line_account">
            <field name="model" search="[('model', '=', 'purchase.line')]"/>
            <field name="group" ref="account.group_account"/>
            <field name="perm_read" eval="True"/>
            <field name="perm_write" eval="False"/>
            <field name="perm_create" eval="False"/>
            <field name="perm_delete" eval="False"/>
        </record>
        <record model="ir.model.access" id="access_sale_line_account">
            <field name="model" search="[('model', '=', 'sale.line')]"/>
            <field name="group" ref="account.group_account"/>
            <field name="perm_read" eval="True"/>
            <field name="perm_write" eval="False"/>
            <field name="perm_create" eval="False"/>
            <field name="perm_delete" eval="False"/>
        </record>

    </data>
</tryton>