Skip to content
Open
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
13 changes: 0 additions & 13 deletions addons/account/models/account_move.py
Original file line number Diff line number Diff line change
Expand Up @@ -608,14 +608,6 @@ def _sequence_year_range_monthly_regex(self):
compute='_compute_is_being_sent'
)

move_sent_values = fields.Selection(
selection=[
('sent', 'Sent'),
('not_sent', 'Not Sent'),
],
string='Sent',
compute='compute_move_sent_values',
)
invoice_user_id = fields.Many2one(
string='Salesperson',
comodel_name='res.users',
Expand Down Expand Up @@ -783,11 +775,6 @@ def _compute_is_being_sent(self):
for move in self:
move.is_being_sent = bool(move.sending_data)

@api.depends('is_move_sent')
def compute_move_sent_values(self):
for move in self:
move.move_sent_values = 'sent' if move.is_move_sent else 'not_sent'

def _compute_payment_reference(self):
for move in self.filtered(lambda m: (
m.state == 'posted'
Expand Down
2 changes: 1 addition & 1 deletion addons/account/views/account_menuitem.xml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
<menuitem id="menu_finance_entries" name="Accounting" sequence="4" groups="account.group_account_readonly">
<menuitem id="menu_action_move_journal_line_form" action="action_move_journal_line" groups="account.group_account_readonly" sequence="1"/>
<menuitem id="menu_action_account_moves_all" action="action_account_moves_all" groups="account.group_account_readonly" sequence="10"/>
<menuitem id="menu_action_analytic_lines_tree" name="Analytic Items" action="analytic.account_analytic_line_action_entries" groups="analytic.group_analytic_accounting" sequence="31"/>
<menuitem id="menu_action_analytic_lines_tree" name="Analytic Items" action="analytic.account_analytic_line_action_entries" groups="account.group_account_invoice,account.group_account_readonly,analytic.group_analytic_accounting" sequence="31"/>
</menuitem>
<menuitem id="menu_finance_reports" name="Reporting" sequence="20" groups="account.group_account_readonly,account.group_account_invoice">
<menuitem id="account_reports_partners_reports_menu" name="Partner Reports" sequence="3"/>
Expand Down
13 changes: 2 additions & 11 deletions addons/account/views/account_move_views.xml
Original file line number Diff line number Diff line change
Expand Up @@ -305,13 +305,13 @@
<field name="name" string="Journal Item" filter_domain="[
'|', '|', '|',
('name', 'ilike', self), ('ref', 'ilike', self), ('account_id', 'ilike', self), ('partner_id', 'ilike', self)]"/>
<field name="debit" string="Amount" filter_domain="['|', ('debit', 'ilike', self), ('credit', 'ilike', self)]"/>
<field name="name"/>
<field name="ref"/>
<field name="invoice_date"/>
<field name="date"/>
<field name="date_maturity" string="Due Date"/>
<field name="discount_date" string="Discount Date"/>
<field name="balance" string="Amount" filter_domain="['|', ('credit', '=', raw_value), ('debit', '=', raw_value)]"/>
<field name="account_id"/>
<field name="account_type"/>
<field name="partner_id"/>
Expand Down Expand Up @@ -523,7 +523,7 @@
<field name="invoice_date" optional="show" column_invisible="context.get('default_move_type') not in ('in_invoice', 'in_refund', 'in_receipt')" readonly="state != 'draft'" string="Bill Date" decoration-warning="abnormal_date_warning"/>
<field name="invoice_date" optional="show" column_invisible="context.get('default_move_type') not in ('out_invoice', 'out_refund', 'out_receipt')" readonly="state != 'draft'" string="Invoice Date" decoration-warning="abnormal_date_warning"/>
<field name="date" optional="hide" string="Accounting Date" readonly="state in ['cancel', 'posted']"/>
<field name="invoice_date_due" widget="remaining_days" optional="show" invisible="payment_state in ('paid', 'in_payment', 'reversed') or state == 'cancel'"/>
<field name="invoice_date_due" widget="remaining_days" optional="show" invisible="payment_state in ('paid', 'in_payment', 'reversed')"/>
<field name="invoice_origin" optional="hide" string="Source Document"/>
<field name="payment_reference" optional="hide" column_invisible="context.get('default_move_type') in ('out_invoice', 'out_refund', 'out_receipt')"/>
<field name="ref" optional="hide"/>
Expand All @@ -549,14 +549,6 @@
invisible="payment_state == 'invoicing_legacy' or move_type == 'entry'"
optional="show"
/>
<field name="move_sent_values"
string="Sent"
widget="badge"
decoration-success="move_sent_values == 'sent'"
decoration-danger="move_sent_values == 'not_sent'"
column_invisible="context.get('default_move_type') not in ('out_invoice', 'out_refund', 'out_receipt')"
optional="hide"
/>
<field name="move_type" column_invisible="context.get('default_move_type', True)"/>
<field name="abnormal_amount_warning" column_invisible="1"/>
<field name="abnormal_date_warning" column_invisible="1"/>
Expand Down Expand Up @@ -1520,7 +1512,6 @@
<field name="ref"/>
<field name="invoice_date"/>
<field name="date"/>
<field name="amount_total"/>
<field name="partner_id"/>
<field name="journal_id"/>
<filter string="Unposted" name="unposted" domain="[('state', '=', 'draft')]" help="Unposted Journal Entries"/>
Expand Down
14 changes: 0 additions & 14 deletions addons/l10n_fr_account/models/account_move.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,17 +19,3 @@ def _get_view(self, view_id=None, view_type='form', **options):
def _compute_l10n_fr_is_company_french(self):
for record in self:
record.l10n_fr_is_company_french = record.country_code in record.company_id._get_france_country_codes()

@api.depends("country_code", "move_type")
def _compute_show_delivery_date(self):
# EXTEND 'account'
super()._compute_show_delivery_date()
for move in self.filtered(lambda m: m.country_code == 'FR'):
move.show_delivery_date = move.is_sale_document()

def _post(self, soft=True):
# EXTEND 'account'
res = super()._post(soft=soft)
for move in self.filtered(lambda m: m.show_delivery_date and not m.delivery_date):
move.delivery_date = move.invoice_date
return res
1 change: 0 additions & 1 deletion addons/l10n_om/__init__.py

This file was deleted.

29 changes: 0 additions & 29 deletions addons/l10n_om/__manifest__.py

This file was deleted.

12 changes: 0 additions & 12 deletions addons/l10n_om/data/res.country.state.csv

This file was deleted.

Loading