<commit_before><?xml version="1.0" encoding="utf-8"?>
<openerp>
    <data>

        <record id="view_account_journal_ar_filter" model="ir.ui.view">
            <field name="model">account.journal</field>
            <field name="name">account.journal.ar.filter</field>
            <field name="inherit_id" ref="account.view_account_journal_search"/>
            <field name="arch" type="xml">
                <field name="name" position="after">
                    <field name="point_of_sale_id"/>
                </field>
            </field>
        </record>

        <record id="view_account_journal_ar_form" model="ir.ui.view">
            <field name="model">account.journal</field>
            <field name="name">account.journal.ar.form</field>
            <field name="inherit_id" ref="account.view_account_journal_form"/>
            <field name="arch" type="xml">
                <field name="type" position="after">
                    <field name="use_documents" attrs="{'invisible': [('type','not in',['purchase','sale','purchase_refund','sale_refund'])]}"/>
                </field>
                    
                <notebook position="inside">
                    <page string="Documents" attrs="{'invisible': ['|',('use_documents','=',False),('type','not in',['purchase','sale','purchase_refund','sale_refund'])]}">
                        <button name="%(action_account_journal_document_config_form)d" string="Create Journal Documents" type="action" context="{'type':type}"/>
                        <group>
                            <field name="document_sequence_type" attrs="{'invisible': ['|',('type','not in',['sale','sale_refund'])], 'required': [('type','in',['sale','sale_refund']),('use_documents','=',True)]}"/>
                            <field name="point_of_sale_id" attrs="{'invisible': ['|',('type','not in',['sale','sale_refund'])],'required': [('use_documents','=',True),('type','in',['sale','sale_refund'])]}" context="{'default_company_id':company_id}"/>
                            <field name="point_of_sale" attrs="{'invisible': ['|',('type','not in',['sale','sale_refund'])]}"/>
                        </group>
                        <field name='journal_document_class_ids' context="{'journal_type':type}"/> 
                    </page>
                </notebook>
            </field>
        </record>

    </data>
</openerp>
<!-- vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4
     --><commit_msg>FIX view on invoice module<commit_after><?xml version="1.0" encoding="utf-8"?>
<openerp>
    <data>

        <record id="view_account_journal_ar_filter" model="ir.ui.view">
            <field name="model">account.journal</field>
            <field name="name">account.journal.ar.filter</field>
            <field name="inherit_id" ref="account.view_account_journal_search"/>
            <field name="arch" type="xml">
                <field name="name" position="after">
                    <field name="point_of_sale_id"/>
                </field>
            </field>
        </record>

        <record id="view_account_journal_ar_form" model="ir.ui.view">
            <field name="model">account.journal</field>
            <field name="name">account.journal.ar.form</field>
            <field name="inherit_id" ref="account.view_account_journal_form"/>
            <field name="arch" type="xml">
                <field name="type" position="after">
                    <field name="use_documents" attrs="{'invisible': [('type','not in',['purchase','sale','purchase_refund','sale_refund'])]}"/>
                </field>
                    
                <notebook position="inside">
                    <page string="Documents" attrs="{'invisible': ['|',('use_documents','=',False),('type','not in',['purchase','sale','purchase_refund','sale_refund'])]}">
                        <group>
                            <field name="document_sequence_type" attrs="{'invisible': ['|',('type','not in',['sale','sale_refund'])], 'required': [('type','in',['sale','sale_refund']),('use_documents','=',True)]}"/>
                            <field name="point_of_sale_id" attrs="{'invisible': ['|',('type','not in',['sale','sale_refund'])],'required': [('use_documents','=',True),('type','in',['sale','sale_refund'])]}" context="{'default_company_id':company_id}"/>
                            <field name="point_of_sale" attrs="{'invisible': ['|',('type','not in',['sale','sale_refund'])]}"/>
                        </group>
                        <field name='journal_document_class_ids' context="{'journal_type':type}"/> 
                    </page>
                </notebook>
            </field>
        </record>

    </data>
</openerp>
<!-- vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4
     -->
{'fraction_non_alphanumeric': 0.20037609694943587, 'fraction_numerical': 0.0025073129962390303, 'mean_word_length': 2.56972408650261, 'pattern_counts': {'":': 0, '<': 84, '<?xml version=': 2, '>': 84, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 6}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5434198', 'n_tokens_mistral': 1446, 'n_tokens_neox': 1363, 'n_words': 183}