Skip to content

Commit

Permalink
[ADD] sale_order_partner_invoice_period
Browse files Browse the repository at this point in the history
  • Loading branch information
DantePereyra committed Nov 20, 2024
1 parent e53debf commit 0a2683e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 10 deletions.
4 changes: 2 additions & 2 deletions sale_order_partner_invoice_period/views/res_partner_view.xml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>

<record id="view_partner_form_inherit" model="ir.ui.view">
<field name="name">res.partner.view.form.inherit</field>
<record id="view_partner_form" model="ir.ui.view">
<field name="name">res.partner.form (in sale_order_partner_invoice_period)</field>
<field name="model">res.partner</field>
<field name="inherit_id" ref="base.view_partner_form"/>
<field name="arch" type="xml">
Expand Down
15 changes: 7 additions & 8 deletions sale_order_partner_invoice_period/views/sale_order_view.xml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>

<record id="view_order_form_inherit" model="ir.ui.view">
<field name="name">sale.order.view.form.inherit</field>
<record id="view_order_form" model="ir.ui.view">
<field name="name">sale.order.form (in sale_order_partner_invoice_period)</field>
<field name="model">sale.order</field>
<field name="inherit_id" ref="sale.view_order_form"/>
<field name="arch" type="xml">
Expand All @@ -13,21 +13,20 @@
</field>
</record>

<record id="view_sales_order_filter_inherit" model="ir.ui.view">
<field name="name">sale.order.searh.inherit</field>
<record id="view_sales_order_filter" model="ir.ui.view">
<field name="name">sale.order.list.select (in sale_order_partner_invoice_period)</field>
<field name="model">sale.order</field>
<field name="inherit_id" ref="sale.view_sales_order_filter"/>
<field name="arch" type="xml">
<xpath expr="//search" position="inside">
<field name="partner_invoice_period"/>
<xpath expr="//search//filter[@name='order_month'" position="after">
<filter name="partner_invoice_period" domain="[]" context="{'group_by': 'partner_invoice_period'}"/>
</xpath>

</field>
</record>

<record id="sale_order_tree_inherit" model="ir.ui.view">
<field name="name">sale.order.view.tree.inherit</field>
<record id="sale_order_tree" model="ir.ui.view">
<field name="name">sale.order.tree (in sale_order_partner_invoice_period)</field>
<field name="model">sale.order</field>
<field name="inherit_id" ref="sale.sale_order_tree"/>
<field name="arch" type="xml">
Expand Down

0 comments on commit 0a2683e

Please sign in to comment.