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

[17.0] [MIG] partner_review: Migration to 17.0 #478

Closed
wants to merge 4 commits into from
Closed
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
4 changes: 2 additions & 2 deletions partner_lang_required/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ Partner language required

|badge1| |badge2| |badge3|

This module convert the lang partner attribute to required by adding
arestriction to it
This module convert the lang partner attribute to required by adding a
restriction to it

**Table of contents**

Expand Down
4 changes: 2 additions & 2 deletions partner_lang_required/static/description/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -370,8 +370,8 @@ <h1 class="title">Partner language required</h1>
!! source digest: sha256:bad01f3c88a6cffe5a9db6fb5cbbeb1188bd600f8c28504b4547c3dd74ccce4d
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
<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/NuoBiT/odoo-addons/tree/17.0/partner_lang_required"><img alt="NuoBiT/odoo-addons" src="https://img.shields.io/badge/github-NuoBiT%2Fodoo--addons-lightgray.png?logo=github" /></a></p>
<p>This module convert the lang partner attribute to required by adding
arestriction to it</p>
<p>This module convert the lang partner attribute to required by adding a
restriction to it</p>
<p><strong>Table of contents</strong></p>
<div class="contents local topic" id="contents">
<ul class="simple">
Expand Down
25 changes: 25 additions & 0 deletions partner_review/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
.. image:: https://img.shields.io/badge/license-AGPL--3-blue.png
:target: https://www.gnu.org/licenses/agpl
:alt: License: AGPL-3

==============
Partner review
==============

* This module adds a check on partners for later review

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

Bugs are tracked on `GitHub Issues
<https://github.com/nuobit/odoo-addons/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.

Credits
=======

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

* Eric Antones <eantones@nuobit.com>
3 changes: 3 additions & 0 deletions partner_review/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl)

from . import models
19 changes: 19 additions & 0 deletions partner_review/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Copyright NuoBiT Solutions, S.L. (<https://www.nuobit.com>)
# Eric Antones <eantones@nuobit.com>
# Bijaya Kumal <bkumal@nuobit.com>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl)

{
"name": "Partner review",
"version": "17.0.1.0.0",
"author": "NuoBiT Solutions SL, Eric Antones",
"license": "AGPL-3",
"category": "Extra Tools",
"website": "https://github.com/NuoBiT/odoo-addons",
"depends": ["base"],
"data": [
"views/res_partner_view.xml",
],
"installable": True,
"application": True,
}
44 changes: 44 additions & 0 deletions partner_review/i18n/es.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * partner_review
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 14.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2021-12-16 12:54+0000\n"
"PO-Revision-Date: 2021-12-16 12:54+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: partner_review
#: model:ir.model,name:partner_review.model_res_partner
msgid "Contact"
msgstr "Contacto"

#. module: partner_review
#: model:ir.model.fields,field_description:partner_review.field_res_partner__display_name
msgid "Display Name"
msgstr "Nombre mostrado"

#. module: partner_review
#: model:ir.model.fields,field_description:partner_review.field_res_partner__id
msgid "ID"
msgstr ""

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

#. module: partner_review
#: model:ir.model.fields,field_description:partner_review.field_res_partner__to_review
#: model:ir.model.fields,field_description:partner_review.field_res_users__to_review
#: model_terms:ir.ui.view,arch_db:partner_review.view_res_partner_filter
msgid "To review"
msgstr "Para revisar"

3 changes: 3 additions & 0 deletions partner_review/models/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl)

from . import res_partner
11 changes: 11 additions & 0 deletions partner_review/models/res_partner.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Copyright NuoBiT Solutions, S.L. (<https://www.nuobit.com>)
# Eric Antones <eantones@nuobit.com>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl)

from odoo import fields, models


class ResPartner(models.Model):
_inherit = "res.partner"

to_review = fields.Boolean("To review")
3 changes: 3 additions & 0 deletions partner_review/pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[build-system]
requires = ["whool"]
build-backend = "whool.buildapi"
Binary file added partner_review/static/description/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
38 changes: 38 additions & 0 deletions partner_review/views/res_partner_view.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
<?xml version="1.0" encoding="utf-8" ?>
<!-- Copyright NuoBiT Solutions, S.L. (<https://www.nuobit.com>)
Eric Antones <eantones@nuobit.com>
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl) -->
<odoo>
<record id="view_partner_form" model="ir.ui.view">
<field name="name">res.partner.form.view</field>
<field name="model">res.partner</field>
<field name="inherit_id" ref="base.view_partner_form" />
<field name="arch" type="xml">
<field name="category_id" position="after">
<field name="to_review" />
</field>
</field>
</record>
<record id="view_res_partner_filter" model="ir.ui.view">
<field name="name">res.partner.filter.review</field>
<field name="model">res.partner</field>
<field name="inherit_id" ref="base.view_res_partner_filter" />
<field name="arch" type="xml">
<filter name="inactive" position="after">
<separator />
<filter
string="To review"
name="to_review"
domain="[('to_review','=',True)]"
/>
</filter>
<group name="group_by" position="inside">
<filter
name="toreview"
string="To review"
context="{'group_by' : 'to_review'}"
/>
</group>
</field>
</record>
</odoo>
Loading