mirror of
https://bitbucket.org/presik/trytonpsk-syncronize_companies.git
synced 2023-12-14 04:52:52 +01:00
Remove model not used
This commit is contained in:
parent
6e1e23ce15
commit
a365314975
9 changed files with 78 additions and 134 deletions
|
@ -16,7 +16,6 @@ def register():
|
|||
sale.SaleGoalAnnualRankingStart,
|
||||
sale.SaleDetailedStart,
|
||||
sale.ShopDailySummaryStart,
|
||||
sale.InvoicesStart,
|
||||
account.PrintBalanceSheetCOLGAAPStart,
|
||||
account.PrintIncomeStatementCOLGAAPStart,
|
||||
module='syncronize_companies', type_='model')
|
||||
|
|
|
@ -1,17 +1,11 @@
|
|||
# This file is part of Tryton. The COPYRIGHT file at the top level of
|
||||
# this repository contains the full copyright notices and license terms.
|
||||
import time
|
||||
from decimal import Decimal
|
||||
import requests
|
||||
import simplejson as json
|
||||
from datetime import datetime, date
|
||||
from trytond.model import ModelView, fields
|
||||
from trytond.model import fields
|
||||
from trytond.pool import PoolMeta, Pool
|
||||
from trytond.transaction import Transaction
|
||||
from trytond.pyson import Bool, Eval, Or, Not
|
||||
from trytond.wizard import (
|
||||
Wizard, StateView, StateAction, StateReport, StateTransition, Button)
|
||||
from trytond.report import Report
|
||||
|
||||
__all__ = [
|
||||
'PrintBalanceSheetCOLGAAPStart', 'PrintBalanceSheetCOLGAAP',
|
||||
|
|
|
@ -2,7 +2,6 @@
|
|||
|
||||
<tryton>
|
||||
<data>
|
||||
|
||||
<record model="ir.ui.view" id="print_balance_sheet_colgaap_start_view_form">
|
||||
<field name="model">account_col.print_balance_sheet_colgaap.start</field>
|
||||
<field name="inherit" ref="account_col.print_balance_sheet_colgaap_start_view_form"/>
|
||||
|
@ -62,7 +61,5 @@
|
|||
pyson="1"/>
|
||||
<field name="rule_group" ref="rule_group_shop"/>
|
||||
</record>
|
||||
|
||||
</data>
|
||||
|
||||
</tryton>
|
||||
|
|
11
company.py
11
company.py
|
@ -2,9 +2,9 @@
|
|||
# The COPYRIGHT file at the top level of this repository contains
|
||||
# the full copyright notices and license terms.
|
||||
|
||||
from trytond.model import Workflow, ModelView, ModelSQL, fields
|
||||
from trytond.model import ModelView, ModelSQL, fields
|
||||
from trytond.pool import PoolMeta
|
||||
from trytond.pyson import Bool, Eval, Or, Not
|
||||
from trytond.pyson import Bool, Eval
|
||||
|
||||
__all__ = ['Company']
|
||||
|
||||
|
@ -12,8 +12,10 @@ __all__ = ['Company']
|
|||
class Company(metaclass=PoolMeta):
|
||||
__name__ = 'company.company'
|
||||
sincronize_companies = fields.Boolean('Syncronize Companies')
|
||||
connection_companies = fields.One2Many('company.connection_companies', 'company', 'Connection Companies',
|
||||
states={'invisible': ~Bool(Eval('sincronize_companies')),})
|
||||
connection_companies = fields.One2Many('company.connection_companies',
|
||||
'company', 'Connection Companies', states={
|
||||
'invisible': ~Bool(Eval('sincronize_companies')),
|
||||
})
|
||||
|
||||
|
||||
class ConnectionCompanies(ModelSQL, ModelView):
|
||||
|
@ -23,3 +25,4 @@ class ConnectionCompanies(ModelSQL, ModelView):
|
|||
api_connection = fields.Char('Api Connection', required=True)
|
||||
company = fields.Many2One('company.company', 'Company', select=True,
|
||||
ondelete='CASCADE')
|
||||
|
||||
|
|
38
sale.py
38
sale.py
|
@ -1,25 +1,17 @@
|
|||
# This file is part of Tryton. The COPYRIGHT file at the top level of
|
||||
# this repository contains the full copyright notices and license terms.
|
||||
import time
|
||||
from decimal import Decimal
|
||||
import requests
|
||||
import simplejson as json
|
||||
from datetime import datetime, date
|
||||
from trytond.model import ModelView, fields
|
||||
from trytond.pool import PoolMeta, Pool
|
||||
from trytond.transaction import Transaction
|
||||
from trytond.pyson import Bool, Eval, Or, Not
|
||||
from trytond.wizard import (
|
||||
Wizard, StateView, StateAction, StateReport, StateTransition, Button)
|
||||
from trytond.report import Report
|
||||
from trytond.pyson import Eval
|
||||
|
||||
__all__ = [
|
||||
'SaleIncomeDailyStart', 'SaleDailyReport',
|
||||
'SaleMonthByShopStart', 'SaleGoalMonthRankingReport', 'SaleDetailedStart',
|
||||
'SaleDetailedReport', 'ShopDailySummaryStart', 'PortfolioDetailedReport',
|
||||
'ExpiredPortfolioReport', 'InvoicesStart', 'PortfolioBySalesmanReport',
|
||||
'MovesInvoicesReport'
|
||||
'SaleIncomeDailyStart', 'SaleDailyReport', 'SaleMonthByShopStart',
|
||||
'SaleDetailedStart', 'SaleDetailedReport', 'ShopDailySummaryStart',
|
||||
'PortfolioDetailedReport', 'ExpiredPortfolioReport', 'MovesInvoicesReport',
|
||||
'PortfolioBySalesmanReport'
|
||||
]
|
||||
# 'InvoicesStart'
|
||||
|
||||
_ZERO = Decimal('0.00')
|
||||
|
||||
|
@ -270,15 +262,15 @@ class ExpiredPortfolioReport(metaclass=PoolMeta):
|
|||
return domain
|
||||
|
||||
|
||||
class InvoicesStart(metaclass=PoolMeta):
|
||||
__name__ = 'invoice_report.print_invoices.start'
|
||||
|
||||
@classmethod
|
||||
def __setup__(cls):
|
||||
super(InvoicesStart, cls).__setup__()
|
||||
cls.shop.domain.append(
|
||||
('id', 'in', Eval('context', {}).get('shops', -1))
|
||||
)
|
||||
# class InvoicesStart(metaclass=PoolMeta):
|
||||
# __name__ = 'invoice_report.print_invoices.start'
|
||||
#
|
||||
# @classmethod
|
||||
# def __setup__(cls):
|
||||
# super(InvoicesStart, cls).__setup__()
|
||||
# cls.shop.domain.append(
|
||||
# ('id', 'in', Eval('context', {}).get('shops', -1))
|
||||
# )
|
||||
|
||||
|
||||
class PortfolioBySalesmanReport(metaclass=PoolMeta):
|
||||
|
|
|
@ -1,10 +0,0 @@
|
|||
<?xml version="1.0"?>
|
||||
<!-- This file is part of Tryton. The COPYRIGHT file at the top level of
|
||||
this repository contains the full copyright notices and license terms. -->
|
||||
<data>
|
||||
<xpath expr="/form/field[@name='purchase_process_after']" position="after">
|
||||
<newline/>
|
||||
<separator string="" id="separator" colspan="4" />
|
||||
<field name="authorized_users_limit_amount" colspan="4"/>
|
||||
</xpath>
|
||||
</data>
|
|
@ -1,14 +0,0 @@
|
|||
<?xml version="1.0"?>
|
||||
<!-- The COPYRIGHT file at the top level of this repository contains the full
|
||||
copyright notices and license terms. -->
|
||||
<data>
|
||||
<xpath expr="/form/notebook/page[@id='info']/field[@name='company']"
|
||||
position="after">
|
||||
<label name="sign"/>
|
||||
<field name="sign"/>
|
||||
<label name="signed_date"/>
|
||||
<field name="signed_date"/>
|
||||
<label name="sign_image"/>
|
||||
<field name="sign_image" widget="image"/>
|
||||
</xpath>
|
||||
</data>
|
|
@ -1,9 +0,0 @@
|
|||
<?xml version="1.0"?>
|
||||
<!-- This file is part of Tryton. The COPYRIGHT file at the top level of
|
||||
this repository contains the full copyright notices and license terms. -->
|
||||
<form>
|
||||
<label name="user"/>
|
||||
<field name="user"/>
|
||||
<label name="limit_amount_confirm"/>
|
||||
<field name="limit_amount_confirm"/>
|
||||
</form>
|
|
@ -1,8 +0,0 @@
|
|||
<?xml version="1.0"?>
|
||||
<!-- This file is part of Tryton. The COPYRIGHT file at the top level of
|
||||
this repository contains the full copyright notices and license terms. -->
|
||||
|
||||
<tree editable="bottom">
|
||||
<field name="user"/>
|
||||
<field name="limit_amount_confirm"/>
|
||||
</tree>
|
Loading…
Reference in a new issue