Skip to content

Commit

Permalink
[IMP] purchase_post_code_propose_address_sst: black, isort, prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
AungKoKoLin1997 committed Oct 27, 2023
1 parent 60f7e5b commit d49b0ab
Show file tree
Hide file tree
Showing 8 changed files with 63 additions and 44 deletions.
21 changes: 12 additions & 9 deletions purchase_post_code_propose_address_sst/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,25 @@
Post Code (JP) Propose Purchase Order Address
=============================================

.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
..
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:93ff9946dd09b0842e88baecf400c535023bb0386e12833a4e6992acd7a151e1
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
:target: https://odoo-community.org/page/development-status
:alt: Beta
.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-qrtl%2Fsst--custom-lightgray.png?logo=github
:target: https://github.com/qrtl/sst-custom/tree/11.0/purchase_post_code_propose_address_sst
:alt: qrtl/sst-custom
.. |badge3| image:: https://img.shields.io/badge/github-qrtl%2Frmm--custom-lightgray.png?logo=github
:target: https://github.com/qrtl/rmm-custom/tree/15.0/purchase_post_code_propose_address_sst
:alt: qrtl/rmm-custom

|badge1| |badge2| |badge3|
|badge1| |badge2| |badge3|

This module adds the ability to make suggestions by zip code.

Expand All @@ -29,10 +32,10 @@ This module adds the ability to make suggestions by zip code.
Bug Tracker
===========

Bugs are tracked on `GitHub Issues <https://github.com/qrtl/sst-custom/issues>`_.
Bugs are tracked on `GitHub Issues <https://github.com/qrtl/rmm-custom/issues>`_.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us smashing it by providing a detailed and welcomed
`feedback <https://github.com/qrtl/sst-custom/issues/new?body=module:%20purchase_post_code_propose_address_sst%0Aversion:%2011.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
If you spotted it first, help us to smash it by providing a detailed and welcomed
`feedback <https://github.com/qrtl/rmm-custom/issues/new?body=module:%20purchase_post_code_propose_address_sst%0Aversion:%2015.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.

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

Expand All @@ -47,6 +50,6 @@ Authors
Maintainers
~~~~~~~~~~~

This module is part of the `qrtl/sst-custom <https://github.com/qrtl/sst-custom/tree/11.0/purchase_post_code_propose_address_sst>`_ project on GitHub.
This module is part of the `qrtl/rmm-custom <https://github.com/qrtl/rmm-custom/tree/15.0/purchase_post_code_propose_address_sst>`_ project on GitHub.

You are welcome to contribute.
3 changes: 1 addition & 2 deletions purchase_post_code_propose_address_sst/i18n/ja.po
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * purchase_post_code_propose_address_sst
# * purchase_post_code_propose_address_sst
#
msgid ""
msgstr ""
Expand Down Expand Up @@ -95,4 +95,3 @@ msgstr "町名番地…"
#: model:ir.model.fields,field_description:purchase_post_code_propose_address_sst.field_purchase_order_street2
msgid "Street2"
msgstr "町名番地2"

Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
<?xml version="1.0" encoding="utf-8" ?>
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="generator" content="Docutils 0.15.1: http://docutils.sourceforge.net/" />
<meta name="generator" content="Docutils: https://docutils.sourceforge.io/" />
<title>Post Code (JP) Propose Purchase Order Address</title>
<style type="text/css">

/*
:Author: David Goodger ([email protected])
:Id: $Id: html4css1.css 7952 2016-07-26 18:15:59Z milde $
:Id: $Id: html4css1.css 8954 2022-01-20 10:10:25Z milde $
:Copyright: This stylesheet has been placed in the public domain.

Default cascading style sheet for the HTML output of Docutils.

See http://docutils.sf.net/docs/howto/html-stylesheets.html for how to
See https://docutils.sourceforge.io/docs/howto/html-stylesheets.html for how to
customize this style sheet.
*/

Expand Down Expand Up @@ -366,39 +366,41 @@ <h1 class="title">Post Code (JP) Propose Purchase Order Address</h1>
<!-- !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:93ff9946dd09b0842e88baecf400c535023bb0386e12833a4e6992acd7a151e1
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
<p><a class="reference external" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/licence-AGPL--3-blue.png" /></a> <a class="reference external" href="https://github.com/qrtl/sst-custom/tree/11.0/purchase_post_code_propose_address_sst"><img alt="qrtl/sst-custom" src="https://img.shields.io/badge/github-qrtl%2Fsst--custom-lightgray.png?logo=github" /></a></p>
<p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external image-reference" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/licence-AGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/qrtl/rmm-custom/tree/15.0/purchase_post_code_propose_address_sst"><img alt="qrtl/rmm-custom" src="https://img.shields.io/badge/github-qrtl%2Frmm--custom-lightgray.png?logo=github" /></a></p>
<p>This module adds the ability to make suggestions by zip code.</p>
<p><strong>Table of contents</strong></p>
<div class="contents local topic" id="contents">
<ul class="simple">
<li><a class="reference internal" href="#bug-tracker" id="id1">Bug Tracker</a></li>
<li><a class="reference internal" href="#credits" id="id2">Credits</a><ul>
<li><a class="reference internal" href="#authors" id="id3">Authors</a></li>
<li><a class="reference internal" href="#maintainers" id="id4">Maintainers</a></li>
<li><a class="reference internal" href="#bug-tracker" id="toc-entry-1">Bug Tracker</a></li>
<li><a class="reference internal" href="#credits" id="toc-entry-2">Credits</a><ul>
<li><a class="reference internal" href="#authors" id="toc-entry-3">Authors</a></li>
<li><a class="reference internal" href="#maintainers" id="toc-entry-4">Maintainers</a></li>
</ul>
</li>
</ul>
</div>
<div class="section" id="bug-tracker">
<h1><a class="toc-backref" href="#id1">Bug Tracker</a></h1>
<p>Bugs are tracked on <a class="reference external" href="https://github.com/qrtl/sst-custom/issues">GitHub Issues</a>.
<h1><a class="toc-backref" href="#toc-entry-1">Bug Tracker</a></h1>
<p>Bugs are tracked on <a class="reference external" href="https://github.com/qrtl/rmm-custom/issues">GitHub Issues</a>.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us smashing it by providing a detailed and welcomed
<a class="reference external" href="https://github.com/qrtl/sst-custom/issues/new?body=module:%20purchase_post_code_propose_address_sst%0Aversion:%2011.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
If you spotted it first, help us to smash it by providing a detailed and welcomed
<a class="reference external" href="https://github.com/qrtl/rmm-custom/issues/new?body=module:%20purchase_post_code_propose_address_sst%0Aversion:%2015.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
<p>Do not contact contributors directly about support or help with technical issues.</p>
</div>
<div class="section" id="credits">
<h1><a class="toc-backref" href="#id2">Credits</a></h1>
<h1><a class="toc-backref" href="#toc-entry-2">Credits</a></h1>
<div class="section" id="authors">
<h2><a class="toc-backref" href="#id3">Authors</a></h2>
<h2><a class="toc-backref" href="#toc-entry-3">Authors</a></h2>
<ul class="simple">
<li>Quartile Limited</li>
</ul>
</div>
<div class="section" id="maintainers">
<h2><a class="toc-backref" href="#id4">Maintainers</a></h2>
<p>This module is part of the <a class="reference external" href="https://github.com/qrtl/sst-custom/tree/11.0/purchase_post_code_propose_address_sst">qrtl/sst-custom</a> project on GitHub.</p>
<h2><a class="toc-backref" href="#toc-entry-4">Maintainers</a></h2>
<p>This module is part of the <a class="reference external" href="https://github.com/qrtl/rmm-custom/tree/15.0/purchase_post_code_propose_address_sst">qrtl/rmm-custom</a> project on GitHub.</p>
<p>You are welcome to contribute.</p>
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<field name="inherit_id" ref="purchase.purchase_order_form" />
<field name="arch" type="xml">
<xpath expr="//sheet/group" position="inside">
<group>
<group>
<label for="zip" />
<div>
Expand All @@ -36,23 +36,27 @@
<div class="o_address_format">
<div>
<field
name="state_id"
class="o_address_state"
placeholder="State"
domain="[('country_id','=',country_id)]"
/>
<field name="city" class="o_address_city" placeholder="City" />
name="state_id"
class="o_address_state"
placeholder="State"
domain="[('country_id','=',country_id)]"
/>
<field
name="city"
class="o_address_city"
placeholder="City"
/>
</div>
<field
name="street"
class="o_address_street"
placeholder="Street..."
/>
name="street"
class="o_address_street"
placeholder="Street..."
/>
<field
name="street2"
class="o_address_street"
placeholder="Street 2..."
/>
name="street2"
class="o_address_street"
placeholder="Street 2..."
/>
<field name="country_id" invisible="1" />
</div>
</group>
Expand All @@ -63,7 +67,7 @@
<field name="name">request.quotation.select</field>
<field name="model">purchase.order</field>
<field name="inherit_id" ref="purchase.view_purchase_order_filter" />
<field name="priority" eval="18"/>
<field name="priority" eval="18" />
<field name="arch" type="xml">
<xpath expr="//field[@name='name']" position="before">
<field name="zipcode" />
Expand Down
2 changes: 2 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# generated from manifests external_dependencies
jaconv
2 changes: 2 additions & 0 deletions setup/purchase_post_code_propose_address_sst/setup.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[bdist_wheel]
universal=1
6 changes: 6 additions & 0 deletions setup/purchase_post_code_propose_address_sst/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,
)

0 comments on commit d49b0ab

Please sign in to comment.