~unifield-team/unifield-wm/us-826

« back to all changes in this revision

Viewing changes to register_accounting/account_view.xml

  • Committer: jf
  • Date: 2016-02-11 14:20:21 UTC
  • mfrom: (2766.1.2 unifield-wm)
  • Revision ID: jfb@tempo-consulting.fr-20160211142021-03b7j87ev6uqeu63
US-927 [FIX] Registers and Registers creation: prevent creation on periods 0, 13, 14, 15 and 16
lp:~unifield-team/unifield-wm/us-927

Show diffs side-by-side

added added

removed removed

Lines of Context:
19
19
                            <field name="name" select="1" readonly="0" attrs="{'readonly': [('state', '!=', 'draft')]}"/>
20
20
                            <field name="journal_id" domain="[('type', '=', 'bank'),('is_current_instance','=',True)]" on_change="onchange_journal_id(journal_id)" select="1"/>
21
21
                            <newline/>
22
 
                            <field name="period_id" domain="[('state', '=', 'draft')]" attrs="{'readonly': ['|', ('state', '!=', 'draft'), ('prev_reg_id', '!=', False)]}"/>
 
22
                            <field name="period_id" domain="[('state', '=', 'draft'),('special', '!=', True)]" attrs="{'readonly': ['|', ('state', '!=', 'draft'), ('prev_reg_id', '!=', False)]}"/>
23
23
                            <field name="currency" readonly="1"/>
24
24
                            <newline/>
25
25
                            <field name="prev_reg_id" invisible="1"/>
180
180
                            <field name="journal_id" on_change="onchange_journal_id(journal_id)" domain="[('type','=','cash'),('is_current_instance','=',True)]" select="1"/>
181
181
                            <newline/>
182
182
 
183
 
                            <field name="period_id" select="1" domain="[('state', '=', 'draft')]" attrs="{'readonly': ['|', ('state', '!=', 'draft'), ('prev_reg_id', '!=', False)]}"/>
 
183
                            <field name="period_id" select="1" domain="[('state', '=', 'draft'),('special', '!=', True)]" attrs="{'readonly': ['|', ('state', '!=', 'draft'), ('prev_reg_id', '!=', False)]}"/>
184
184
                            <field name="currency" readonly="1"/>
185
185
                            <field name="virtual_id" invisible="1" readonly="1"/>
186
186
                        </group>
698
698
                        <field name="journal_id" domain="[('type', '=', 'cheque'),('is_current_instance','=',True)]" on_change="onchange_journal_id(journal_id)" select="1"/>
699
699
                        <newline/>
700
700
                        <field name="date" select="1" on_change="onchange_date(date)" attrs="{'readonly': ['|', ('state', '!=', 'draft'), ('prev_reg_id', '!=', False)]}"/>
701
 
                        <field name="period_id" domain="[('state', '=', 'draft')]" attrs="{'readonly': ['|', ('state', '!=', 'draft'), ('prev_reg_id', '!=', False)]}"/>
 
701
                        <field name="period_id" domain="[('state', '=', 'draft'),('special', '!=', True)]" attrs="{'readonly': ['|', ('state', '!=', 'draft'), ('prev_reg_id', '!=', False)]}"/>
702
702
                        <field name="currency" readonly="1"/>
703
703
                        <field name='company_id' widget="selection" groups="base.group_multi_company" invisible="1"/>
704
704
                        <field name="virtual_id" invisible="1" readonly="1"/>