Merge pull request #3738 from expsa/ENS-3556

[FIX] project_base: domain issue
This commit is contained in:
abdurrahman-saber 2025-07-02 13:12:43 +03:00 committed by GitHub
commit 688d30b083
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 0 additions and 12 deletions

View File

@ -164,18 +164,6 @@
<field name="model">sale.order</field> <field name="model">sale.order</field>
<field name="inherit_id" ref="sale.view_order_form"/> <field name="inherit_id" ref="sale.view_order_form"/>
<field name="arch" type="xml"> <field name="arch" type="xml">
<xpath expr="//header" position="inside">
<field name="project_ids" invisible="1"/>
</xpath>
<xpath expr="//button[@name='%(sale.action_view_sale_advance_payment_inv)d'][1]" position="attributes">
<attribute name="attrs">{'invisible': ['|',('project_ids', '!=', []),('invoice_status', '!=', 'to invoice')]}
</attribute>
</xpath>
<xpath expr="//button[@name='%(sale.action_view_sale_advance_payment_inv)d'][2]" position="attributes">
<attribute name="attrs">{'invisible': ['|','|',('project_ids', '!=', []),('invoice_status', '!=',
'no'),('state', '!=', 'sale')]}
</attribute>
</xpath>
<xpath expr="//button[@name='action_view_invoice']" position="before"> <xpath expr="//button[@name='action_view_invoice']" position="before">
<button type="object" name="action_view_project_invoice" class="oe_stat_button" icon="fa-tasks" attrs="{'invisible': [('project_invoice_count', '=', 0)]}"> <button type="object" name="action_view_project_invoice" class="oe_stat_button" icon="fa-tasks" attrs="{'invisible': [('project_invoice_count', '=', 0)]}">
<field name="project_invoice_count" widget="statinfo" string="Project Invoices"/> <field name="project_invoice_count" widget="statinfo" string="Project Invoices"/>