Skip to content

Commit

Permalink
[11.0][3810][REF] sale_ext_sst (#355)
Browse files Browse the repository at this point in the history
* [REF] sale_ext_sst
  • Loading branch information
AungKoKoLin1997 authored Oct 5, 2023
1 parent 98cf1bb commit 8e0718a
Show file tree
Hide file tree
Showing 19 changed files with 208 additions and 128 deletions.
42 changes: 0 additions & 42 deletions sale_ext_sst/i18n/ja.po

This file was deleted.

79 changes: 0 additions & 79 deletions sale_ext_sst/views/sale_order_views.xml

This file was deleted.

File renamed without changes.
13 changes: 13 additions & 0 deletions sale_order_invoice_residual/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Copyright 2017-2018 Quartile Limited
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
{
"name": "Sale Order Invoice Residual",
"version": "11.0.1.0.0",
"author": "Quartile Limited",
"website": "https://www.quartile.co",
"category": "Sale",
"license": "AGPL-3",
"depends": ["sale"],
"data": ["views/sale_order_views.xml"],
"installable": True,
}
31 changes: 31 additions & 0 deletions sale_order_invoice_residual/i18n/ja.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * sale_order_invoice_residual
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 11.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2023-10-03 05:59+0000\n"
"PO-Revision-Date: 2023-10-03 05:59+0000\n"
"Last-Translator: <>\n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: \n"

#. module: sale_order_invoice_residual
#: model:ir.model.fields,field_description:sale_order_invoice_residual.field_sale_order_invoice_residual
msgid "Invoice Amount Due"
msgstr "未払額"

#. module: sale_order_invoice_residual
#: model:ir.model,name:sale_order_invoice_residual.model_sale_order
msgid "Quotation"
msgstr "見積"

#. module: sale_order_invoice_residual
#: model:ir.model.fields,help:sale_order_invoice_residual.field_sale_order_invoice_residual
msgid "Remaining amount due of invoice(s)."
msgstr "請求書の未払額。"
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@
class SaleOrder(models.Model):
_inherit = "sale.order"

phone = fields.Char(related="partner_id.phone", string="Phone",)
requested_date = fields.Datetime(readonly=False,)
# this field is decided to be a non-stored computed field to avoid the
# complication of the logic and the risk of missing a trigger.
# reconciling/unreconciling invoice with an existing payment particularly
Expand Down
1 change: 1 addition & 0 deletions sale_order_invoice_residual/readme/DESCRIPTION.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
This module adds the invoice_residual field in sale order.
28 changes: 28 additions & 0 deletions sale_order_invoice_residual/views/sale_order_views.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<?xml version="1.0" encoding="utf-8" ?>
<odoo>
<record id="sale_view_order_tree" model="ir.ui.view">
<field name="name">sale.view.order.tree</field>
<field name="model">sale.order</field>
<field name="inherit_id" ref="sale.view_order_tree" />
<field name="arch" type="xml">
<xpath expr="//field[@name='amount_total']" position="after">
<field name="invoice_residual" widget="monetary" />
</xpath>
</field>
</record>
<record id="view_order_form" model="ir.ui.view">
<field name="name">sale.order.view.order.form</field>
<field name="model">sale.order</field>
<field name="inherit_id" ref="sale.view_order_form" />
<field name="priority" eval="15" />
<field name="arch" type="xml">
<xpath expr="//field[@name='payment_term_id']" position="after">
<field
name="invoice_residual"
widget="monetary"
attrs="{'invisible': [('state', 'not in', ['sale', 'done'])]}"
/>
</xpath>
</field>
</record>
</odoo>
1 change: 1 addition & 0 deletions sale_order_partner_phone/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import models
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
# Copyright 2017-2018 Quartile Limited
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
{
"name": "Extension for sales functions",
"version": "11.0.1.2.1",
"name": "Sale Order Partner Phone",
"version": "11.0.1.0.0",
"author": "Quartile Limited",
"website": "https://www.quartile.co",
"category": "Sale",
"license": "AGPL-3",
"depends": ["sale_stock", "sale_order_dates"],
"depends": ["sale"],
"data": ["views/sale_order_views.xml"],
"installable": True,
}
26 changes: 26 additions & 0 deletions sale_order_partner_phone/i18n/ja.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * sale_order_partner_phone
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 11.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2023-10-03 05:58+0000\n"
"PO-Revision-Date: 2023-10-03 05:58+0000\n"
"Last-Translator: <>\n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: \n"

#. module: sale_order_partner_phone
#: model:ir.model.fields,field_description:sale_order_partner_phone.field_sale_order_phone
msgid "Phone"
msgstr "電話"

#. module: sale_order_partner_phone
#: model:ir.model,name:sale_order_partner_phone.model_sale_order
msgid "Quotation"
msgstr "見積"
1 change: 1 addition & 0 deletions sale_order_partner_phone/models/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import sale_order
10 changes: 10 additions & 0 deletions sale_order_partner_phone/models/sale_order.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Copyright 2017-2018 Quartile Limited
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

from odoo import fields, models


class SaleOrder(models.Model):
_inherit = "sale.order"

phone = fields.Char(related="partner_id.phone", string="Phone",)
1 change: 1 addition & 0 deletions sale_order_partner_phone/readme/DESCRIPTION.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
This module adds partner's phone in sale order.
33 changes: 33 additions & 0 deletions sale_order_partner_phone/views/sale_order_views.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
<?xml version="1.0" encoding="utf-8" ?>
<odoo>
<record id="sale_view_order_tree" model="ir.ui.view">
<field name="name">sale.view.order.tree</field>
<field name="model">sale.order</field>
<field name="inherit_id" ref="sale.view_order_tree" />
<field name="arch" type="xml">
<xpath expr="//field[@name='partner_id']" position="after">
<field name="phone" />
</xpath>
</field>
</record>
<record id="sale_viw_quotation_tree" model="ir.ui.view">
<field name="name">sale.view.quotation.tree</field>
<field name="model">sale.order</field>
<field name="inherit_id" ref="sale.view_quotation_tree" />
<field name="arch" type="xml">
<xpath expr="//field[@name='partner_id']" position="after">
<field name="phone" />
</xpath>
</field>
</record>
<record id="sale_view_sales_order_filter" model="ir.ui.view">
<field name="name">sale.view.sales.order.filter</field>
<field name="model">sale.order</field>
<field name="inherit_id" ref="sale.view_sales_order_filter" />
<field name="arch" type="xml">
<xpath expr="//field[@name='partner_id']" position="after">
<field name="phone" />
</xpath>
</field>
</record>
</odoo>
4 changes: 2 additions & 2 deletions sale_view_adj_sst/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
"category": "Sales",
"version": "11.0.1.0.0",
"author": "Quartile Limited",
"website": "https://www.quartile.co/",
"website": "https://www.quartile.co",
"license": "LGPL-3",
"depends": ["sale"],
"depends": ["sale_stock"],
"data": ["views/sale_view_adj.xml"],
"installable": True,
}
21 changes: 21 additions & 0 deletions sale_view_adj_sst/i18n/ja.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * sale_view_adj_sst
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 11.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2023-10-03 08:39+0000\n"
"PO-Revision-Date: 2023-10-03 08:39+0000\n"
"Last-Translator: <>\n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: \n"

#. module: sale_view_adj_sst
#: model:ir.ui.view,arch_db:sale_view_adj_sst.sale_view_order_line_filter
msgid "Today's Order"
msgstr "本日のオーダ"
37 changes: 37 additions & 0 deletions sale_view_adj_sst/views/sale_view_adj.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,46 @@
<field name="model">sale.order</field>
<field name="inherit_id" ref="sale.view_sales_order_filter" />
<field name="arch" type="xml">
<xpath expr="//field[@name='partner_id']" position="after">
<field name="warehouse_id" />
</xpath>
<xpath expr="//field[@name='product_id']" position="after">
<field name="order_line" />
</xpath>
<xpath expr="//filter[@name='my_sale_orders_filter']" position="before">
<filter
string="Today's Order"
domain="[('confirmation_date','&gt;=', datetime.datetime.combine(context_today(), datetime.time(0,0,0))),
('confirmation_date','&lt;=', datetime.datetime.combine(context_today(), datetime.time(23,59,59)))]"
name="today_order"
/>
</xpath>
</field>
</record>

<record id="sale_viw_quotation_tree" model="ir.ui.view">
<field name="name">sale.view.quotation.tree</field>
<field name="model">sale.order</field>
<field name="inherit_id" ref="sale.view_quotation_tree" />
<field name="arch" type="xml">
<xpath expr="//field[@name='partner_id']" position="after">
<field name="product_id" />
<field name="warehouse_id" />
<field name="team_id" />
</xpath>
</field>
</record>

<record id="sale_view_order_tree" model="ir.ui.view">
<field name="name">sale.view.order.tree</field>
<field name="model">sale.order</field>
<field name="inherit_id" ref="sale.view_order_tree" />
<field name="arch" type="xml">
<xpath expr="//field[@name='partner_id']" position="after">
<field name="product_id" />
<field name="warehouse_id" />
<field name="team_id" />
</xpath>
</field>
</record>

Expand Down

0 comments on commit 8e0718a

Please sign in to comment.