Skip to content
Extraits de code Groupes Projets
Sélectionner une révision Git
  • b1413ad43004c44c85c4d657ab2524e0e29b0e59
  • 16.0 par défaut protégée
2 résultats

.ruff.toml

Blame
  • acc_operation_views.xml 7,31 Kio
    <?xml version="1.0" encoding="utf-8"?>
    <odoo>
        <data>
    
            <record id="acc_operation_form_view" model="ir.ui.view">
                <field name="name">acc_account.acc_operation.form</field>
                <field name="model">acc.operation</field>
                <field name="inherit_id" ref="acc_operation.acc_operation_form_view"/>
                <field name="priority" eval="8"/>
                <field name="arch" type="xml">
                    <header position="inside">
                        <button string="Générer les factures"
                                type="action"
                                name="%(acc_account.acc_account_wizard_action)d"
                                class="btn-primary"
                                attrs="{'invisible': [('is_account_active', '=', False)]}"
                        />
                        <button string="Générer les factures Acheteur"
                                type="action"
                                name="%(acc_account.acc_account_surplus_wizard_action)d"
                                class="btn-primary"
                        />
                    </header>
                    <div class="oe_title" position="before">
                        <div name="button_box" class="oe_button_box">
                            <button
                                type="object"
                                class="oe_stat_button"
                                icon="fa-money"
                                name="action_view_acc_accounts"
                                context="{'default_acc_operation_id': active_id}"
                                attrs="{'invisible': [('is_account_active', '=', False)]}"
                            >
                                <div class="o_form_field o_stat_info">
                                    <span class="o_stat_value">
                                        <field name="acc_account_count" />
                                    </span>
                                    <span class="o_stat_text">Factures</span>
                                </div>
                            </button>
                        </div>
                    </div>
                    <notebook position="before">
                        <group>
                            <field name="is_account_active"/>
                        </group>
                    </notebook>
                    <notebook position="inside">
                        <page string="Prix de vente" name="account_price"
                              attrs="{'invisible': [('is_account_active', '=', False)]}">
                            <header>
                                <button string="Générer des Prix de vente"
                                    type="action"
                                    name="%(acc_account.act_x2many_2d_matrix_demo)d"
                                    class="btn-primary"
                                    attrs="{'invisible': [('is_account_active', '=', False)]}"/>
                            </header>
                            <field name="acc_sale_price_ids" widget="one2many">
                                <tree editable="bottom" default_order="start_date desc">
                                    <field name="acc_injection_id" />
                                    <field name="acc_delivery_id" />
                                    <field name="start_date" />
                                    <field name="end_date" />
                                    <field name="currency_id" invisible="1"/>
                                    <field name="price" widget="monetary" />
                                </tree>
                            </field>
                        </page>
                        <page string="Prix de vente Surplus" name="account_price_surplus"
                              attrs="{'invisible': [('is_account_active', '=', False)]}">