Compare commits
3 Commits
8.0-improv
...
9.0
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
da53473b60 | ||
|
|
667775d466 | ||
|
|
25de048402 |
@@ -25,5 +25,5 @@ This module has been written by Alexis de Lattre from Akretion
|
|||||||
'data': [
|
'data': [
|
||||||
'analytic_view.xml',
|
'analytic_view.xml',
|
||||||
],
|
],
|
||||||
'installable': True,
|
'installable': False,
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -45,5 +45,5 @@ This module has been written by Alexis de Lattre from Akretion <alexis.delattre@
|
|||||||
'website': 'http://www.akretion.com',
|
'website': 'http://www.akretion.com',
|
||||||
'depends': ['account_bank_statement_import'],
|
'depends': ['account_bank_statement_import'],
|
||||||
'data': ['account_view.xml'],
|
'data': ['account_view.xml'],
|
||||||
'installable': True,
|
'installable': False,
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -42,5 +42,5 @@ This module has been written by Alexis de Lattre from Akretion <alexis.delattre@
|
|||||||
'website': 'http://www.akretion.com',
|
'website': 'http://www.akretion.com',
|
||||||
'depends': ['account_credit_control', 'partner_aged_open_invoices'],
|
'depends': ['account_credit_control', 'partner_aged_open_invoices'],
|
||||||
'data': ['account_credit_control_view.xml'],
|
'data': ['account_credit_control_view.xml'],
|
||||||
'installable': True,
|
'installable': False,
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -20,5 +20,5 @@ This module has been written by Alexis de Lattre from Akretion <alexis.delattre@
|
|||||||
'website': 'http://www.akretion.com',
|
'website': 'http://www.akretion.com',
|
||||||
'depends': ['account_cutoff_accrual_picking', 'report_aeroo'],
|
'depends': ['account_cutoff_accrual_picking', 'report_aeroo'],
|
||||||
'data': ['report.xml'],
|
'data': ['report.xml'],
|
||||||
'installable': True,
|
'installable': False,
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -39,5 +39,5 @@ This module has been written by Alexis de Lattre from Akretion <alexis.delattre@
|
|||||||
'website': 'http://www.akretion.com',
|
'website': 'http://www.akretion.com',
|
||||||
'depends': ['account_cutoff_prepaid', 'report_aeroo'],
|
'depends': ['account_cutoff_prepaid', 'report_aeroo'],
|
||||||
'data': ['report.xml'],
|
'data': ['report.xml'],
|
||||||
'installable': True,
|
'installable': False,
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -43,5 +43,5 @@ This module has been written by Alexis de Lattre from Akretion <alexis.delattre@
|
|||||||
'website': 'http://www.akretion.com',
|
'website': 'http://www.akretion.com',
|
||||||
'depends': ['account_banking_sepa_direct_debit', 'account_payment_partner'],
|
'depends': ['account_banking_sepa_direct_debit', 'account_payment_partner'],
|
||||||
'data': [],
|
'data': [],
|
||||||
'installable': True,
|
'installable': False,
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -22,5 +22,5 @@ This module has been written by Alexis de Lattre from Akretion <alexis.delattre@
|
|||||||
'data': [
|
'data': [
|
||||||
'account_fiscal_position_view.xml',
|
'account_fiscal_position_view.xml',
|
||||||
],
|
],
|
||||||
'installable': True,
|
'installable': False,
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -39,5 +39,5 @@ Please contact Alexis de Lattre from Akretion <alexis.delattre@akretion.com> for
|
|||||||
'website': 'http://www.akretion.com',
|
'website': 'http://www.akretion.com',
|
||||||
'depends': ['account'],
|
'depends': ['account'],
|
||||||
'data': [],
|
'data': [],
|
||||||
'installable': True,
|
'installable': False,
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -26,5 +26,5 @@ This module has been written by Alexis de Lattre from Akretion
|
|||||||
'website': 'http://www.akretion.com',
|
'website': 'http://www.akretion.com',
|
||||||
'depends': ['account', 'base_usability'],
|
'depends': ['account', 'base_usability'],
|
||||||
'data': ['account_view.xml'],
|
'data': ['account_view.xml'],
|
||||||
'installable': True,
|
'installable': False,
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -40,5 +40,5 @@ This module has been written by Alexis de Lattre from Akretion <alexis.delattre@
|
|||||||
'author': 'Akretion',
|
'author': 'Akretion',
|
||||||
'website': 'http://www.akretion.com',
|
'website': 'http://www.akretion.com',
|
||||||
'depends': ['account'],
|
'depends': ['account'],
|
||||||
'installable': True,
|
'installable': False,
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -39,5 +39,5 @@ This module has been written by Alexis de Lattre from Akretion <alexis.delattre@
|
|||||||
'website': 'http://www.akretion.com',
|
'website': 'http://www.akretion.com',
|
||||||
'depends': ['account'],
|
'depends': ['account'],
|
||||||
'data': ['account_invoice_view.xml'],
|
'data': ['account_invoice_view.xml'],
|
||||||
'installable': True,
|
'installable': False,
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -39,5 +39,5 @@ This module has been written by Alexis de Lattre from Akretion
|
|||||||
'data': [
|
'data': [
|
||||||
'account_invoice_view.xml',
|
'account_invoice_view.xml',
|
||||||
],
|
],
|
||||||
'installable': True,
|
'installable': False,
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -37,5 +37,5 @@ This module has been written by Alexis de Lattre from Akretion
|
|||||||
'website': 'http://www.akretion.com',
|
'website': 'http://www.akretion.com',
|
||||||
'depends': ['account_invoice_margin', 'bi_invoice_company_currency'],
|
'depends': ['account_invoice_margin', 'bi_invoice_company_currency'],
|
||||||
'data': [],
|
'data': [],
|
||||||
'installable': True,
|
'installable': False,
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -39,5 +39,5 @@ This module has been written by Alexis de Lattre from Akretion <alexis.delattre@
|
|||||||
'website': 'http://www.akretion.com',
|
'website': 'http://www.akretion.com',
|
||||||
'depends': ['account'],
|
'depends': ['account'],
|
||||||
'data': ['company_view.xml'],
|
'data': ['company_view.xml'],
|
||||||
'installable': True,
|
'installable': False,
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -36,7 +36,7 @@ Adds a function field named *picking_ids_label* on invoices. This field contains
|
|||||||
'website': 'http://www.akretion.com/',
|
'website': 'http://www.akretion.com/',
|
||||||
'depends': ['stock_account'],
|
'depends': ['stock_account'],
|
||||||
'data': [],
|
'data': [],
|
||||||
'installable': True,
|
'installable': False,
|
||||||
'active': False,
|
'active': False,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -41,6 +41,6 @@ Please contact Alexis de Lattre from Akretion <alexis.delattre@akretion.com> for
|
|||||||
'website': 'http://www.akretion.com',
|
'website': 'http://www.akretion.com',
|
||||||
'depends': ['sale'],
|
'depends': ['sale'],
|
||||||
'data': ['account_invoice_view.xml'],
|
'data': ['account_invoice_view.xml'],
|
||||||
'installable': True,
|
'installable': False,
|
||||||
'active': False,
|
'active': False,
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -30,5 +30,5 @@ This module adds a button *Update Invoice* on Customer and Supplier invoices in
|
|||||||
'wizard/account_invoice_update_view.xml',
|
'wizard/account_invoice_update_view.xml',
|
||||||
'views/account_invoice.xml',
|
'views/account_invoice.xml',
|
||||||
],
|
],
|
||||||
'installable': True,
|
'installable': False,
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -39,5 +39,5 @@ This module has been written by Alexis de Lattre from Akretion <alexis.delattre@
|
|||||||
'website': 'http://www.akretion.com',
|
'website': 'http://www.akretion.com',
|
||||||
'depends': ['account_usability'],
|
'depends': ['account_usability'],
|
||||||
'data': ['wizard/account_move_line_filter_view.xml'],
|
'data': ['wizard/account_move_line_filter_view.xml'],
|
||||||
'installable': True,
|
'installable': False,
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -40,5 +40,5 @@ This module has been written by Alexis de Lattre from Akretion
|
|||||||
'website': 'http://www.akretion.com/',
|
'website': 'http://www.akretion.com/',
|
||||||
'depends': ['account_cutoff_prepaid', 'account_move_line_report_xls'],
|
'depends': ['account_cutoff_prepaid', 'account_move_line_report_xls'],
|
||||||
'data': [],
|
'data': [],
|
||||||
'installable': True,
|
'installable': False,
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -37,4 +37,5 @@ This module has been written by Alexis de Lattre from Akretion <alexis.delattre@
|
|||||||
'author': 'Akretion',
|
'author': 'Akretion',
|
||||||
'depends': ['account_payment'],
|
'depends': ['account_payment'],
|
||||||
'data': ['payment_view.xml'],
|
'data': ['payment_view.xml'],
|
||||||
|
'installable': False,
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -40,4 +40,5 @@ Please contact Alexis de Lattre from Akretion <alexis.delattre@akretion.com> for
|
|||||||
'payment_view.xml',
|
'payment_view.xml',
|
||||||
],
|
],
|
||||||
'active': False,
|
'active': False,
|
||||||
|
'installable': False,
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -42,4 +42,5 @@ Please contact Alexis de Lattre from Akretion <alexis.delattre@akretion.com> for
|
|||||||
'security/ir.model.access.csv',
|
'security/ir.model.access.csv',
|
||||||
],
|
],
|
||||||
'active': False,
|
'active': False,
|
||||||
|
'installable': False,
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
# -*- encoding: utf-8 -*-
|
# -*- encoding: utf-8 -*-
|
||||||
|
|
||||||
from . import account
|
from . import account
|
||||||
from . import wizard
|
|
||||||
|
|||||||
@@ -49,9 +49,6 @@ This module has been written by Alexis de Lattre from Akretion <alexis.delattre@
|
|||||||
'website': 'http://www.akretion.com',
|
'website': 'http://www.akretion.com',
|
||||||
'depends': ['account'],
|
'depends': ['account'],
|
||||||
'conflicts': ['account_invoice_overdue_filter'],
|
'conflicts': ['account_invoice_overdue_filter'],
|
||||||
'data': [
|
'data': ['account_view.xml'],
|
||||||
'account_view.xml',
|
'installable': False,
|
||||||
'wizard/account_invoice_mark_sent_view.xml',
|
|
||||||
],
|
|
||||||
'installable': True,
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -29,7 +29,6 @@ logger = logging.getLogger(__name__)
|
|||||||
|
|
||||||
class AccountInvoice(models.Model):
|
class AccountInvoice(models.Model):
|
||||||
_inherit = 'account.invoice'
|
_inherit = 'account.invoice'
|
||||||
_order = "date_invoice desc, number desc, id desc"
|
|
||||||
|
|
||||||
origin = fields.Char(track_visibility='onchange')
|
origin = fields.Char(track_visibility='onchange')
|
||||||
supplier_invoice_number = fields.Char(track_visibility='onchange')
|
supplier_invoice_number = fields.Char(track_visibility='onchange')
|
||||||
@@ -44,37 +43,6 @@ class AccountInvoice(models.Model):
|
|||||||
journal_id = fields.Many2one(track_visibility='onchange')
|
journal_id = fields.Many2one(track_visibility='onchange')
|
||||||
partner_bank_id = fields.Many2one(track_visibility='onchange')
|
partner_bank_id = fields.Many2one(track_visibility='onchange')
|
||||||
fiscal_position = fields.Many2one(track_visibility='onchange')
|
fiscal_position = fields.Many2one(track_visibility='onchange')
|
||||||
# has_attachment is useful for those who use attachment to archive
|
|
||||||
# supplier invoices. It allows them to find supplier invoices
|
|
||||||
# that don't have any attachment
|
|
||||||
has_attachment = fields.Boolean(
|
|
||||||
compute='_compute_has_attachment',
|
|
||||||
search='_search_has_attachment', readonly=True)
|
|
||||||
|
|
||||||
@api.multi
|
|
||||||
def _compute_has_attachment(self):
|
|
||||||
iao = self.env['ir.attachment']
|
|
||||||
for inv in self:
|
|
||||||
if iao.search([
|
|
||||||
('res_model', '=', 'account.invoice'),
|
|
||||||
('res_id', '=', inv.id),
|
|
||||||
('type', '=', 'binary'),
|
|
||||||
('company_id', '=', inv.company_id.id)], limit=1):
|
|
||||||
inv.has_attachment = True
|
|
||||||
else:
|
|
||||||
inv.has_attachment = False
|
|
||||||
|
|
||||||
def _search_has_attachment(self, operator, value):
|
|
||||||
att_inv_ids = {}
|
|
||||||
if operator == '=':
|
|
||||||
search_res = self.env['ir.attachment'].search_read([
|
|
||||||
('res_model', '=', 'account.invoice'),
|
|
||||||
('type', '=', 'binary'),
|
|
||||||
('res_id', '!=', False)], ['res_id'])
|
|
||||||
for att in search_res:
|
|
||||||
att_inv_ids[att['res_id']] = True
|
|
||||||
res = [('id', value and 'in' or 'not in', att_inv_ids.keys())]
|
|
||||||
return res
|
|
||||||
|
|
||||||
@api.multi
|
@api.multi
|
||||||
def onchange_payment_term_date_invoice(
|
def onchange_payment_term_date_invoice(
|
||||||
@@ -162,21 +130,6 @@ class AccountAccount(models.Model):
|
|||||||
else:
|
else:
|
||||||
return super(AccountAccount, self).name_get()
|
return super(AccountAccount, self).name_get()
|
||||||
|
|
||||||
def _check_account_type(self, cr, uid, ids, context=None):
|
|
||||||
'''Disable this native python constraint, because we want to be able
|
|
||||||
to configure payable/receivable accounts with an account type
|
|
||||||
with close_method == 'balance' in order to have opening entries with
|
|
||||||
fewer lines. It is not a problem because we always use
|
|
||||||
account_financial_report_webkit which doesn't take the detailed
|
|
||||||
opening entries into account.'''
|
|
||||||
return True
|
|
||||||
|
|
||||||
_constraints = [
|
|
||||||
# The method name must be exactly the same as the native
|
|
||||||
# method, in order to override it
|
|
||||||
(_check_account_type, 'No error message', ['user_type', 'type']),
|
|
||||||
]
|
|
||||||
|
|
||||||
@api.model
|
@api.model
|
||||||
def check_account_hierarchy(self):
|
def check_account_hierarchy(self):
|
||||||
'''designed to be called by a script'''
|
'''designed to be called by a script'''
|
||||||
@@ -230,10 +183,6 @@ class AccountMove(models.Model):
|
|||||||
# update account_move set ref=left(ref,32) where ref is not null;
|
# update account_move set ref=left(ref,32) where ref is not null;
|
||||||
# update account_move_line set ref=left(ref,32) where ref is not null;
|
# update account_move_line set ref=left(ref,32) where ref is not null;
|
||||||
|
|
||||||
# Allow to duplicate an account.move that belongs to a closed period
|
|
||||||
period_id = fields.Many2one(copy=False)
|
|
||||||
date = fields.Date(copy=False)
|
|
||||||
|
|
||||||
@api.onchange('date')
|
@api.onchange('date')
|
||||||
def date_onchange(self):
|
def date_onchange(self):
|
||||||
if self.date:
|
if self.date:
|
||||||
|
|||||||
@@ -38,11 +38,6 @@
|
|||||||
<field name="period_id" position="attributes">
|
<field name="period_id" position="attributes">
|
||||||
<attribute name="groups"></attribute>
|
<attribute name="groups"></attribute>
|
||||||
</field>
|
</field>
|
||||||
<!-- move sent field and make it visible -->
|
|
||||||
<field name="sent" position="replace"/>
|
|
||||||
<field name="move_id" position="after">
|
|
||||||
<field name="sent"/>
|
|
||||||
</field>
|
|
||||||
</field>
|
</field>
|
||||||
</record>
|
</record>
|
||||||
|
|
||||||
@@ -66,11 +61,6 @@
|
|||||||
<filter name="unpaid" position="after">
|
<filter name="unpaid" position="after">
|
||||||
<filter name="overdue" string="Overdue"
|
<filter name="overdue" string="Overdue"
|
||||||
domain="[('state', '=', 'open'), ('date_due', '<', current_date)]"/>
|
domain="[('state', '=', 'open'), ('date_due', '<', current_date)]"/>
|
||||||
<separator/>
|
|
||||||
<filter name="to_send" string="To Send" domain="[('sent', '=', False), ('state', 'in', ('open', 'paid'))]"/>
|
|
||||||
<filter name="sent" string="Sent" domain="[('sent', '=', True)]"/>
|
|
||||||
<separator/>
|
|
||||||
<filter name="no_attachment" string="Missing Attachment" domain="[('has_attachment', '=', False)]"/>
|
|
||||||
</filter>
|
</filter>
|
||||||
</field>
|
</field>
|
||||||
</record>
|
</record>
|
||||||
@@ -190,24 +180,10 @@ module -->
|
|||||||
<!-- model account.move.line / Journal Items -->
|
<!-- model account.move.line / Journal Items -->
|
||||||
<record id="account.action_account_moves_all_a" model="ir.actions.act_window">
|
<record id="account.action_account_moves_all_a" model="ir.actions.act_window">
|
||||||
<field name="limit">200</field>
|
<field name="limit">200</field>
|
||||||
<!-- add graph -->
|
|
||||||
<field name="view_mode">tree_account_move_line_quickadd,form,graph</field>
|
|
||||||
<!-- Win space, because there are already many columns -->
|
<!-- Win space, because there are already many columns -->
|
||||||
<field name="context">{'journal_show_code_only': True}</field>
|
<field name="context">{'journal_show_code_only': True}</field>
|
||||||
</record>
|
</record>
|
||||||
|
|
||||||
<record id="account_move_line_graph" model="ir.ui.view">
|
|
||||||
<field name="name">usability.account.move.line.graph</field>
|
|
||||||
<field name="model">account.move.line</field>
|
|
||||||
<field name="inherit_id" ref="account.account_move_line_graph"/>
|
|
||||||
<field name="arch" type="xml">
|
|
||||||
<graph position="attributes">
|
|
||||||
<!-- pivot by default instead of bar -->
|
|
||||||
<attribute name="type">pivot</attribute>
|
|
||||||
</graph>
|
|
||||||
</field>
|
|
||||||
</record>
|
|
||||||
|
|
||||||
<!-- model account.move / Journal Entries -->
|
<!-- model account.move / Journal Entries -->
|
||||||
<record id="account.action_move_journal_line" model="ir.actions.act_window">
|
<record id="account.action_move_journal_line" model="ir.actions.act_window">
|
||||||
<field name="limit">200</field>
|
<field name="limit">200</field>
|
||||||
@@ -317,10 +293,9 @@ module -->
|
|||||||
</button>
|
</button>
|
||||||
</button>
|
</button>
|
||||||
<button name="%(account.action_account_moves_all_tree)d" position="attributes">
|
<button name="%(account.action_account_moves_all_tree)d" position="attributes">
|
||||||
<attribute name="invisible">True</attribute>
|
<attribute name="type">object</attribute>
|
||||||
</button>
|
<attribute name="name">show_receivable_account</attribute>
|
||||||
<button name="%(account.action_account_moves_all_tree)d" position="after">
|
<attribute name="attrs">{'invisible': [('customer', '=', False)]}</attribute>
|
||||||
<button type="object" class="oe_stat_button" name="show_receivable_account" icon="fa-list" attrs="{'invisible': [('customer', '=', False)]}"/>
|
|
||||||
</button>
|
</button>
|
||||||
<field name="journal_item_count" position="attributes">
|
<field name="journal_item_count" position="attributes">
|
||||||
<attribute name="string">Receivable Account</attribute>
|
<attribute name="string">Receivable Account</attribute>
|
||||||
|
|||||||
@@ -1,3 +0,0 @@
|
|||||||
# -*- encoding: utf-8 -*-
|
|
||||||
|
|
||||||
from . import account_invoice_mark_sent
|
|
||||||
@@ -1,23 +0,0 @@
|
|||||||
# -*- coding: utf-8 -*-
|
|
||||||
# © 2017 Akretion (Alexis de Lattre <alexis.delattre@akretion.com>)
|
|
||||||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
|
||||||
|
|
||||||
from openerp import models, api
|
|
||||||
import logging
|
|
||||||
logger = logging.getLogger(__name__)
|
|
||||||
|
|
||||||
|
|
||||||
class AccountInvoiceMarkSent(models.TransientModel):
|
|
||||||
_name = 'account.invoice.mark.sent'
|
|
||||||
_description = 'Mark invoices as sent'
|
|
||||||
|
|
||||||
@api.multi
|
|
||||||
def run(self):
|
|
||||||
assert self.env.context.get('active_model') == 'account.invoice',\
|
|
||||||
'Source model must be invoices'
|
|
||||||
assert self.env.context.get('active_ids'), 'No invoices selected'
|
|
||||||
invoices = self.env['account.invoice'].browse(
|
|
||||||
self.env.context.get('active_ids'))
|
|
||||||
invoices.write({'sent': True})
|
|
||||||
logger.info('Marking invoices with ID %s as sent', invoices.ids)
|
|
||||||
return
|
|
||||||
@@ -1,36 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
|
||||||
<!--
|
|
||||||
© 2017 Akretion (Alexis de Lattre <alexis.delattre@akretion.com>)
|
|
||||||
The licence is in the file __openerp__.py
|
|
||||||
-->
|
|
||||||
|
|
||||||
<openerp>
|
|
||||||
<data>
|
|
||||||
|
|
||||||
<record id="account_invoice_mark_sent_form" model="ir.ui.view">
|
|
||||||
<field name="name">account.invoice.mark.sent.form</field>
|
|
||||||
<field name="model">account.invoice.mark.sent</field>
|
|
||||||
<field name="arch" type="xml">
|
|
||||||
<form string="Mark invoices as sent">
|
|
||||||
<p>
|
|
||||||
This wizard will mark as sent all the selected invoices.
|
|
||||||
</p>
|
|
||||||
<footer>
|
|
||||||
<button type="object" name="run" string="Mark as Sent" class="oe_highlight"/>
|
|
||||||
<button special="cancel" string="Cancel" class="oe_link"/>
|
|
||||||
</footer>
|
|
||||||
</form>
|
|
||||||
</field>
|
|
||||||
</record>
|
|
||||||
|
|
||||||
<act_window id="account_invoice_mark_sent_action"
|
|
||||||
multi="True"
|
|
||||||
key2="client_action_multi"
|
|
||||||
name="Mark as Sent"
|
|
||||||
res_model="account.invoice.mark.sent"
|
|
||||||
src_model="account.invoice"
|
|
||||||
view_mode="form"
|
|
||||||
target="new" />
|
|
||||||
|
|
||||||
</data>
|
|
||||||
</openerp>
|
|
||||||
@@ -39,5 +39,5 @@ This module has been written by Alexis de Lattre from Akretion <alexis.delattre@
|
|||||||
'website': 'http://www.akretion.com',
|
'website': 'http://www.akretion.com',
|
||||||
'depends': ['account_voucher'],
|
'depends': ['account_voucher'],
|
||||||
'data': [],
|
'data': [],
|
||||||
'installable': True,
|
'installable': False,
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -48,5 +48,5 @@ This module has been written by Alexis de Lattre from Akretion <alexis.delattre@
|
|||||||
'report_aeroo',
|
'report_aeroo',
|
||||||
'base_other_report_engines',
|
'base_other_report_engines',
|
||||||
],
|
],
|
||||||
'installable': True,
|
'installable': False,
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -21,5 +21,5 @@ Contributors: David BEAL
|
|||||||
'data': [
|
'data': [
|
||||||
'view.xml',
|
'view.xml',
|
||||||
],
|
],
|
||||||
'installable': True,
|
'installable': False,
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -7,45 +7,8 @@
|
|||||||
<field name="view_mode">tree,form</field>
|
<field name="view_mode">tree,form</field>
|
||||||
</record>
|
</record>
|
||||||
|
|
||||||
<record id="product_attribute_view_form" model="ir.ui.view">
|
|
||||||
<field name="model">product.attribute</field>
|
|
||||||
<field name="arch" type="xml">
|
|
||||||
<form string="Product Attribute">
|
|
||||||
<sheet>
|
|
||||||
<div class="oe_title" style="width: 390px;">
|
|
||||||
<label class="oe_edit_only" for="name" string="Product Name"/>
|
|
||||||
<h1><field name="name" class="oe_inline"/></h1>
|
|
||||||
</div>
|
|
||||||
<group>
|
|
||||||
<field name="value_ids" colspan="4" nolabel="1"
|
|
||||||
context="{'hide_attribute_id': True}"/>
|
|
||||||
</group>
|
|
||||||
</sheet>
|
|
||||||
</form>
|
|
||||||
</field>
|
|
||||||
</record>
|
|
||||||
|
|
||||||
<record id="attribute_tree_view" model="ir.ui.view">
|
|
||||||
<field name="model">product.attribute</field>
|
|
||||||
<field name="inherit_id" ref="product.attribute_tree_view"/>
|
|
||||||
<field name="arch" type="xml">
|
|
||||||
<xpath expr="//tree" position="attributes">
|
|
||||||
<attribute name="editable"></attribute>
|
|
||||||
</xpath>
|
|
||||||
</field>
|
|
||||||
</record>
|
|
||||||
|
|
||||||
<record id="variants_tree_view" model="ir.ui.view">
|
|
||||||
<field name="model">product.attribute.value</field>
|
|
||||||
<field name="inherit_id" ref="product.variants_tree_view"/>
|
|
||||||
<field name="arch" type="xml">
|
|
||||||
<field name="attribute_id" position="attributes">
|
|
||||||
<attribute name="invisible">context.get('hide_attribute_id')</attribute>
|
|
||||||
</field>
|
|
||||||
</field>
|
|
||||||
</record>
|
|
||||||
|
|
||||||
<record id="product.attribute_action" model="ir.actions.act_window">
|
<record id="product.attribute_action" model="ir.actions.act_window">
|
||||||
|
<field name="res_model">product.attribute</field>
|
||||||
<field name="view_mode">tree,form</field>
|
<field name="view_mode">tree,form</field>
|
||||||
</record>
|
</record>
|
||||||
|
|
||||||
|
|||||||
@@ -41,5 +41,5 @@ This module adds 2 fields on the Company :
|
|||||||
'website': 'http://www.akretion.com',
|
'website': 'http://www.akretion.com',
|
||||||
'depends': ['base'],
|
'depends': ['base'],
|
||||||
'data': ['company_view.xml'],
|
'data': ['company_view.xml'],
|
||||||
'installable': True,
|
'installable': False,
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -39,5 +39,5 @@ Please contact Alexis de Lattre from Akretion <alexis.delattre@akretion.com> for
|
|||||||
'website': 'http://www.akretion.com',
|
'website': 'http://www.akretion.com',
|
||||||
'depends': ['base'],
|
'depends': ['base'],
|
||||||
'data': [],
|
'data': [],
|
||||||
'installable': True,
|
'installable': False,
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -37,6 +37,6 @@ By default, you can't enter several addresses for an individual in OpenERP becau
|
|||||||
'website': 'http://www.akretion.com',
|
'website': 'http://www.akretion.com',
|
||||||
'depends': ['base'],
|
'depends': ['base'],
|
||||||
'data': ['partner_view.xml'],
|
'data': ['partner_view.xml'],
|
||||||
'installable': True,
|
'installable': False,
|
||||||
'active': False,
|
'active': False,
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -53,5 +53,5 @@ A group by 'State' is added to module search view.
|
|||||||
'module_view.xml',
|
'module_view.xml',
|
||||||
'translation_view.xml',
|
'translation_view.xml',
|
||||||
],
|
],
|
||||||
'installable': True,
|
'installable': False,
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -12,9 +12,6 @@
|
|||||||
<field name="model">ir.module.module</field>
|
<field name="model">ir.module.module</field>
|
||||||
<field name="inherit_id" ref="base.view_module_filter"/>
|
<field name="inherit_id" ref="base.view_module_filter"/>
|
||||||
<field name="arch" type="xml">
|
<field name="arch" type="xml">
|
||||||
<xpath expr="//filter[@name='extra']" position="after">
|
|
||||||
<filter name="installable" string="Installable" domain="[('state', '!=', 'uninstallable')]"/>
|
|
||||||
</xpath>
|
|
||||||
<xpath expr="//filter[@string='Category']" position="after">
|
<xpath expr="//filter[@string='Category']" position="after">
|
||||||
<filter string="State" domain="[]" context="{'group_by':'state'}"/>
|
<filter string="State" domain="[]" context="{'group_by':'state'}"/>
|
||||||
</xpath>
|
</xpath>
|
||||||
@@ -23,7 +20,7 @@
|
|||||||
|
|
||||||
<record id="base.open_module_tree" model="ir.actions.act_window">
|
<record id="base.open_module_tree" model="ir.actions.act_window">
|
||||||
<field name="res_model">ir.module.module</field>
|
<field name="res_model">ir.module.module</field>
|
||||||
<field name="context">{'search_default_installable': 1}</field>
|
<field name="context">{}</field>
|
||||||
</record>
|
</record>
|
||||||
|
|
||||||
</data>
|
</data>
|
||||||
|
|||||||
@@ -60,21 +60,3 @@ class Partner(models.Model):
|
|||||||
else:
|
else:
|
||||||
name_title = ' '.join([title, name_title])
|
name_title = ' '.join([title, name_title])
|
||||||
self.name_title = name_title
|
self.name_title = name_title
|
||||||
|
|
||||||
@api.model
|
|
||||||
def name_search(self, name, args=None, operator='ilike', limit=100):
|
|
||||||
if args is None:
|
|
||||||
args = []
|
|
||||||
if name:
|
|
||||||
# only filter on name and ref not in email
|
|
||||||
args += [
|
|
||||||
'|', ('display_name', 'ilike', name), ('ref', 'ilike', name)]
|
|
||||||
res = super(Partner, self).name_search(
|
|
||||||
name, args=args, operator=operator, limit=limit)
|
|
||||||
return [(pid, val.replace('\n', ' ')) for pid, val in res]
|
|
||||||
|
|
||||||
|
|
||||||
class ResPartnerCategory(models.Model):
|
|
||||||
_inherit = 'res.partner.category'
|
|
||||||
|
|
||||||
name = fields.Char(translate=False)
|
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
from . import wizard
|
from . import wizard
|
||||||
from . import crm
|
|
||||||
|
|||||||
@@ -31,5 +31,5 @@ This module has been written by Alexis de Lattre from Akretion
|
|||||||
'wizard/base_partner_merge_view.xml',
|
'wizard/base_partner_merge_view.xml',
|
||||||
'security/rule.xml',
|
'security/rule.xml',
|
||||||
],
|
],
|
||||||
'installable': True,
|
'installable': False,
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,12 +0,0 @@
|
|||||||
# -*- coding: utf-8 -*-
|
|
||||||
# © 2017 Akretion (http://www.akretion.com)
|
|
||||||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
|
||||||
# @author Alexis de Lattre <alexis.delattre@akretion.com>
|
|
||||||
|
|
||||||
from openerp import models, fields
|
|
||||||
|
|
||||||
|
|
||||||
class CrmCaseCateg(models.Model):
|
|
||||||
_inherit = 'crm.case.categ'
|
|
||||||
|
|
||||||
name = fields.Char(translate=False)
|
|
||||||
@@ -39,5 +39,5 @@ This module has been written by Alexis de Lattre from Akretion <alexis.delattre@
|
|||||||
'website': 'http://www.akretion.com',
|
'website': 'http://www.akretion.com',
|
||||||
'depends': ['delivery'],
|
'depends': ['delivery'],
|
||||||
'data': [],
|
'data': [],
|
||||||
'installable': True,
|
'installable': False,
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1 +0,0 @@
|
|||||||
# -*- coding: utf-8 -*-
|
|
||||||
@@ -1,30 +0,0 @@
|
|||||||
# -*- coding: utf-8 -*-
|
|
||||||
# Copyright 2017 Akretion (http://www.akretion.com).
|
|
||||||
# @author Sébastien BEAU <sebastien.beau@akretion.com>
|
|
||||||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
|
||||||
|
|
||||||
{
|
|
||||||
"name": "Delivery usability",
|
|
||||||
"summary": "Delivery Usability",
|
|
||||||
"version": "8.0.1.0.0",
|
|
||||||
"category": "Warehouse",
|
|
||||||
"website": "www.akretion.com",
|
|
||||||
"author": " Akretion",
|
|
||||||
"license": "AGPL-3",
|
|
||||||
"application": False,
|
|
||||||
"installable": True,
|
|
||||||
"external_dependencies": {
|
|
||||||
"python": [],
|
|
||||||
"bin": [],
|
|
||||||
},
|
|
||||||
"depends": [
|
|
||||||
"delivery",
|
|
||||||
],
|
|
||||||
"data": [
|
|
||||||
"views/stock_picking_view.xml",
|
|
||||||
],
|
|
||||||
"demo": [
|
|
||||||
],
|
|
||||||
"qweb": [
|
|
||||||
]
|
|
||||||
}
|
|
||||||
@@ -1,20 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<openerp>
|
|
||||||
<data>
|
|
||||||
|
|
||||||
<record id="view_picking_withcarrier_out_form" model="ir.ui.view">
|
|
||||||
<field name="model">stock.picking</field>
|
|
||||||
<field name="inherit_id" ref="delivery.view_picking_withcarrier_out_form"/>
|
|
||||||
<field name="priority" eval="100"/>
|
|
||||||
<field name="arch" type="xml">
|
|
||||||
<xpath expr="//field[@name='carrier_id']/.." position="replace">
|
|
||||||
</xpath>
|
|
||||||
<field name="backorder_id" position="after">
|
|
||||||
<field name="carrier_id"/>
|
|
||||||
<field name="carrier_tracking_ref"/>
|
|
||||||
</field>
|
|
||||||
</field>
|
|
||||||
</record>
|
|
||||||
|
|
||||||
</data>
|
|
||||||
</openerp>
|
|
||||||
@@ -23,7 +23,7 @@
|
|||||||
|
|
||||||
{
|
{
|
||||||
'name': 'Eradicate Quick Create',
|
'name': 'Eradicate Quick Create',
|
||||||
'version': '0.1',
|
'version': '9.0.1.0.0',
|
||||||
'category': 'Tools',
|
'category': 'Tools',
|
||||||
'license': 'AGPL-3',
|
'license': 'AGPL-3',
|
||||||
'summary': 'Disable quick create on all objects',
|
'summary': 'Disable quick create on all objects',
|
||||||
@@ -39,4 +39,5 @@ Please contact Alexis de Lattre from Akretion <alexis.delattre@akretion.com> for
|
|||||||
'website': 'http://www.akretion.com',
|
'website': 'http://www.akretion.com',
|
||||||
'depends': ['base_optional_quick_create'],
|
'depends': ['base_optional_quick_create'],
|
||||||
'data': [],
|
'data': [],
|
||||||
|
'installable': True,
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -34,5 +34,5 @@
|
|||||||
'data': [
|
'data': [
|
||||||
'security/expense_security.xml',
|
'security/expense_security.xml',
|
||||||
],
|
],
|
||||||
'installable': True,
|
'installable': False,
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -24,5 +24,5 @@
|
|||||||
'hr_holidays_view.xml',
|
'hr_holidays_view.xml',
|
||||||
'wizard/hr_holidays_post_view.xml',
|
'wizard/hr_holidays_post_view.xml',
|
||||||
],
|
],
|
||||||
'installable': True,
|
'installable': False,
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -16,5 +16,5 @@
|
|||||||
'data': [
|
'data': [
|
||||||
'company_view.xml',
|
'company_view.xml',
|
||||||
],
|
],
|
||||||
'installable': True,
|
'installable': False,
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -5,7 +5,6 @@
|
|||||||
|
|
||||||
from openerp import models, fields, api, _
|
from openerp import models, fields, api, _
|
||||||
from openerp.exceptions import Warning as UserError
|
from openerp.exceptions import Warning as UserError
|
||||||
from openerp.tools import float_is_zero
|
|
||||||
|
|
||||||
|
|
||||||
class LunchVoucherPurchase(models.TransientModel):
|
class LunchVoucherPurchase(models.TransientModel):
|
||||||
@@ -16,8 +15,6 @@ class LunchVoucherPurchase(models.TransientModel):
|
|||||||
self.ensure_one()
|
self.ensure_one()
|
||||||
action = super(LunchVoucherPurchase, self).run()
|
action = super(LunchVoucherPurchase, self).run()
|
||||||
company = self.env.user.company_id
|
company = self.env.user.company_id
|
||||||
# force_company to read standard_price properly
|
|
||||||
company = company.with_context(force_company=company.id)
|
|
||||||
lvao = self.env['lunch.voucher.attribution']
|
lvao = self.env['lunch.voucher.attribution']
|
||||||
assert self._context.get('active_model')\
|
assert self._context.get('active_model')\
|
||||||
== 'lunch.voucher.attribution', 'wrong source model'
|
== 'lunch.voucher.attribution', 'wrong source model'
|
||||||
@@ -40,18 +37,10 @@ class LunchVoucherPurchase(models.TransientModel):
|
|||||||
"Natixis Delivery Code on company '%s' should "
|
"Natixis Delivery Code on company '%s' should "
|
||||||
"have 7 characters/digits.")
|
"have 7 characters/digits.")
|
||||||
% (company.lunch_voucher_natixis_delivery_code, company.name))
|
% (company.lunch_voucher_natixis_delivery_code, company.name))
|
||||||
if float_is_zero(
|
if not company.lunch_voucher_employer_price:
|
||||||
company.lunch_voucher_employer_price,
|
|
||||||
precision_digits=2):
|
|
||||||
raise UserError(_(
|
raise UserError(_(
|
||||||
"Lunch Voucher Employer Price not set on company '%s'.")
|
"Lunch Voucher Employer Price not set on company '%s'.")
|
||||||
% company.name)
|
% company.name)
|
||||||
if float_is_zero(
|
|
||||||
company.lunch_voucher_product_id.standard_price,
|
|
||||||
precision_digits=2):
|
|
||||||
raise UserError(_(
|
|
||||||
"Lunch Voucher Standard Price is not set on product '%s'.")
|
|
||||||
% company.lunch_voucher_product_id.display_name)
|
|
||||||
lvouchers = lvao.browse(self._context['active_ids'])
|
lvouchers = lvao.browse(self._context['active_ids'])
|
||||||
of = u''
|
of = u''
|
||||||
tmp = {}
|
tmp = {}
|
||||||
|
|||||||
@@ -42,5 +42,5 @@
|
|||||||
'security/holiday_security.xml',
|
'security/holiday_security.xml',
|
||||||
'security/ir.model.access.csv',
|
'security/ir.model.access.csv',
|
||||||
],
|
],
|
||||||
'installable': True,
|
'installable': False,
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -74,11 +74,9 @@ class HrHolidaysPost(models.TransientModel):
|
|||||||
# because, after the write, it doesn't have a value any more !!!
|
# because, after the write, it doesn't have a value any more !!!
|
||||||
holidays_to_post = self.holidays_to_post_ids
|
holidays_to_post = self.holidays_to_post_ids
|
||||||
today = fields.Date.context_today(self)
|
today = fields.Date.context_today(self)
|
||||||
# Disable the raise below to make the module "hr_holidays_lunch_voucher"
|
if not self.holidays_to_post_ids:
|
||||||
# work even when nobody took holidays on the current month
|
raise Warning(
|
||||||
# if not self.holidays_to_post_ids:
|
_('No leave request to post.'))
|
||||||
# raise Warning(
|
|
||||||
# _('No leave request to post.'))
|
|
||||||
self.holidays_to_post_ids.write({'posted_date': today})
|
self.holidays_to_post_ids.write({'posted_date': today})
|
||||||
view_id = self.env.ref('hr_holidays_usability.hr_holiday_graph').id
|
view_id = self.env.ref('hr_holidays_usability.hr_holiday_graph').id
|
||||||
action = {
|
action = {
|
||||||
|
|||||||
@@ -41,5 +41,5 @@ This module has been developped by Alexis de Lattre <alexis.delattre@akretion.co
|
|||||||
'data': [
|
'data': [
|
||||||
'hr_view.xml',
|
'hr_view.xml',
|
||||||
],
|
],
|
||||||
'installable': True,
|
'installable': False,
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -42,5 +42,5 @@ This module has been written by Alexis de Lattre from Akretion <alexis.delattre@
|
|||||||
'depends': ['intrastat_product', 'l10n_fr_intrastat_service'],
|
'depends': ['intrastat_product', 'l10n_fr_intrastat_service'],
|
||||||
'data': ['product_view.xml'],
|
'data': ['product_view.xml'],
|
||||||
'post_init_hook': 'set_intrastat_type_on_products',
|
'post_init_hook': 'set_intrastat_type_on_products',
|
||||||
'installable': True,
|
'installable': False,
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -46,5 +46,5 @@ This module has been written by Alexis de Lattre from Akretion <alexis.delattre@
|
|||||||
'author': "Akretion",
|
'author': "Akretion",
|
||||||
'website': 'http://www.akretion.com',
|
'website': 'http://www.akretion.com',
|
||||||
'depends': ['base'],
|
'depends': ['base'],
|
||||||
'installable': True,
|
'installable': False,
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -39,5 +39,5 @@ This module has been written by Alexis de Lattre from Akretion <alexis.delattre@
|
|||||||
'website': 'http://www.akretion.com',
|
'website': 'http://www.akretion.com',
|
||||||
'depends': ['l10n_fr_intrastat_product', 'report_aeroo'],
|
'depends': ['l10n_fr_intrastat_product', 'report_aeroo'],
|
||||||
'data': ['report.xml'],
|
'data': ['report.xml'],
|
||||||
'installable': True,
|
'installable': False,
|
||||||
}
|
}
|
||||||
|
|||||||
Binary file not shown.
@@ -40,5 +40,5 @@ This module has been written by Alexis de Lattre from Akretion <alexis.delattre@
|
|||||||
'website': 'http://www.akretion.com',
|
'website': 'http://www.akretion.com',
|
||||||
'depends': ['l10n_fr'],
|
'depends': ['l10n_fr'],
|
||||||
'data': [],
|
'data': [],
|
||||||
'installable': True,
|
'installable': False,
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -42,6 +42,6 @@ Small usability improvements on mails:
|
|||||||
'author': 'Akretion',
|
'author': 'Akretion',
|
||||||
'website': 'http://www.akretion.com',
|
'website': 'http://www.akretion.com',
|
||||||
'depends': ['mail'],
|
'depends': ['mail'],
|
||||||
'data': ['views/mail.xml'],
|
'data': [],
|
||||||
'installable': True,
|
'installable': False,
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,92 +0,0 @@
|
|||||||
openerp_FieldMany2ManyTagsEmail = function(instance) {
|
|
||||||
var _t = instance.web._t;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Extend of FieldMany2ManyTags widget method.
|
|
||||||
* When the user add a partner and the partner don't have an email, open a popup to purpose to add an email.
|
|
||||||
* The user can choose to add an email or cancel and close the popup.
|
|
||||||
*/
|
|
||||||
instance.web.form.FieldMany2ManyTagsEmail = instance.web.form.FieldMany2ManyTags.extend({
|
|
||||||
|
|
||||||
start: function() {
|
|
||||||
this.mutex = new openerp.Mutex();
|
|
||||||
|
|
||||||
// This widget will indirectly trigger a change:value to it's parent widget
|
|
||||||
// when setting the value of valid partners. For this reason we have to keep an
|
|
||||||
// internal state of the last value in order to compute the effective value changes.
|
|
||||||
this.last_processed_value = [];
|
|
||||||
|
|
||||||
this.on("change:value", this, this.on_change_value_check);
|
|
||||||
// Restore pop-up when trying to send to a partner without email
|
|
||||||
this.on_change_value_check();
|
|
||||||
this._super.apply(this, arguments);
|
|
||||||
},
|
|
||||||
|
|
||||||
on_change_value_check : function () {
|
|
||||||
var self = this;
|
|
||||||
var values = this.get('value').slice(0); // Clone the array
|
|
||||||
|
|
||||||
// We only validate partners emails in case the value is not empty
|
|
||||||
// and is different from the last processed value
|
|
||||||
var effective_change = _.difference(values, self.last_processed_value).length;
|
|
||||||
if (values.length && effective_change) {
|
|
||||||
this.mutex.exec(function() {
|
|
||||||
return self._check_email_popup(values);
|
|
||||||
});
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
_check_email_popup: function (ids) {
|
|
||||||
var self = this;
|
|
||||||
var valid_partners;
|
|
||||||
|
|
||||||
new instance.web.Model('res.partner').call("search", [[
|
|
||||||
["id", "in", ids],
|
|
||||||
["email", "=", false],
|
|
||||||
["notify_email", "in", ['always', 'all_except_notification']]]],
|
|
||||||
{context: this.build_context()})
|
|
||||||
.then(function (record_ids) {
|
|
||||||
var popups_deferreds = [];
|
|
||||||
self.valid_partners = _.difference(ids, record_ids);
|
|
||||||
|
|
||||||
// Propose the user to correct invalid partners
|
|
||||||
_.each(record_ids, function (id) {
|
|
||||||
var popup_def = $.Deferred();
|
|
||||||
popups_deferreds.push(popup_def);
|
|
||||||
|
|
||||||
var pop = new instance.web.form.FormOpenPopup(self);
|
|
||||||
pop.show_element(
|
|
||||||
'res.partner',
|
|
||||||
id,
|
|
||||||
self.build_context(),
|
|
||||||
{
|
|
||||||
title: _t("Please complete partner's informations and Email"),
|
|
||||||
}
|
|
||||||
);
|
|
||||||
pop.on('write_completed', self, function () {
|
|
||||||
self.valid_partners.push(id);
|
|
||||||
});
|
|
||||||
pop.on('closed', self, function () {
|
|
||||||
popup_def.resolve();
|
|
||||||
});
|
|
||||||
});
|
|
||||||
return $.when.apply($, popups_deferreds).then(function() {
|
|
||||||
// All popups have been processed for the given ids
|
|
||||||
// It is now time to set the final value with valid partners ids.
|
|
||||||
var filtered_value = _.uniq(self.valid_partners);
|
|
||||||
self.last_processed_value = filtered_value;
|
|
||||||
self.set({'value': filtered_value});
|
|
||||||
});
|
|
||||||
});
|
|
||||||
},
|
|
||||||
});
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Registry of form fields
|
|
||||||
*/
|
|
||||||
instance.web.form.widgets = instance.web.form.widgets.extend({
|
|
||||||
'many2many_tags_email' : 'instance.web.form.FieldMany2ManyTagsEmail',
|
|
||||||
});
|
|
||||||
|
|
||||||
};
|
|
||||||
@@ -1,11 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
|
||||||
|
|
||||||
<openerp>
|
|
||||||
<data>
|
|
||||||
<template id="assets_backend" name="mail usability assets" inherit_id="web.assets_backend">
|
|
||||||
<xpath expr="." position="inside">
|
|
||||||
<script type="text/javascript" src="/mail_usability/static/src/js/many2many_tags_email.js"></script>
|
|
||||||
</xpath>
|
|
||||||
</template>
|
|
||||||
</data>
|
|
||||||
</openerp>
|
|
||||||
@@ -25,5 +25,5 @@ Contributors: David BEAL
|
|||||||
'data': [
|
'data': [
|
||||||
'view.xml',
|
'view.xml',
|
||||||
],
|
],
|
||||||
'installable': True,
|
'installable': False,
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -47,6 +47,6 @@ with https://github.com/akretion/csv2xml4odoo
|
|||||||
'misc_data.xml',
|
'misc_data.xml',
|
||||||
'ir_exports_line_data.xml',
|
'ir_exports_line_data.xml',
|
||||||
],
|
],
|
||||||
'installable': True,
|
'installable': False,
|
||||||
'license': 'AGPL-3',
|
'license': 'AGPL-3',
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -43,5 +43,5 @@ This module has been written by Alexis de Lattre from Akretion <alexis.delattre@
|
|||||||
'website': 'http://www.akretion.com',
|
'website': 'http://www.akretion.com',
|
||||||
'depends': ['mrp'],
|
'depends': ['mrp'],
|
||||||
'data': ['mrp_view.xml'],
|
'data': ['mrp_view.xml'],
|
||||||
'installable': True,
|
'installable': False,
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -41,4 +41,5 @@ This module has been written by Alexis de Lattre from Akretion <alexis.delattre@
|
|||||||
'website': 'http://www.akretion.com',
|
'website': 'http://www.akretion.com',
|
||||||
'depends': ['account_financial_report_webkit'],
|
'depends': ['account_financial_report_webkit'],
|
||||||
'data': ['partner_view.xml'],
|
'data': ['partner_view.xml'],
|
||||||
|
'installable': False,
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -40,27 +40,31 @@ class ResPartner(models.Model):
|
|||||||
def open_aged_open_invoices_report(self):
|
def open_aged_open_invoices_report(self):
|
||||||
aoiwo = self.env['aged.open.invoices.webkit']
|
aoiwo = self.env['aged.open.invoices.webkit']
|
||||||
afo = self.env['account.fiscalyear']
|
afo = self.env['account.fiscalyear']
|
||||||
# Filter by period (and not by date) to get
|
# Force 'date_from' to the first day of the company's life
|
||||||
# the report à nouveau
|
# in order to get the full picture of the partner's account
|
||||||
|
# (we could also do that via a filter by period, but, in this case,
|
||||||
|
# account_financial_report_webkit doesn't accept "until_date = today" ;
|
||||||
|
# until_date has to be the end date of the last period
|
||||||
fy_years = afo.search([], order='date_start')
|
fy_years = afo.search([], order='date_start')
|
||||||
date_from = fy_years[0].date_start
|
date_from = fy_years[0].date_start
|
||||||
fy_id = aoiwo._get_fiscalyear()
|
fy_id = aoiwo._get_fiscalyear()
|
||||||
filter_change = aoiwo.onchange_filter(
|
filter_change = aoiwo.onchange_filter(
|
||||||
filter='filter_period', fiscalyear_id=fy_id)
|
filter='filter_date', fiscalyear_id=fy_id)
|
||||||
vals = {
|
vals = {
|
||||||
'fiscalyear_id': fy_id,
|
'fiscalyear_id': fy_id,
|
||||||
'filter': 'filter_period',
|
'filter': 'filter_date',
|
||||||
'partner_ids': [(6, 0, [self.commercial_partner_id.id])],
|
'partner_ids': [(6, 0, [self.commercial_partner_id.id])],
|
||||||
'target_move': 'all',
|
'target_move': 'all',
|
||||||
}
|
}
|
||||||
vals.update(filter_change['value'])
|
vals.update(filter_change['value'])
|
||||||
|
vals['date_from'] = date_from
|
||||||
wizard = aoiwo.create(vals)
|
wizard = aoiwo.create(vals)
|
||||||
data = {'form': {
|
data = {'form': {
|
||||||
'chart_account_id': wizard.chart_account_id.id,
|
'chart_account_id': wizard.chart_account_id.id,
|
||||||
'filter': vals['filter'],
|
'filter': vals['filter'],
|
||||||
'period_from': vals['period_from'],
|
'date_from': vals['date_from'],
|
||||||
'period_to': vals['period_to'],
|
'date_to': vals['date_to'],
|
||||||
'date_to': False,
|
'period_to': False,
|
||||||
'fiscalyear_id': vals['fiscalyear_id'],
|
'fiscalyear_id': vals['fiscalyear_id'],
|
||||||
'partner_ids': vals['partner_ids'][0][2],
|
'partner_ids': vals['partner_ids'][0][2],
|
||||||
'target_move': vals['target_move'],
|
'target_move': vals['target_move'],
|
||||||
|
|||||||
@@ -43,5 +43,5 @@ This module has been written by Alexis de Lattre from Akretion
|
|||||||
'depends': ['product'],
|
'depends': ['product'],
|
||||||
'conflicts': ['partner_products_shortcut'],
|
'conflicts': ['partner_products_shortcut'],
|
||||||
'data': ['partner_view.xml'],
|
'data': ['partner_view.xml'],
|
||||||
'installable': True,
|
'installable': False,
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -43,5 +43,5 @@ This module has been written by Alexis de Lattre from Akretion
|
|||||||
'depends': ['product'],
|
'depends': ['product'],
|
||||||
'conflicts': ['partner_product_variants_shortcut'],
|
'conflicts': ['partner_product_variants_shortcut'],
|
||||||
'data': ['partner_view.xml'],
|
'data': ['partner_view.xml'],
|
||||||
'installable': True,
|
'installable': False,
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -18,5 +18,5 @@ Search view improved: filter on postal code, city, mail, phone, etc...
|
|||||||
'data': [
|
'data': [
|
||||||
'partner_view.xml',
|
'partner_view.xml',
|
||||||
],
|
],
|
||||||
'installable': True,
|
'installable': False,
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -14,20 +14,10 @@
|
|||||||
<field name="phone" string="Phones"
|
<field name="phone" string="Phones"
|
||||||
filter_domain="['|', ('phone', 'like', self), ('mobile', 'like', self)]"/>
|
filter_domain="['|', ('phone', 'like', self), ('mobile', 'like', self)]"/>
|
||||||
</field>
|
</field>
|
||||||
|
<!-- Display the real field names of the search -->
|
||||||
<!-- We split the search of name, ref / email in two
|
|
||||||
as searching in email can return a lot of unwanted result
|
|
||||||
for exemple when you sell on marketplace and search for a customer
|
|
||||||
amazon you will have all customer that have bought throught the marketplace -->
|
|
||||||
|
|
||||||
<field name="name" position="attributes">
|
<field name="name" position="attributes">
|
||||||
<attribute name="string">Name, Ref</attribute>
|
<attribute name="string">Name, Ref, Email</attribute>
|
||||||
<attribute name="filter_domain">['|', ('display_name','ilike',self), ('ref','=',self)]</attribute>
|
|
||||||
</field>
|
</field>
|
||||||
<field name="name" position="after">
|
|
||||||
<field name="email"/>
|
|
||||||
</field>
|
|
||||||
|
|
||||||
</field>
|
</field>
|
||||||
</record>
|
</record>
|
||||||
|
|
||||||
|
|||||||
@@ -13,7 +13,7 @@
|
|||||||
"author": " Akretion",
|
"author": " Akretion",
|
||||||
"license": "AGPL-3",
|
"license": "AGPL-3",
|
||||||
"application": False,
|
"application": False,
|
||||||
"installable": True,
|
"installable": False,
|
||||||
"external_dependencies": {
|
"external_dependencies": {
|
||||||
"python": [],
|
"python": [],
|
||||||
"bin": [],
|
"bin": [],
|
||||||
|
|||||||
@@ -37,5 +37,5 @@ This module has been written by Alexis de Lattre from Akretion <alexis.delattre@
|
|||||||
'website': 'http://www.akretion.com',
|
'website': 'http://www.akretion.com',
|
||||||
'depends': ['asterisk_click2dial', 'report_aeroo'],
|
'depends': ['asterisk_click2dial', 'report_aeroo'],
|
||||||
'data': ['report.xml'],
|
'data': ['report.xml'],
|
||||||
'installable': True,
|
'installable': False,
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -42,5 +42,5 @@ This module has been written by Alexis de Lattre
|
|||||||
'website': 'http://www.akretion.com',
|
'website': 'http://www.akretion.com',
|
||||||
'depends': ['point_of_sale'],
|
'depends': ['point_of_sale'],
|
||||||
'data': ['pos_journal_sequence_view.xml'],
|
'data': ['pos_journal_sequence_view.xml'],
|
||||||
'installable': True,
|
'installable': False,
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -40,5 +40,5 @@ This module has been written by Alexis de Lattre from Akretion <alexis.delattre@
|
|||||||
'depends': ['point_of_sale', 'pos_usability'],
|
'depends': ['point_of_sale', 'pos_usability'],
|
||||||
# pos_usability is required to have the filter available_in_pos
|
# pos_usability is required to have the filter available_in_pos
|
||||||
'data': ['view.xml'],
|
'data': ['view.xml'],
|
||||||
'installable': True,
|
'installable': False,
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -42,5 +42,5 @@ This module has been written by Alexis de Lattre
|
|||||||
'product_view.xml',
|
'product_view.xml',
|
||||||
'security/ir.model.access.csv',
|
'security/ir.model.access.csv',
|
||||||
],
|
],
|
||||||
'installable': True,
|
'installable': False,
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -41,5 +41,5 @@ This module has been written by Alexis de Lattre from Akretion <alexis.delattre@
|
|||||||
'website': 'http://www.akretion.com',
|
'website': 'http://www.akretion.com',
|
||||||
'depends': ['product'],
|
'depends': ['product'],
|
||||||
'data': ['product_view.xml'],
|
'data': ['product_view.xml'],
|
||||||
'installable': True,
|
'installable': False,
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -41,5 +41,5 @@ This module has been written by Alexis de Lattre from Akretion <alexis.delattre@
|
|||||||
'website': 'http://www.akretion.com',
|
'website': 'http://www.akretion.com',
|
||||||
'depends': ['point_of_sale'],
|
'depends': ['point_of_sale'],
|
||||||
'data': ['pos_view.xml'],
|
'data': ['pos_view.xml'],
|
||||||
'installable': True,
|
'installable': False,
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -42,5 +42,5 @@ This module has been written by Alexis de Lattre from Akretion <alexis.delattre@
|
|||||||
'stock_view.xml',
|
'stock_view.xml',
|
||||||
'wizard/procurement_suggest_view.xml',
|
'wizard/procurement_suggest_view.xml',
|
||||||
],
|
],
|
||||||
'installable': True,
|
'installable': False,
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -41,5 +41,5 @@ This module has been written by Alexis de Lattre from Akretion <alexis.delattre@
|
|||||||
'data': [
|
'data': [
|
||||||
'wizard/procurement_suggest_view.xml',
|
'wizard/procurement_suggest_view.xml',
|
||||||
],
|
],
|
||||||
'installable': True,
|
'installable': False,
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -41,5 +41,5 @@ This module has been written by Alexis de Lattre from Akretion <alexis.delattre@
|
|||||||
'data': [
|
'data': [
|
||||||
'procurement_view.xml',
|
'procurement_view.xml',
|
||||||
],
|
],
|
||||||
'installable': True,
|
'installable': False,
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -33,5 +33,5 @@
|
|||||||
'depends': ['account'],
|
'depends': ['account'],
|
||||||
'data': ['product_view.xml'],
|
'data': ['product_view.xml'],
|
||||||
'demo': [],
|
'demo': [],
|
||||||
'installable': True,
|
'installable': False,
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -30,5 +30,5 @@ This module has been written by Alexis de Lattre from Akretion <alexis.delattre@
|
|||||||
'stock_view.xml',
|
'stock_view.xml',
|
||||||
'product_removal_data.xml',
|
'product_removal_data.xml',
|
||||||
],
|
],
|
||||||
'installable': True,
|
'installable': False,
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -47,6 +47,6 @@ with https://github.com/akretion/csv2xml4odoo
|
|||||||
'misc_data.xml',
|
'misc_data.xml',
|
||||||
'ir_exports_line_data.xml',
|
'ir_exports_line_data.xml',
|
||||||
],
|
],
|
||||||
'installable': True,
|
'installable': False,
|
||||||
'license': 'AGPL-3',
|
'license': 'AGPL-3',
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -43,4 +43,5 @@ Please contact Alexis de Lattre from Akretion <alexis.delattre@akretion.com> for
|
|||||||
'security/ir.model.access.csv',
|
'security/ir.model.access.csv',
|
||||||
],
|
],
|
||||||
'active': False,
|
'active': False,
|
||||||
|
'installable': False,
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -42,4 +42,5 @@ Please contact Alexis de Lattre from Akretion <alexis.delattre@akretion.com> for
|
|||||||
'security/ir.model.access.csv',
|
'security/ir.model.access.csv',
|
||||||
],
|
],
|
||||||
'active': False,
|
'active': False,
|
||||||
|
'installable': False,
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -37,4 +37,5 @@ And it reduces the start time of the Point of Sale !
|
|||||||
'author': 'Akretion',
|
'author': 'Akretion',
|
||||||
'website': 'http://www.akretion.com',
|
'website': 'http://www.akretion.com',
|
||||||
'depends': ['product'],
|
'depends': ['product'],
|
||||||
|
'installable': False,
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,9 +2,9 @@
|
|||||||
<openerp>
|
<openerp>
|
||||||
<data>
|
<data>
|
||||||
|
|
||||||
<record id="product_custom_search_view" model="ir.ui.view">
|
<record id="product_supplier_code_search_view" model="ir.ui.view">
|
||||||
<field name="model">product.product</field>
|
<field name="model">product.template</field>
|
||||||
<field name="inherit_id" ref="product.product_search_form_view"/>
|
<field name="inherit_id" ref="product.product_template_search_view"/>
|
||||||
<field name="arch" type="xml">
|
<field name="arch" type="xml">
|
||||||
<field name="name" position="after">
|
<field name="name" position="after">
|
||||||
<field name="seller_ids" string="Supplier Default Code"
|
<field name="seller_ids" string="Supplier Default Code"
|
||||||
|
|||||||
@@ -12,7 +12,7 @@
|
|||||||
"author": " Akretion",
|
"author": " Akretion",
|
||||||
"license": "AGPL-3",
|
"license": "AGPL-3",
|
||||||
"application": False,
|
"application": False,
|
||||||
"installable": True,
|
"installable": False,
|
||||||
"external_dependencies": {
|
"external_dependencies": {
|
||||||
"python": [],
|
"python": [],
|
||||||
"bin": [],
|
"bin": [],
|
||||||
|
|||||||
@@ -9,7 +9,7 @@
|
|||||||
'website': 'http://akretion.com',
|
'website': 'http://akretion.com',
|
||||||
'author': 'Akretion',
|
'author': 'Akretion',
|
||||||
'license': 'AGPL-3',
|
'license': 'AGPL-3',
|
||||||
'installable': True,
|
'installable': False,
|
||||||
'depends': [
|
'depends': [
|
||||||
'sale',
|
'sale',
|
||||||
'purchase',
|
'purchase',
|
||||||
|
|||||||
@@ -48,5 +48,5 @@ This module has been written by Alexis de Lattre from Akretion <alexis.delattre@
|
|||||||
'security/product_security.xml',
|
'security/product_security.xml',
|
||||||
'product_view.xml',
|
'product_view.xml',
|
||||||
],
|
],
|
||||||
'installable': True,
|
'installable': False,
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -37,4 +37,5 @@ This module has been written by Alexis de Lattre from Akretion
|
|||||||
'website': 'http://www.akretion.com',
|
'website': 'http://www.akretion.com',
|
||||||
'depends': ['product'],
|
'depends': ['product'],
|
||||||
'data': ['product_view.xml'],
|
'data': ['product_view.xml'],
|
||||||
|
'installable': False,
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,3 +1 @@
|
|||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
from . import models
|
|
||||||
|
|||||||
@@ -12,17 +12,17 @@
|
|||||||
"author": " Akretion",
|
"author": " Akretion",
|
||||||
"license": "AGPL-3",
|
"license": "AGPL-3",
|
||||||
"application": False,
|
"application": False,
|
||||||
"installable": True,
|
"installable": False,
|
||||||
"external_dependencies": {
|
"external_dependencies": {
|
||||||
"python": [],
|
"python": [],
|
||||||
"bin": [],
|
"bin": [],
|
||||||
},
|
},
|
||||||
"depends": [
|
"depends": [
|
||||||
"attribute_usability",
|
|
||||||
"product_variant_inactive",
|
"product_variant_inactive",
|
||||||
],
|
],
|
||||||
"data": [
|
"data": [
|
||||||
"views/product_view.xml",
|
"views/product_view.xml",
|
||||||
|
"views/product_attribute_view.xml",
|
||||||
],
|
],
|
||||||
"demo": [
|
"demo": [
|
||||||
],
|
],
|
||||||
|
|||||||
@@ -1,3 +0,0 @@
|
|||||||
# -*- coding: utf-8 -*-
|
|
||||||
|
|
||||||
from . import product
|
|
||||||
@@ -1,16 +0,0 @@
|
|||||||
# -*- coding: utf-8 -*-
|
|
||||||
# Copyright 2017 Akretion (http://www.akretion.com).
|
|
||||||
# @author Sébastien BEAU <sebastien.beau@akretion.com>
|
|
||||||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
|
||||||
|
|
||||||
from openerp import fields, models
|
|
||||||
|
|
||||||
|
|
||||||
class ProductTemplate(models.Model):
|
|
||||||
_inherit = 'product.template'
|
|
||||||
|
|
||||||
all_product_variant_ids = fields.One2many(
|
|
||||||
'product.product',
|
|
||||||
'product_tmpl_id',
|
|
||||||
'All Product Variant',
|
|
||||||
domain=['|', ('active', '=', False), ('active', '=', True)])
|
|
||||||
44
product_variant_usability/views/product_attribute_view.xml
Normal file
44
product_variant_usability/views/product_attribute_view.xml
Normal file
@@ -0,0 +1,44 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<openerp>
|
||||||
|
<data>
|
||||||
|
|
||||||
|
<record id="product_attribute_view_form" model="ir.ui.view">
|
||||||
|
<field name="model">product.attribute</field>
|
||||||
|
<field name="arch" type="xml">
|
||||||
|
<form string="Product Attribute">
|
||||||
|
<sheet>
|
||||||
|
<div class="oe_title" style="width: 390px;">
|
||||||
|
<label class="oe_edit_only" for="name" string="Product Name"/>
|
||||||
|
<h1><field name="name" class="oe_inline"/></h1>
|
||||||
|
</div>
|
||||||
|
<group>
|
||||||
|
<field name="code"/>
|
||||||
|
<field name="value_ids" colspan="4" nolabel="1">
|
||||||
|
<tree editable="bottom">
|
||||||
|
<field name="name"/>
|
||||||
|
<field name="code"/>
|
||||||
|
<field name="comment"/>
|
||||||
|
</tree>
|
||||||
|
</field>
|
||||||
|
</group>
|
||||||
|
</sheet>
|
||||||
|
</form>
|
||||||
|
</field>
|
||||||
|
</record>
|
||||||
|
|
||||||
|
<record id="attribute_tree_view" model="ir.ui.view">
|
||||||
|
<field name="model">product.attribute</field>
|
||||||
|
<field name="inherit_id" ref="product.attribute_tree_view"/>
|
||||||
|
<field name="arch" type="xml">
|
||||||
|
<xpath expr="//tree" position="attributes">
|
||||||
|
<attribute name="editable"></attribute>
|
||||||
|
</xpath>
|
||||||
|
</field>
|
||||||
|
</record>
|
||||||
|
|
||||||
|
<record id="product.attribute_action" model="ir.actions.act_window">
|
||||||
|
<field name="view_mode">tree,form</field>
|
||||||
|
</record>
|
||||||
|
|
||||||
|
</data>
|
||||||
|
</openerp>
|
||||||
@@ -1,14 +1,14 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<openerp>
|
<openerp>
|
||||||
<data>
|
<data>
|
||||||
|
|
||||||
<record id="product_template_view_form" model="ir.ui.view">
|
<record id="product_template_view_form" model="ir.ui.view">
|
||||||
<field name="model">product.template</field>
|
<field name="model">product.template</field>
|
||||||
<field name="inherit_id" ref="product.product_template_only_form_view"/>
|
<field name="inherit_id" ref="product.product_template_only_form_view"/>
|
||||||
<field name="priority" eval="64"/>
|
<field name="priority" eval="64"/>
|
||||||
<field name="arch" type="xml">
|
<field name="arch" type="xml">
|
||||||
<field name="attribute_line_ids" position="after">
|
<field name="attribute_line_ids" position="after">
|
||||||
<field name="all_product_variant_ids" nolabel="1" required="0">
|
<field name="product_variant_ids" nolabel="1" domain="['|', ('active', '=', False), ('active', '=', True)]" required="0">
|
||||||
<tree create="0">
|
<tree create="0">
|
||||||
<field name="default_code"/>
|
<field name="default_code"/>
|
||||||
<field name="attribute_value_ids" widget="many2many_tags"/>
|
<field name="attribute_value_ids" widget="many2many_tags"/>
|
||||||
@@ -20,7 +20,7 @@
|
|||||||
icon="gtk-stop"/>
|
icon="gtk-stop"/>
|
||||||
<button type="object"
|
<button type="object"
|
||||||
name="button_deactivate"
|
name="button_deactivate"
|
||||||
attrs="{'invisible': [('active','=',False)]}"
|
attrs="{'invisible': [('active','=',False)]}"
|
||||||
icon="gtk-apply"/>
|
icon="gtk-apply"/>
|
||||||
</tree>
|
</tree>
|
||||||
</field>
|
</field>
|
||||||
|
|||||||
@@ -49,4 +49,5 @@ Please contact Alexis de Lattre from Akretion <alexis.delattre@akretion.com> for
|
|||||||
'project_data.xml',
|
'project_data.xml',
|
||||||
],
|
],
|
||||||
'active': False,
|
'active': False,
|
||||||
|
'installable': False,
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -42,5 +42,5 @@ This module has been written by Alexis de Lattre from Akretion
|
|||||||
'website': 'http://www.akretion.com',
|
'website': 'http://www.akretion.com',
|
||||||
'depends': ['purchase'],
|
'depends': ['purchase'],
|
||||||
'data': [],
|
'data': [],
|
||||||
'installable': True,
|
'installable': False,
|
||||||
}
|
}
|
||||||
|
|||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user