Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[16.0][MIG] sale_order_quotation_date: Migration to 16.0 #336

Open
wants to merge 4 commits into
base: 16.0
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions sale_order_quotation_date/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-3

=========================
Sale order quotation date
=========================

* In sale order new field "Quotation date".


Bug Tracker
===========

Bugs are tracked on `GitHub Issues
<https://github.com/avanzosc/sale-addons/issues>`_. In case of trouble,
please check there if your issue has already been reported. If you spotted
it first, help us smash it by providing detailed and welcomed feedback.

Do not contact contributors directly about support or help with technical issues.

Credits
=======

Contributors
------------

* Ana Juaristi <anajuaristi@avanzosc.es>
* Alfredo de la Fuente <alfredodelafuente@avanzosc.es>
1 change: 1 addition & 0 deletions sale_order_quotation_date/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import models
18 changes: 18 additions & 0 deletions sale_order_quotation_date/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Copyright 2022 Alfredo de la Fuente - AvanzOSC
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
{
"name": "Sale Order Quotation Date",
"version": "16.0.1.0.0",
"category": "Sales",
"license": "AGPL-3",
"author": "AvanzOSC",
"website": "https://github.com/avanzosc/sale-addons",
"depends": [
"sale",
],
"excludes": [],
"data": [
"views/sale_order_view.xml",
],
"installable": True,
}
48 changes: 48 additions & 0 deletions sale_order_quotation_date/i18n/es.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * sale_order_quotation_date
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 14.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2022-05-11 12:28+0000\n"
"PO-Revision-Date: 2022-05-11 12:28+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_quotation_date
#: model:ir.model.fields,field_description:sale_order_quotation_date.field_sale_order__display_name
msgid "Display Name"
msgstr "Nombre mostrado"

#. module: sale_order_quotation_date
#: model:ir.model.fields,field_description:sale_order_quotation_date.field_sale_order__id
msgid "ID"
msgstr ""

#. module: sale_order_quotation_date
#: model:ir.model.fields,field_description:sale_order_quotation_date.field_sale_order____last_update
msgid "Last Modified on"
msgstr "Última modificación el"

#. module: sale_order_quotation_date
#: model_terms:ir.ui.view,arch_db:sale_order_quotation_date.sale_order_view_form
msgid "Quotation Date"
msgstr "Fecha del presupuesto"

#. module: sale_order_quotation_date
#: model:ir.model.fields,field_description:sale_order_quotation_date.field_sale_order__quotation_date
#: model_terms:ir.ui.view,arch_db:sale_order_quotation_date.view_sales_order_filter
msgid "Quotation date"
msgstr "Fecha del presupuesto"

#. module: sale_order_quotation_date
#: model:ir.model,name:sale_order_quotation_date.model_sale_order
msgid "Sales Order"
msgstr "Pedido de venta"

47 changes: 47 additions & 0 deletions sale_order_quotation_date/i18n/sale_order_quotation_date.pot
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * sale_order_quotation_date
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 14.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2022-05-11 12:28+0000\n"
"PO-Revision-Date: 2022-05-11 12:28+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_quotation_date
#: model:ir.model.fields,field_description:sale_order_quotation_date.field_sale_order__display_name
msgid "Display Name"
msgstr ""

#. module: sale_order_quotation_date
#: model:ir.model.fields,field_description:sale_order_quotation_date.field_sale_order__id
msgid "ID"
msgstr ""

#. module: sale_order_quotation_date
#: model:ir.model.fields,field_description:sale_order_quotation_date.field_sale_order____last_update
msgid "Last Modified on"
msgstr ""

#. module: sale_order_quotation_date
#: model_terms:ir.ui.view,arch_db:sale_order_quotation_date.sale_order_view_form
msgid "Quotation Date"
msgstr ""

#. module: sale_order_quotation_date
#: model:ir.model.fields,field_description:sale_order_quotation_date.field_sale_order__quotation_date
#: model_terms:ir.ui.view,arch_db:sale_order_quotation_date.view_sales_order_filter
msgid "Quotation date"
msgstr ""

#. module: sale_order_quotation_date
#: model:ir.model,name:sale_order_quotation_date.model_sale_order
msgid "Sales Order"
msgstr ""
1 change: 1 addition & 0 deletions sale_order_quotation_date/models/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import sale_order
9 changes: 9 additions & 0 deletions sale_order_quotation_date/models/sale_order.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Copyright 2022 Alfredo de la Fuente - AvanzOSC
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
from odoo import fields, models


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

quotation_date = fields.Date(string="Quotation date")
53 changes: 53 additions & 0 deletions sale_order_quotation_date/views/sale_order_view.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
<?xml version="1.0" encoding="UTF-8" ?>
<odoo>
<record id="sale_order_view_form" model="ir.ui.view">
<field name="model">sale.order</field>
<field name="inherit_id" ref="sale.view_order_form" />
<field name="arch" type="xml">
<field name="validity_date" position="after">
<div class="o_td_label" groups="base.group_no_one">
<label for="quotation_date" string="Quotation Date" />
</div>
<field name="quotation_date" nolabel="1" groups="base.group_no_one" />
</field>
</field>
</record>

<record id="view_quotation_tree" model="ir.ui.view">
<field name="model">sale.order</field>
<field name="inherit_id" ref="sale.view_quotation_tree" />
<field name="arch" type="xml">
<field name="create_date" position="after">
<field name="quotation_date" widget="date" optional="show" />
</field>
</field>
</record>

<record id="view_order_tree" model="ir.ui.view">
<field name="model">sale.order</field>
<field name="inherit_id" ref="sale.view_order_tree" />
<field name="arch" type="xml">
<field name="date_order" position="before">
<field name="quotation_date" widget="date" optional="show" />
</field>
</field>
</record>

<record id="view_sales_order_filter" model="ir.ui.view">
<field name="model">sale.order</field>
<field name="inherit_id" ref="sale.view_sales_order_filter" />
<field name="arch" type="xml">
<field name="analytic_account_id" position="after">
<field name="quotation_date" />
</field>
<filter name="order_month" position="before">
<filter
string="Quotation date"
name="quotation-date"
domain="[]"
context="{'group_by': 'quotation_date'}"
/>
</filter>
</field>
</record>
</odoo>
6 changes: 6 additions & 0 deletions setup/sale_order_quotation_date/setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import setuptools

setuptools.setup(
setup_requires=['setuptools-odoo'],
odoo_addon=True,
)
Loading