Skip to content

Commit

Permalink
Merge pull request #32 from altinkaya-opensource/16.0-altinkaya-sales
Browse files Browse the repository at this point in the history
16.0 altinkaya sales
  • Loading branch information
yibudak authored Jan 14, 2025
2 parents 83321fe + 664d0de commit f58f0c3
Show file tree
Hide file tree
Showing 70 changed files with 26,335 additions and 180 deletions.
2 changes: 1 addition & 1 deletion account_check/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
],
'depends': [
'account',
'account_payment_fix',
# 'account_payment_fix',
# TODO: This module is not migrated yet.
# TODO we should move field amount_company_currency to
# account_payment_fix so that we dont need to depend on
Expand Down
5 changes: 3 additions & 2 deletions account_check/views/account_chart_template_view.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<record id="view_account_chart_template_form" model="ir.ui.view">
<!-- TODO: Enable This -->
<!-- <record id="view_account_chart_template_form" model="ir.ui.view">
<field name="name">account.chart.template.form</field>
<field name="model">account.chart.template</field>
<field name="inherit_id" ref="account.view_account_chart_template_form"/>
Expand All @@ -11,5 +12,5 @@
<field name="holding_check_account_id"/>
</field>
</field>
</record>
</record> -->
</odoo>
25 changes: 11 additions & 14 deletions account_check/views/account_check_view.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
<field name="name">account.check.tree</field>
<field name="model">account.check</field>
<field name="priority">100</field>
<field name="groups_id" eval="[(4, ref('account.group_account_manager'))]"/>
<field name="arch" type="xml">
<tree colors="blue:state == 'draft';black:state in ('handed');red:state == 'rejected';gray:state == 'cancel'" create="false" string="Checks">
<!-- colors='{"draft":"primary", "handed":"secondary", "rejected":"danger", "cancel":"muted"}' -->
<tree create="false" string="Checks">
<field name="checkbook_id" invisible="context.get('default_type',False) not in ('issue_check','issue_promissory_note')"/>
<field name="journal_id" invisible="1"/>
<field name="number" />
Expand All @@ -30,7 +30,6 @@
<record model="ir.ui.view" id="view_account_check_create_tree">
<field name="name">account.check.create.tree</field>
<field name="model">account.check</field>
<field name="groups_id" eval="[(4, ref('account.group_account_manager'))]"/>
<field name="inherit_id" ref="view_account_check_tree"/>
<field name="arch" type="xml">
<tree position="attributes">
Expand Down Expand Up @@ -105,21 +104,20 @@
</form>
</field>
</group>
</sheet>
</sheet>
<div class="oe_chatter">
<field name="message_follower_ids" widget="mail_followers"/>
<field name="activity_ids" widget="mail_activity"/>
<field name="message_ids" widget="mail_thread"/>
</div>
</div>
</form>
</field>
</record>
</record>

<record model="ir.ui.view" id="view_account_check_create_form">
<field name="name">account.check.create.form</field>
<field name="model">account.check</field>
<field name="inherit_id" ref="view_account_check_form"/>
<field name="groups_id" eval="[(4, ref('account.group_account_manager'))]"/>
<field name="arch" type="xml">
<form position="attributes">
<attribute name="create">true</attribute>
Expand Down Expand Up @@ -207,33 +205,32 @@
<record model="ir.actions.act_window" id="action_third_check">
<field name="name">Third Checks</field>
<field name="res_model">account.check</field>
<field name="view_type">form</field>
<field name="view_mode">tree,form,calendar,graph,pivot</field>
<field name="domain">[('type','=','third_check')]</field>
<field name="context">{'default_type':'third_check'}</field>
</record>

<menuitem
<!--TODO: Enable This-->
<!-- <menuitem
action="action_third_check"
id="menu_third_check"
sequence="40"
parent="account_payment_fix.menu_finance_check_and_promissory_note"/>
parent="account_payment_fix.menu_finance_check_and_promissory_note"/> -->

<!-- Issued Check Menu -->
<record model="ir.actions.act_window" id="action_issue_check">
<field name="name">Issue Checks</field>
<field name="res_model">account.check</field>
<field name="view_type">form</field>
<field name="view_mode">tree,form,calendar,graph,pivot</field>
<field name="domain">[('type','=','issue_check')]</field>
<field name="context">{'default_type':'issue_check'}</field>
</record>

<menuitem
<!--TODO: Enable This-->
<!-- <menuitem
action="action_issue_check"
id="menu_issue_check"
sequence="50"
parent="account_payment_fix.menu_finance_check_and_promissory_note"/>
parent="account_payment_fix.menu_finance_check_and_promissory_note"/> -->

<!-- Deposit Promissory Note Menu -->
<!-- <record model="ir.actions.act_window" id="action_deposit_promissory_note"> -->
Expand Down
3 changes: 2 additions & 1 deletion account_check/views/account_checkbook_view.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
<field name="name">account.checkbook.tree</field>
<field name="model">account.checkbook</field>
<field name="arch" type="xml">
<tree string="Checkbooks" colors="blue:state == 'draft';black:state in ('active');red:state == 'hrejected';gray:state == 'used'" editable="bottom">
<!-- colors="blue:state == 'draft';black:state in ('active');red:state == 'hrejected';gray:state == 'used'" -->
<tree string="Checkbooks" editable="bottom">
<field name="issue_check_subtype"/>
<field name="name"/>
<field name="next_number"/>
Expand Down
7 changes: 4 additions & 3 deletions account_check/views/account_payment_view.xml
Original file line number Diff line number Diff line change
Expand Up @@ -86,14 +86,15 @@
<div name="amount_div" position="attributes">
<attribute name="attrs">{'invisible': [('payment_method_code', '=', 'delivered_third_check')]}</attribute>
</div>-->
<field name="payment_method_id" position="after">
<field name="payment_method_line_id" position="after">
<field name="check_deposit_type" widget="radio" attrs="{'invisible': ['|', ('payment_type', '!=', 'transfer'), ('payment_method_code', '!=', 'delivered_third_check')]}"/>
</field>
</field>
</record>

<!-- Checks search view -->
<record id="view_account_payment_search" model="ir.ui.view">
<!-- TODO: Enable this -->
<!-- <record id="view_account_payment_search" model="ir.ui.view">
<field name="name">account.payment.check.search</field>
<field name="model">account.payment</field>
<field name="inherit_id" ref="account.view_account_payment_search"/>
Expand All @@ -105,6 +106,6 @@
<filter string="Checks To Print and Numerate" domain="[('payment_method_id.code', '=', 'issue_check'), ('state','=','draft'), ('check_number', '=', False)]" name="checks_to_numerate"/>
</xpath>
</field>
</record>
</record> -->

</odoo>
3 changes: 1 addition & 2 deletions account_check/wizard/account_check_action_wizard_view.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,14 @@
<button string="Confirm" name="action_confirm" type="object" class="oe_highlight"/>
or
<button string="Cancel" class="oe_link" special="cancel"/>
</footer>
</footer>
</form>
</field>
</record>

<record id="action_account_check_action_wizard" model="ir.actions.act_window">
<field name="name">Check Action</field>
<field name="res_model">account.check.action.wizard</field>
<field name="view_type">form</field>
<field name="view_mode">form</field>
<field name="target">new</field>
</record>
Expand Down
1 change: 1 addition & 0 deletions account_payment_fix/__manifest__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
# TODO: REMOVE THIS MODULE IF NOT NEEDED
'website': 'https://www.codequarters.com',
'license': 'AGPL-3',
'category': 'Accounting & Finance',
Expand Down
4 changes: 2 additions & 2 deletions account_payment_fix/views/account_payment_view.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
<attribute name="domain">[('id', 'in', destination_journal_ids)]</attribute>
<attribute name="options">{'no_create': True}</attribute>
</field>
<field name="payment_method_id" position="attributes">
<attribute name="domain">[('id', 'in', payment_method_ids)]</attribute>
<field name="payment_method_line_id" position="attributes">
<attribute name="domain">[('id', 'in', payment_method_line_id)]</attribute>
<attribute name="options">{'no_create': True}</attribute>
</field>
<!-- <field name="partner_id" position="attributes"> -->
Expand Down
1 change: 1 addition & 0 deletions altinkaya_sales/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import models
59 changes: 59 additions & 0 deletions altinkaya_sales/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
##############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (c) 2012-Present (<http://www.acespritech.com/>) Acespritech Solutions Pvt.Ltd
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
##############################################################################
{
"name": "Altinkaya Sale Order Extensions",
"version": "16.0.0.1.0",
"category": "General",
"depends": [
"base",
"sale",
"stock",
"sale_stock",
"delivery",
"partner_fax",
"altinkaya_roles",
"altinkaya_mrp",
"delivery_state",
"delivery_package_barcode",
"portal",
"sale_stock",
],
"author": "Altinkaya Enclosures",
"website": "https://github.com/altinkaya-opensource/odoo-addons",
"data": [
"security/ir.model.access.csv",
"views/sale_workflow_new_menus_actions.xml",
"views/sales_order_view.xml",
"views/res_partner_views.xml",
"views/product_views.xml",
"views/pricelist.xml",
"views/res_partner.xml",
"data/mail_data.xml",
"views/portal_templates.xml",
"data/sale_portal_data.xml",
"views/sale_portal_templates.xml",
"views/res_partner_segment_view.xml",
"views/res_country_view.xml",
"views/res_bank_view.xml",
],
"demo": [],
"installable": True,
"auto_install": False,
}
Loading

0 comments on commit f58f0c3

Please sign in to comment.